Tuesday, 25 October 2016

How to call c# web Page_Load() in javascript function

Description:

In this example we explain that how to call Page_Load post back from JavaScript or how to call C# web Page_Load () in JavaScript function or raising post back using _doPostBack () function from JavaScript. Need to call Page_Load () method in JavaScript without clearing values in the pages. If we use JavaScript window.location.reload () then it will call page load () but clears all the value.so to overcome this problem here we create one hidden button in the web page and call its click event from the JavaScript so the page load will automatically call.

How to call c# web Page_Load() in javascript function

How to call c# web Page_Load() in javascript function

Description:

In this example we explain that how to call Page_Load post back from JavaScript or how to call C# web Page_Load () in JavaScript function or raising post back using _doPostBack () function from JavaScript. Need to call Page_Load () method in JavaScript without clearing values in the pages. If we use JavaScript window.location.reload () then it will call page load () but clears all the value.so to overcome this problem here we create one hidden button in the web page and call its click event from the JavaScript so the page load will automatically call.

How can i get Selected file path in asp.net?

Description:

In this example we explain that how select folder path in asp.net using C# or how to get path of selected file in asp.net.how to browse file and get file path in asp.net.or how to get the full file path from asp: FileUplaod control. Or how can I get selected file path in asp.net.or how to get physical path or selected filed local path or drive path in asp.net.there are many question are raised for different user because we easily find the server path but to get the physical or local path its difficult because it will return fake path in JavaScript.

How to get the full file path from asp:FileUpload?

How can i get Selected file path in asp.net?

Description:

In this example we explain that how select folder path in asp.net using C# or how to get path of selected file in asp.net.how to browse file and get file path in asp.net.or how to get the full file path from asp: FileUplaod control. Or how can I get selected file path in asp.net.or how to get physical path or selected filed local path or drive path in asp.net.there are many question are raised for different user because we easily find the server path but to get the physical or local path its difficult because it will return fake path in JavaScript.

Monday, 24 October 2016

Select or Browse folder in asp.net



Description:

in this example we explain that how select folder in asp.net using C# or how to browse folder in asp.net.example to demonstrate how to browse folder in file upload control in asp.net.or select folder in input type=”file” in asp.net using C#.

there are many question are raised in our mind because by default file upload control allow user to select compulsory the file in file upload you cannot select folder or directory in file upload so below is the single line code to demonstrate how to select or browse folder in file upload control in asp.net. file dialog example in asp.net same like as in window form dialog.

<asp:FileUpload ID="FileUpload1"   runat="server" webkitdirectory />


webkitdirectory“ is the property that allow user to select or browse folder directly in file upload control in asp.net.

Select or Browse folder in asp.net

Select or Browse folder in asp.net



Description:

in this example we explain that how select folder in asp.net using C# or how to browse folder in asp.net.example to demonstrate how to browse folder in file upload control in asp.net.or select folder in input type=”file” in asp.net using C#.

there are many question are raised in our mind because by default file upload control allow user to select compulsory the file in file upload you cannot select folder or directory in file upload so below is the single line code to demonstrate how to select or browse folder in file upload control in asp.net. file dialog example in asp.net same like as in window form dialog.

<asp:FileUpload ID="FileUpload1"   runat="server" webkitdirectory />


webkitdirectory“ is the property that allow user to select or browse folder directly in file upload control in asp.net.

Friday, 21 October 2016

alertDialog and confirmDialog in CRM

Description:

In this example we explain that how to use alertDialog and confirmDialog to display messages to users In dynamic crm. Or how to display alert box or alert dialog box in CRM for tablets because simply javascript alert is not display for CRM tablets.so to display alert dialog or confirm dialog box or any messages to user in CRM tablets user you must have to use XRM alert dialog facility provided by XRM utility.

display alert and confirm dialog for Dynamic CRM tablets.

alertDialog and confirmDialog in CRM

Description:

In this example we explain that how to use alertDialog and confirmDialog to display messages to users In dynamic crm. Or how to display alert box or alert dialog box in CRM for tablets because simply javascript alert is not display for CRM tablets.so to display alert dialog or confirm dialog box or any messages to user in CRM tablets user you must have to use XRM alert dialog facility provided by XRM utility.
This entry was posted in :

Saturday, 15 October 2016


