Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
I want to fetch data in textbox on modalpopup which is on click of grodview imagebutton from database....
 
//code
 
<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 23-Dec-12 21:54pm
Edited 23-Dec-12 22:36pm
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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();
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 371
1 Sergey Alexandrovich Kryukov 269
2 CB Sharma 79
3 RyanDev 75
4 PhilLenoir 70
0 Sergey Alexandrovich Kryukov 6,676
1 OriginalGriff 6,056
2 CPallini 2,473
3 Richard MacCutchan 1,697
4 Abhinav S 1,560


Advertise | Privacy | Mobile
Web03 | 2.8.140821.2 | Last Updated 24 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100