|
-
Jun 3rd, 2008, 09:23 AM
#1
Thread Starter
Addicted Member
[2005] Change NavigateUrl in code?
Hello all.
Before I begin, this is VB.net code behind.
Databinding was not my decision. This application was developed by a contractor about a year before I began working here. Now, they want to "expand" the application and because of the databinding behaviors, it's been a bit of a headache.
Anyway, I have a webpage with a datagrid that is bound to a collection. I have had no problems binding the grid to the proper collection in code.
However, I have three columns: A, B, C (yea, literally), and each letter is a hyperlink to a different page.
The problem comes in when I click one of those three column links. The navigate url is hardcoded into the source (because of the databinding? I dunno), so it does not transfer the necessary variables to the next page for proper display. It's still looking for certain values in the grid, which have not been populated by the current collection.
In short, the navigateurl needs to change based on a session variable.
Is there any way to change the navigate url in code? If not, is there a way to change it in the source? I am completely out of ideas on this one.
If my post helped you, please rate it!
Languages: VB/ASP.NET 2005, C# 2008,VB6
Databases: Oracle (knowledge not currently in use), DB2
FROM Customers
WHERE We_Know_What_We_Want <> DB.Null
SELECT *
0 rows returned
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|