Thursday 25 September 2014


Acess Session Variable in Javascript

Description:-



In this example we explain that how to Access Session variable in javascript or jquery.here we describes how to Access Session at client side in asp.net.

Sometime we have requirement in application to Access the Session variable value at clientside or in javascript or jquery.

For example if we have one Application in which we have one form like Comment page and login user can Add the comment but without postback or page load. So you have to must defined a one web method that are used for inserting comment and this method is called from the clientside like Jquery/Ajax call with one parameter username.

So how it is possible because that is the real problem that I was faced. So finally we fetch the session value in javascript and then call the web method with pass parameter like username that we already fetch it from the session variable at client side javascript.

So access session variable in javascript and pass it to method and insert the record without postback is done through below code.

there are multiple ways to access Session variable at client side at javascript as follows


Restrict the size of File when Uploaded How to Restrict the size of File when uploaded by user

Dynamically Read/Write File in asp.Net How to Read Write File in Asp.Net using C#

How to access Session variables using Javascript in asp.net.


Acess Session Variable in Javascript

Description:-



In this example we explain that how to Access Session variable in javascript or jquery.here we describes how to Access Session at client side in asp.net.

Sometime we have requirement in application to Access the Session variable value at clientside or in javascript or jquery.

For example if we have one Application in which we have one form like Comment page and login user can Add the comment but without postback or page load. So you have to must defined a one web method that are used for inserting comment and this method is called from the clientside like Jquery/Ajax call with one parameter username.

So how it is possible because that is the real problem that I was faced. So finally we fetch the session value in javascript and then call the web method with pass parameter like username that we already fetch it from the session variable at client side javascript.

So access session variable in javascript and pass it to method and insert the record without postback is done through below code.

there are multiple ways to access Session variable at client side at javascript as follows


Restrict the size of File when Uploaded How to Restrict the size of File when uploaded by user

Dynamically Read/Write File in asp.Net How to Read Write File in Asp.Net using C#

Display Detail in tooltip in mvc webgrid

Description:-



In this example we exlain that how to display Tooltip when mouse is hover to each rows or cells in webgrid in mvc with asp.net.or how to show webgrid row details in Tooltip on mouseover using JQuery in MVC with ASP.NET.

Previous time we already explain that how to display Gridview rows detail in tooltip when mouse is over to rows in asp.net but now in this example we explain that how to provide same facility in webgrid in mvc application.

Here we not used any jquery plugin to display custom tooltip in webgrid rows when mouse is hover to cells of the webgrid in mvc.

to display user detail in tooltip in mvc webgrid you have to follow below steps
 

Restrict the size of File when Uploaded How to Restrict the size of File when uploaded by user

Dynamically Read/Write File in asp.Net How to Read Write File in Asp.Net using C#

Display User Detail in Tooltip in Webgrid in mvc4 using jquery

Display Detail in tooltip in mvc webgrid

Description:-



In this example we exlain that how to display Tooltip when mouse is hover to each rows or cells in webgrid in mvc with asp.net.or how to show webgrid row details in Tooltip on mouseover using JQuery in MVC with ASP.NET.

Previous time we already explain that how to display Gridview rows detail in tooltip when mouse is over to rows in asp.net but now in this example we explain that how to provide same facility in webgrid in mvc application.

Here we not used any jquery plugin to display custom tooltip in webgrid rows when mouse is hover to cells of the webgrid in mvc.

to display user detail in tooltip in mvc webgrid you have to follow below steps
 

Restrict the size of File when Uploaded How to Restrict the size of File when uploaded by user

Dynamically Read/Write File in asp.Net How to Read Write File in Asp.Net using C#

Count and display remaining characters in textbox
Description:-



In this example we explain that how to count and display remaining characters in the multiline textbox in asp.net. as we all show the multiline textbox facility with displaying remaining character facility in many website when we write the comment or message or any note on website then it allow user to enter only 100 character or 200 character something like that. So at that time we must display the remaining character while user  entering comment or message so user can easily show that how many character are left and also he think about that how to write comment or review with predefined character.