display notification in dynamic crm

Description:

In this example we explain that how to display Notification message in Dynamic CRM. before CRM 2013 if you want to alert to user only standard JavaScript alert is supported and in which user must be acknowledge in order for the user to continue.

So now days additional alert method was introduced in CRM 2013,this method allow user to specify three different types of alert like “error”,”Information” and “warning”.below the example of the set notification in CRM page.

Dynamics CRM Alert and Notification JavaScript Methods


display notification in dynamic crm

Description:

In this example we explain that how to display Notification message in Dynamic CRM. before CRM 2013 if you want to alert to user only standard JavaScript alert is supported and in which user must be acknowledge in order for the user to continue.

So now days additional alert method was introduced in CRM 2013,this method allow user to specify three different types of alert like “error”,”Information” and “warning”.below the example of the set notification in CRM page.
This entry was posted in :
call workflow from javascript or jQuery in dynamic crm


Description:

In this example we explain that how to call workflow from javascript or jQuery in dynamic crm.sometime we have requirement like we have to call the workflow based on some condition or some demand using javascript.how to find workflow from dynamic crm and call it form clientside like javascript and jQuery.

The user have to first find the workflowid,here we use callWorkFlow function for particular record asynchronously.optionally you can also add callback functions which will fire when the workflow has been executed sucessfully or if it fails.

Parameteres is WorkflowId/Guid,RecordID/Guid,Success Callback(function),Error Callback(function),CRM Base URL .

Call workflow from javascript or jQuery in Dynamic CRM

call workflow from javascript or jQuery in dynamic crm


Description:

In this example we explain that how to call workflow from javascript or jQuery in dynamic crm.sometime we have requirement like we have to call the workflow based on some condition or some demand using javascript.how to find workflow from dynamic crm and call it form clientside like javascript and jQuery.

The user have to first find the workflowid,here we use callWorkFlow function for particular record asynchronously.optionally you can also add callback functions which will fire when the workflow has been executed sucessfully or if it fails.

Parameteres is WorkflowId/Guid,RecordID/Guid,Success Callback(function),Error Callback(function),CRM Base URL .
This entry was posted in :

Friday, 14 October 2016

restrict duplicate primary key


Description:

in this example we explain that how to validate primary key in C# like suppose if user enter duplicate primary key then sqlException is raised or throw from ADO.Net so end user cannot understand the sql message proper so display proper sqlexception message to user then use the below code.

Here we use Try Catch block to capture this exception and display proper message to user.

Primary key validation in C#

restrict duplicate primary key


Description:

in this example we explain that how to validate primary key in C# like suppose if user enter duplicate primary key then sqlException is raised or throw from ADO.Net so end user cannot understand the sql message proper so display proper sqlexception message to user then use the below code.

Here we use Try Catch block to capture this exception and display proper message to user.
This entry was posted in :

Friday, 7 October 2016

Dynamically change the year of copyright in website



Description:

In this example we explain that how to dynamically change the copyright year in any website or any blog in asp.net. In every website or web application we define the copyright in footer section of the master page, generally we placed one of copyright in which year is mentioned like ©2015 All rights reserved. But it is fixed or static we cannot change after year is gone so when 2016 year is started then footer with copyright 2015 remain same.

Dynamically change the year of copyright in website in asp.net

Dynamically change the year of copyright in website



Description:

In this example we explain that how to dynamically change the copyright year in any website or any blog in asp.net. In every website or web application we define the copyright in footer section of the master page, generally we placed one of copyright in which year is mentioned like ©2015 All rights reserved. But it is fixed or static we cannot change after year is gone so when 2016 year is started then footer with copyright 2015 remain same.
Convert JSON Date to Standard Date Format in asp.net

Description:

In this example we explain that how to convert JSON date to normal date in asp.net or convert JSON return date to asp.net date and time format.

Many developers have a question like convert JSON date conversion into JavaScript code or JQuery
Code. Whenever you insert Date into Database using JSON format and when you retrieve that date from database it’s in JSON Format which is something like that:

Convert JSON Date to Standard Date Format in asp.net

Convert JSON Date to Standard Date Format in asp.net

Description:

In this example we explain that how to convert JSON date to normal date in asp.net or convert JSON return date to asp.net date and time format.

