|
-
Feb 8th, 2012, 10:23 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Using hyperlinks and buttons load table from MSSQL
Hi Guys,
Got a problem that I spent all last night working on and still couldn't get it. I create this table dynamically. Then I have a text box and a button. You enter the name of a table in the text box and then click the button and that will call the MSSQL server and load the corresponding table. That works fine no problem.
Then I decided to create another table that lists the tables that are on the SQL server and create a hyperlink on each name of the table. So now all the user has to do is click the name of the table save the name of the table they clicked in the querystring and it will call the same procedure as the button.
The problem is that for some reason I'm getting a Findcontrol error that's telling me that two id's have the same id's when I click the hyperlink and then try to load through the button. It's duplicating the controls.
Is there anyone who's had this type of problem before and how did you get around it. Maybe I'm just not understanding what's happening in the background. I've tried clearing the viewstate, and session states and that still doesn't help me. Has something to do with how hyperllinks and buttons work.
thanks.
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
|