Click here to Skip to main content
12,955,372 members (60,927 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
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
Updated 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
Top Experts
Last 24hrsThis month
OriginalGriff 6,559
CHill60 3,550
Maciej Los 3,153
ppolymorphe 2,030
Jochen Arndt 1,975


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