I have a text box in juery pop up after clicking on a button i was trying to save the value in text box to db using c# but the textbox is retuning null value . somebody please respond to this issue
try to put the information in a hidden field outside of the popup in the form that you're submitting to the server just before the popup gets closed.
Also, make use of the F12 tools of your browser to inspect the value of the textbox after it's been filled in and again after the popup has been closed. Likely the closing of the popup has destroyed the value of the textbox somehow.
Grz, Kris.
Read my blog | Twitter Working with Azure, chatbots, ASP.NET MVC, Web API, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
29 Points
54 Posts
asp textbox in jquery popup is returning null
Dec 06, 2014 03:54 AM|Jayadeep Bobba|LINK
HI all,
I have a text box in juery pop up after clicking on a button i was trying to save the value in text box to db using c# but the textbox is retuning null value . somebody please respond to this issue
All-Star
191741 Points
20952 Posts
ASPInsiders
Moderator
MVP
Re: asp textbox in jquery popup is returning null
Dec 06, 2014 07:49 AM|XIII|LINK
Hi,
try to put the information in a hidden field outside of the popup in the form that you're submitting to the server just before the popup gets closed.
Also, make use of the F12 tools of your browser to inspect the value of the textbox after it's been filled in and again after the popup has been closed. Likely the closing of the popup has destroyed the value of the textbox somehow.
Grz, Kris.
Working with Azure, chatbots, ASP.NET MVC, Web API, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
All-Star
45489 Points
7008 Posts
Microsoft
Re: asp textbox in jquery popup is returning null
Dec 08, 2014 03:46 AM|Zhi Lv - MSFT|LINK
Hi Jayadeep,
As XIII said, you could use a hidden field. please refer to the following code.
Code Behind.
Best Regards,
Dillion