how can we pass the database value as well as fixed value in query string using in grid

Posted by Rrana under ASP.NET on 11/16/2011 | Points: 10 | Views : 1031 | Status : [Member] | Replies : 1
Hi,

How can we pass the database value as well as fixed value in query string using in gridview.

My Code...

<asp:HyperLink ID="hlDetails1" Text='<%# Bind("Client") %>' runat="server"
NavigateUrl='<%# "ClaimDetails.aspx?ClaimId=" + Eval("Claim_Mas_Id")%>' />

Beside the claim id i need to pass the session value.

i have tried like this======

<asp:HyperLink ID="hlDetails1" Text='<%# Bind("Client") %>' runat="server"
NavigateUrl='<%# "ClaimDetails.aspx?Sup=Aud & ClaimId=" + Eval("Claim_Mas_Id")%>' />

===

Its working but it displays the claimid as 0.



Thanks in advance

Sucharitha Goud
Bank Of America..



Responses

Posted by: Blessyjees on: 11/17/2011 [Member] Bronze | Points: 25

Up
0
Down
Hi,

It is better to set the navigation url in RowDatabond event of the gridview

Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

Rrana, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response