R
Rick
Hi,
1) HelloWorld.aspx?productID=abc123
2) HelloWorld.cs calls the database and gets a block of HTML code:
string dbReturned = "<body>Hello World, <a
href=http://localhost/?productID={NEED TO GET FROM THE CURRENT REQUEST QUERY
STRING}>click me</body>"
displayDBHTML = dbReturned;
3) HelloWorld.aspx
<asp:Label id="displayDBHTML" runat="server"></asp:Label>
Question: How can the link in the db html code have it's productID set to
Request.QueryString.Get("productID") at run time. I would like to avoid
parsing the block with a find and replace. Ideally asp.net would fill it in
as if I had hard coded it with inline code.
The view source code in the browser to look like this:
<body>Hello World, <a href=http://localhost/?productID=abc123">click
me</body>
Ideas?
Rick
1) HelloWorld.aspx?productID=abc123
2) HelloWorld.cs calls the database and gets a block of HTML code:
string dbReturned = "<body>Hello World, <a
href=http://localhost/?productID={NEED TO GET FROM THE CURRENT REQUEST QUERY
STRING}>click me</body>"
displayDBHTML = dbReturned;
3) HelloWorld.aspx
<asp:Label id="displayDBHTML" runat="server"></asp:Label>
Question: How can the link in the db html code have it's productID set to
Request.QueryString.Get("productID") at run time. I would like to avoid
parsing the block with a find and replace. Ideally asp.net would fill it in
as if I had hard coded it with inline code.
The view source code in the browser to look like this:
<body>Hello World, <a href=http://localhost/?productID=abc123">click
me</body>
Ideas?
Rick