.NET Framework Bookmark and Share   
 index > .NET Framework Networking and Communication > Read a PlaceHolder without postback
 

Read a PlaceHolder without postback

Dear all,
I create a web site containing a placeholder where I dinamically insert a matrix of textboxes by code:

i.e.:

TB1.1 TB1.2 TB1.3 TB1.4
TB2.1 TB2.2 TB2.3 TB2.4
...
...


I activated the "AutoPostBack" to these textboxes.
I added:

AddHandler MyTextBox.textboxEvent, AddressOf getMyEvent

to the textboxes.
This event is bound to TextBox.TextChanged event

So, when I change the value in a the textbox, the getMyEvent method is called.

The problem is that every time I change the value in the textbox, all the web page is reloaded (postback event is triggered).
The page refresh required 2/3 seconds, so I'd like not to refresh the page at avery textbox change, but only when I press a Submit button (asynchronous update).

The problem is that when I parse the placeholder, in the textboxes I read the old values, not the last values a just modified.

How could I read the actual value inserted in a textbox without raise a postback?.

Regards
Emanuele
geniojini
I think you will have to use javascript or jquery or any other scripting language. But since it's a ASP.NET question is better to ask this question on ASP.NET Forum.
Gaurav Khanna
  • Proposed As Answer byKhanna Gaurav Tuesday, September 15, 2009 9:50 AM
  •  
Khanna Gaurav
Thank you Khanna

Regards

Emanuele
geniojini

You can use google to search for other answers

Custom Search

More Threads

• ASP.NET,,, auto login to external websites from internal intranet using AD authenticated user!!
• peer to peer .net Chat/Data
• Serial port AT+CMGW command working fine while using breakpoint but not while debugging?
• wireless networks
• COMException using the XENROLLLIB after web publish in .NET
• USB Programming and Communicating
• Digital Signature in an email
• Extracting images from wlan ip webcam with activeX control
• Sending Email with Credentials
• Can't connect to a TcpBinding hosted on IIS7