Restrict the size of File when Uploaded How to Restrict the size of File when uploaded by user

Dynamically Read/Write File in asp.Net How to Read Write File in Asp.Net using C#


How to Count and display remaining characters in the multiline textbox in asp.net.

Count and display remaining characters in textbox
Description:-



In this example we explain that how to count and display remaining characters in the multiline textbox in asp.net. as we all show the multiline textbox facility with displaying remaining character facility in many website when we write the comment or message or any note on website then it allow user to enter only 100 character or 200 character something like that. So at that time we must display the remaining character while user  entering comment or message so user can easily show that how many character are left and also he think about that how to write comment or review with predefined character.


Restrict the size of File when Uploaded How to Restrict the size of File when uploaded by user

Dynamically Read/Write File in asp.Net How to Read Write File in Asp.Net using C#


prevant user with unsaved chages

Description:-



In this example we explain that Prevent User Navigating Away from Page with Unsaved Changes

As we all know that many website or social media site provide facility like When you edits some data, and then closes current page or navigate to the current page without saving that data, most applications will warn the user that they have unsaved changes and display alert message like you want leave the current page or stay on the page .

In my application we have requirement if users will edit some data or some changes and navigate away from a page without saving their changes. Then we provide appropriate alert message to the user is that unsaved changes you want leave the current page or stay on the page, same functionality that Gmail provide when you navigate away with an unsaved message.



Restrict the size of File when Uploaded How to Restrict the size of File when uploaded by user

Dynamically Read/Write File in asp.Net How to Read Write File in Asp.Net using C#

Prevent a User Navigating Away from a Page with Unsaved Changes.

prevant user with unsaved chages

Description:-



In this example we explain that Prevent User Navigating Away from Page with Unsaved Changes

As we all know that many website or social media site provide facility like When you edits some data, and then closes current page or navigate to the current page without saving that data, most applications will warn the user that they have unsaved changes and display alert message like you want leave the current page or stay on the page .

In my application we have requirement if users will edit some data or some changes and navigate away from a page without saving their changes. Then we provide appropriate alert message to the user is that unsaved changes you want leave the current page or stay on the page, same functionality that Gmail provide when you navigate away with an unsaved message.



Restrict the size of File when Uploaded How to Restrict the size of File when uploaded by user

Dynamically Read/Write File in asp.Net How to Read Write File in Asp.Net using C#

Saturday 13 September 2014

DropdownList in Webgrid in mvc


Description:-


In this example we explain that how to bind Dropdownlist inside WebGrid or mvc webgrid in mvc4 or how to populate dropdownlist inside webgrid in asp.net with mvc.

Here we explain that how to include dropdownlist in webgrid in mvc.previously we already explain many example of bind dropdownlist in gridview in 
asp.net but in mvc application how we can manage webgrid with dropdownlist inside webgrid.

Here in this example we have one table called employee and have two fields like empname and married status. When page is load the data of employees table can be bind in webgrid with empname in label and married status is bind on the dropdownlist inside the webgrid.


Dynamically Bind data in Ajax Accordion Panel Ajax Accordion panel Example in asp.net


how to Restrict the size of file upload when upload by user restrict the size of file upload control in asp.net

Include DropDown List Inside WebGrid in MVC

DropdownList in Webgrid in mvc


Description:-


In this example we explain that how to bind Dropdownlist inside WebGrid or mvc webgrid in mvc4 or how to populate dropdownlist inside webgrid in asp.net with mvc.

Here we explain that how to include dropdownlist in webgrid in mvc.previously we already explain many example of bind dropdownlist in gridview in 
asp.net but in mvc application how we can manage webgrid with dropdownlist inside webgrid.

Here in this example we have one table called employee and have two fields like empname and married status. When page is load the data of employees table can be bind in webgrid with empname in label and married status is bind on the dropdownlist inside the webgrid.


Dynamically Bind data in Ajax Accordion Panel Ajax Accordion panel Example in asp.net


how to Restrict the size of file upload when upload by user restrict the size of file upload control in asp.net