Click here to Skip to main content
15,921,113 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to access server-side controls of a user control(ascx) from its parent page (aspx) by using javascript Pin
Bluebamboo7-Dec-07 4:21
Bluebamboo7-Dec-07 4:21 
GeneralRe: How to access server-side controls of a user control(ascx) from its parent page (aspx) by using javascript Pin
Michael Sync7-Dec-07 5:01
Michael Sync7-Dec-07 5:01 
GeneralRe: How to access server-side controls of a user control(ascx) from its parent page (aspx) by using javascript Pin
Bluebamboo7-Dec-07 5:19
Bluebamboo7-Dec-07 5:19 
AnswerRe: How to access server-side controls of a user control(ascx) from its parent page (aspx) by using javascript Pin
Bluebamboo7-Dec-07 5:16
Bluebamboo7-Dec-07 5:16 
GeneralRe: How to access server-side controls of a user control(ascx) from its parent page (aspx) by using javascript Pin
Michael Sync7-Dec-07 5:30
Michael Sync7-Dec-07 5:30 
GeneralRe: How to access server-side controls of a user control(ascx) from its parent page (aspx) by using javascript Pin
Bluebamboo7-Dec-07 6:01
Bluebamboo7-Dec-07 6:01 
Generalgridview select and modal popup Pin
Sarfaraj Ahmed7-Dec-07 1:52
Sarfaraj Ahmed7-Dec-07 1:52 
GeneralRe: gridview select and modal popup Pin
thomasa7-Dec-07 3:47
thomasa7-Dec-07 3:47 
Use the button's CommandArgument and CommandName property to store the memberID and propductID as in:
<br />
					                                <asp:Button id="btnPopUp" CssClass="btnStyle0" Text="View product" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "memberID").ToString()%>' CommandName='&lt;%#DataBinder.Eval(Container.DataItem, "propductID").ToString()%&gt;' runat="server"><br />
						                            </asp:Button>




Add a click evnet to the butten as in:
<br />
void btnPopUp_Click(object sender, EventArgs e)<br />
        {<br />
Button btn = (Button)sender;<br />
memberID = int.Parse(btn.CommandArgument);<br />
propductID = int.Parse(btn.CommandArgument);<br />


Then use this values to get the data you need and push out an PopUp.

Remember to add the buttons clik event in the GridView's OnItemCreated.
Hope it helps
Thomas
GeneralServer.Transer Pin
.NET- India 7-Dec-07 1:45
.NET- India 7-Dec-07 1:45 
GeneralRe: Server.Transer Pin
pmarfleet7-Dec-07 1:59
pmarfleet7-Dec-07 1:59 
Generalcoloring label [modified] Pin
Member 47640947-Dec-07 0:58
Member 47640947-Dec-07 0:58 
GeneralRe: coloring label Pin
Michael Sync7-Dec-07 4:17
Michael Sync7-Dec-07 4:17 
GeneralRe: coloring label Pin
Member 47640947-Dec-07 21:15
Member 47640947-Dec-07 21:15 
GeneralQueryString Pin
AS@137-Dec-07 0:30
AS@137-Dec-07 0:30 
GeneralRe: QueryString Pin
Paddy Boyd7-Dec-07 0:36
Paddy Boyd7-Dec-07 0:36 
GeneralRe: QueryString Pin
That's Aragon7-Dec-07 1:34
That's Aragon7-Dec-07 1:34 
GeneralConnect to DBF Pin
AnhTin6-Dec-07 23:40
AnhTin6-Dec-07 23:40 
GeneralPrivate Class Pin
rockz...6-Dec-07 23:32
rockz...6-Dec-07 23:32 
GeneralRe: Private Class Pin
J4amieC6-Dec-07 23:52
J4amieC6-Dec-07 23:52 
JokeRe: Private Class Pin
coolestCoder6-Dec-07 23:54
coolestCoder6-Dec-07 23:54 
GeneralRe: Private Class Pin
Colin Angus Mackay7-Dec-07 1:27
Colin Angus Mackay7-Dec-07 1:27 
GeneralRe: Private Class Pin
coolestCoder7-Dec-07 3:48
coolestCoder7-Dec-07 3:48 
GeneralNull Reference Pin
SreejithAchutan6-Dec-07 23:28
SreejithAchutan6-Dec-07 23:28 
GeneralRe: Null Reference Pin
N a v a n e e t h7-Dec-07 0:24
N a v a n e e t h7-Dec-07 0:24 
GeneralStored Procedure result in Aspx page Pin
Member 45999726-Dec-07 23:22
Member 45999726-Dec-07 23:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.