Many developers have a question like convert JSON date conversion into JavaScript code or JQuery
Code. Whenever you insert Date into Database using JSON format and when you retrieve that date from database it’s in JSON Format which is something like that:
Convert Rows to columns using 'Pivot' in SQL Server

Description:

In this example we explain that how to covert rows to column and column to rows in SQL Server.SQL Query to convert row data to column in SQL Server.sql query to display row data to column.or convert rows to columns using Pivot in SQL Server when columns are string data type.

Here we demonstrate switching rows and column in SQL Server. Or convert rows values into column value in SQL Server. Display row value in column value in SQL Server.

Convert Rows to columns using 'Pivot' in SQL Server

Convert Rows to columns using 'Pivot' in SQL Server

Description:

In this example we explain that how to covert rows to column and column to rows in SQL Server.SQL Query to convert row data to column in SQL Server.sql query to display row data to column.or convert rows to columns using Pivot in SQL Server when columns are string data type.

Here we demonstrate switching rows and column in SQL Server. Or convert rows values into column value in SQL Server. Display row value in column value in SQL Server.
This entry was posted in :

Thursday, 6 October 2016

Display the total sum of all Open Opportunities on the Dashboard

Description:

In this example we explain that how to display the total sum of all open opportunities on the dashboard. Or display the total sum of revenue of all opportunities in label format in dynamic crm. Or display the sum of the revenue of all opportunities in chart in dynamic crm.
Here we explain that how to customize the chart entity to display the sum of all opportunities In chart. Some question are raised in our mind like to display a total amount of opportunities in the pipeline on the dashboard like sum of the estimated costs for all opportunities.
So below is the code that demonstrate display sum of all opportunities in dashboard using customized the chart in dynamic crm.

display sum of revenue of opportunity in label in Dynamic CRM

Display the total sum of all Open Opportunities on the Dashboard

Description:

In this example we explain that how to display the total sum of all open opportunities on the dashboard. Or display the total sum of revenue of all opportunities in label format in dynamic crm. Or display the sum of the revenue of all opportunities in chart in dynamic crm.
Here we explain that how to customize the chart entity to display the sum of all opportunities In chart. Some question are raised in our mind like to display a total amount of opportunities in the pipeline on the dashboard like sum of the estimated costs for all opportunities.
So below is the code that demonstrate display sum of all opportunities in dashboard using customized the chart in dynamic crm.
This entry was posted in :

Sunday, 2 October 2016

send email crm

Description:

In this example we explain that how to send email on daily basis to sales team from Dynamic CRM.or how to sneding recurring reminder emails to sales team using tasks entity in dynamic crm.
Suppose your sales team wants to notified everyday for their scheduled calls of the day with help of the one email using dynamic crm.

So if we have need to send recurring emials to our customer or any sales team from dynamic crm.we can do it using the below steps:

Sending recurring reminder emails using Dynamic CRM

send email crm

Description:

In this example we explain that how to send email on daily basis to sales team from Dynamic CRM.or how to sneding recurring reminder emails to sales team using tasks entity in dynamic crm.
Suppose your sales team wants to notified everyday for their scheduled calls of the day with help of the one email using dynamic crm.

So if we have need to send recurring emials to our customer or any sales team from dynamic crm.we can do it using the below steps:
This entry was posted in :

Saturday, 1 October 2016

checked/unchecked all records in Gridview using javascript or jQuery.

Description:


In this example we explain that how to select and deselect all the record from gridview using javascript or jQuery.or how to checked or unchecked all the records in gridview using javascript.

In previous we already explain that how to delete multiple records form the gridview but here we use javascript to checked or unchecked all the records from gridview without any postback.


So how to select/deselect all checkbox in gridview in clientside using javascript or jQuery.below is the example to demostrate checked/unchecked all records from griview using javascript.

checked/unchecked all records in Gridview using javascript or jQuery.

checked/unchecked all records in Gridview using javascript or jQuery.

Description:


In this example we explain that how to select and deselect all the record from gridview using javascript or jQuery.or how to checked or unchecked all the records in gridview using javascript.

In previous we already explain that how to delete multiple records form the gridview but here we use javascript to checked or unchecked all the records from gridview without any postback.


So how to select/deselect all checkbox in gridview in clientside using javascript or jQuery.below is the example to demostrate checked/unchecked all records from griview using javascript.