Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I want to fetch data in textbox on modalpopup which is on click of grodview imagebutton from database....

//code

XML
<asp:GridView ID="GrdATMyPuchase1" AutoGenerateColumns="false" runat="server"  >

                <Columns>
<pre lang="xml">&lt;asp:TemplateField HeaderText=&quot;Buyer Details&quot;&gt;
              &lt;ItemTemplate&gt;
                  &lt;asp:Image ID=&quot;ImgATbuyer&quot; ImageUrl=&quot;../Images/buyer.gif&quot;  runat=&quot;server&quot; Width=&quot;20px&quot; Height=&quot;20px&quot; /&gt;

                  &lt;cc1:ModalPopupExtender ID=&quot;ModalPopupExtender1&quot; TargetControlID=&quot;ImgATbuyer&quot; PopupControlID=&quot;Panel3&quot; CancelControlID=&quot;&quot; runat=&quot;server&quot;&gt;
                  &lt;/cc1:ModalPopupExtender&gt;

                  &lt;asp:Panel ID=&quot;Panel3&quot; runat=&quot;server&quot;&gt;
                      &lt;asp:Label ID=&quot;Label1&quot; runat=&quot;server&quot; Text=&quot;Label&quot;&gt;&lt;/asp:Label&gt;
                      &lt;asp:TextBox ID=&quot;TextBox1&quot; runat=&quot;server&quot;&gt;&lt;/asp:TextBox&gt;
                  &lt;/asp:Panel&gt;
              &lt;/ItemTemplate&gt;
              &lt;/asp:TemplateField&gt;</pre>
Posted
Updated 23-Dec-12 22:36pm
v2

1 solution

you take data to data base just like,
a simple text box,
text box in modal pop not have any special property,
Like

textbox1.tex = ob1.ds.Tables[0].Rows[0]["process_id"].ToString();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900