javascript - Obtaining textbox values from jquery modal popup which has repeater control within it -
I have a very strange problem that I do not understand. I have an ASP.NET Repeater Control which is built into a jquery modal.
The code for control is here.
& lt; Div id = "dialog" style = "display: none" & gt; & Lt; Asp: repeater id = "myprepier" run = "server" & gt; & Lt; HeaderTemplate & gt; & Lt; / HeaderTemplate & gt; & Lt; ItemTemplate & gt; & Lt; Asp: text box id = "txtAnswer" texts = "multiline" column = "50" rows = "4" runat = "server" /> & Lt; / ItemTemplate & gt; & Lt; FooterTemplate & gt; & Lt; / FooterTemplate & gt; & Lt; / ASP: Repeater & gt; & Lt; / Div & gt; & Lt; ASP: Button ID = "Button1" runat = "server" text = "button" style = "display: none" OnClick = "submit1" OnClientClick = "return valid input ()" />
I then call the jquery / javascript popupcenter from the asp.net vb.net code behind the method. Function Popup Center ($ {function}} {$ (function () {$ ("# dialog"). Dialog ({title: "question and answer", width: 1200, height: 750, button : {OK: work () {$ ("[id * = button1]"). Click ();}, off: function () {$ (this) .dialog ('close');}}}) ;}); }
Everything works well, appears with the modal text box. I have called my ASP.NET button a postback event which has been named 1 plus. After the code that successfully sets fire, I do this ...
Protected Sub Deposit 1 (As an object in the form of a sub-sender, e- MailArchive.Event (for example: EventArgs) myrepeater.Items.Count for i = 0 - Text box = DIST SECT (qtaRepeater.Items (i) as a DISTANTTXX. FindControl ("txtAnswer"), text box) Next End Sub < / Code>
for the top loop which I'm hoping for in the replayer for the text box At value. I can access the text box just because it tells an empty string and does not have a string value, altogether stumped altogether I wonder if anyone has an idea why this is happening.
Thank you.
Try the code below
Add code correctly The event of the model dialog
OK: function () {__doPostBack ("& lt;% = Button1.UniqueID%>", ""); }
Comments
Post a Comment