Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hello

 

If I have the text of a textbox binded to a Session variable, is there a way that I can bind any changes back to the session variable on a page unload or some other event without using the following code for each textbox on my page.

 

Session("text") = txtBox1.text

 

Thanks

Posted

Databinding is not a real databindung under ASP.net like the Windows-Databindung. It is actually a one-way databinding, so the standart databind of ASP.net display only data, but sets the values not back.

 

The only way I know is creating a custom-control and programming your own two-way databining...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...