EditItem value not returning "" (even when something has been ente

G

Guest

I have a textbox in my editItemTemplate within my datagrid. This textbox's autoPostback property is true, so I can do some verfications before the user moves on to the next textbox. My verification is in the datagrid_Load event handler.
My problem is that every time i get to the datagrid_load after the user has entered a value, the textbox value is empty.

Here are a few more details about my datagrid:
-It is contained in a usercontrol.
-When it loads for some reason my page_load executes twice. The first the values are as if it was being loaded for the first time, the second time all values are ok such as the page.isPostback etc.

One last thing. The value is still there after the postback, its just not there during the datagrid_load event.

any suggestions?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top