Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 31, 2012 10:28 AM by deepthoughts
Member
11 Points
103 Posts
May 31, 2012 07:32 AM|LINK
hi.
i have hidden field(query1) .
1) when we click on update button from insert.aspx page.insert.aspx page goes with quer string
2) when we come on update.aspx we have save insert.aspx page query string in hidden field like that.query1 is hidden field
query1.Value = Request.QueryString["Inv"];
now i want
when we click on update page gridview hyper link field.query1 also goes back with value
All-Star
15346 Points
3142 Posts
May 31, 2012 07:52 AM|LINK
please check this link
http://www.richardsantos.net/2008/06/04/aspnet-passing-url-parameter-from-hyperlink-in-gridview/
you may call a javascript function on click on href and do the navigation to target page with parameters what ever needed
128 Points
36 Posts
May 31, 2012 08:06 AM|LINK
create a templatefiled with hyperlink and then in gridviews rowRowDataBound If e.Row.RowType = DataControlRowType.DataRow Then Dim link1 As HyperLink = CType(e.Row.FindControl(”Link1”), HyperLink) link1 .NavigateUrl = “insert.aspx?Inv=” & e.Row.Cells(0).Text ---- this is your grid view column which you want to pass End If
May 31, 2012 08:59 AM|LINK
can u plz give me c# code
Contributor
7288 Points
1051 Posts
May 31, 2012 10:28 AM|LINK
In the gridview template field you can write like this..
<asp:HyperLink ID="hlink1" runat="server" NavigateUrl='<%= string.Format("ohterpage.aspx?id=",hdnField1.Value) %>'></asp:HyperLink>
Thanks.
zohaibak
Member
11 Points
103 Posts
query string
May 31, 2012 07:32 AM|LINK
hi.
i have hidden field(query1) .
1) when we click on update button from insert.aspx page.insert.aspx page goes with quer string
2) when we come on update.aspx we have save insert.aspx page query string in hidden field like that.query1 is hidden field
query1.Value = Request.QueryString["Inv"];
now i want
when we click on update page gridview hyper link field.query1 also goes back with value
Mudasir.Khan
All-Star
15346 Points
3142 Posts
Re: query string
May 31, 2012 07:52 AM|LINK
please check this link
http://www.richardsantos.net/2008/06/04/aspnet-passing-url-parameter-from-hyperlink-in-gridview/
you may call a javascript function on click on href and do the navigation to target page with parameters what ever needed
ambikabk
Member
128 Points
36 Posts
Re: query string
May 31, 2012 08:06 AM|LINK
create a templatefiled with hyperlink
and then
in gridviews rowRowDataBound
If e.Row.RowType = DataControlRowType.DataRow Then
Dim link1 As HyperLink = CType(e.Row.FindControl(”Link1”), HyperLink)
link1 .NavigateUrl = “insert.aspx?Inv=” & e.Row.Cells(0).Text ---- this is your grid view column which you want to pass
End If
AMBI
zohaibak
Member
11 Points
103 Posts
Re: query string
May 31, 2012 08:59 AM|LINK
can u plz give me c# code
deepthoughts
Contributor
7288 Points
1051 Posts
Re: query string
May 31, 2012 10:28 AM|LINK
In the gridview template field you can write like this..
<asp:HyperLink ID="hlink1" runat="server" NavigateUrl='<%= string.Format("ohterpage.aspx?id=",hdnField1.Value) %>'></asp:HyperLink>Thanks.