We have a DataGrid on a web form (ASP.NET using C# code) in which we have a Hyperlink column.
We're able to pass one parameter to another page via this Hyperlink. For instance against the grid designer we're setting :
- URL Format String : WebPage2.aspx?Param1={0}
- URL Field : Field1
... And then reading the parameter in the second form using :
- string param1 = Request.Params["Param1"];
The {0} parameter in the URL Format String passes the 'Field1' entry.
How would we create a Hyperlink passing two parameters - i.e. two such entries from the grid (let's say Field1 + Field2).
We've tried various combinations with no success - any help would be appreciated.
Thanks in advance.
Steve
We're able to pass one parameter to another page via this Hyperlink. For instance against the grid designer we're setting :
- URL Format String : WebPage2.aspx?Param1={0}
- URL Field : Field1
... And then reading the parameter in the second form using :
- string param1 = Request.Params["Param1"];
The {0} parameter in the URL Format String passes the 'Field1' entry.
How would we create a Hyperlink passing two parameters - i.e. two such entries from the grid (let's say Field1 + Field2).
We've tried various combinations with no success - any help would be appreciated.
Thanks in advance.
Steve