View Single Post
  #1 (permalink)  
Old October 28th, 2008, 06:02 PM
cyberstore05
Guest
 
Posts: n/a
Default How to Bind Two Variables to LinkButton Control

Hi,
I need to bind more than one parameter to a LinkButton's PostBackUrl property using the EVAL() method. I am trying to pass two parameters from one web page to another. The expression I have tried to compose is something like this: PostBackUrl ='<%#"Page1.aspx?PriceSearch=" & Eval("Price") %>'>

The above works for one parameter. Adding a second parameter like this the following does not work:
PostBackUrl ='<%# Eval("Price", "Page1.aspx?PriceSearch={0}") + "&=RangeSearch" _
+ Request.QueryString("Range")%>'>

In effect the two parameters I want to pass are "Price" and "Range".
Any help will be appreciated.


Reply With Quote