Click here to Skip to main content
12,404,017 members (65,763 online)
Rate this:
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....


<asp:GridView ID="GrdATMyPuchase1" AutoGenerateColumns="false" runat="server"  >
<pre lang="xml">&lt;asp:TemplateField HeaderText=&quot;Buyer Details&quot;&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;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;
Posted 23-Dec-12 21:54pm
Updated 23-Dec-12 22:36pm

1 solution

Rate this: bad
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,

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

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 24 Dec 2012
Copyright © CodeProject, 1999-2016
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