C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Fill the value in session through Javascript


Posted Date: 18 Jun 2008    Resource Type: Tips    Category: Web Development
Author: Subodh kumar PrajapatiMember Level: Gold    
Rating: Points: 5



There is a way to fill the value in session using Javascript. For this there is a need for a session variable which will be declared in Javascript but with server side code. The technique for filling session values through Javascript is as follows:


<%session["Mysession"]=HiddenField1.value>


You can add this line of code in your javascript as given in the following example:


function chk()
{

<session["Mysession"]=HiddenField1.value>
}


Attachments

  • See Attatched file (18912-1976-atch.txt)



  • Responses


    No responses found. Be the first to respond and make money from revenue sharing program.

    Feedbacks      
    Popular Tags   What are tags ?   Search Tags  
    Populate session values with Javascript  .  Populate session values  .  Fill session values using Javascript  .  Fill session values  .  

    Post Feedback


    This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
    You must Sign In to post a response.
    Next Resource: Block Back button of browser
    Previous Resource: How do you create and delete a permanent cookie
    Return to Discussion Resource Index
    Post New Resource
    Category: Web Development


    Post resources and earn money!
     
    Related Resources



    dotNet Slackers   BizTalk Adaptors    Web Design


    Contact Us    Privacy Policy    Terms Of Use