Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Disable Buttons based on table data

Author  Topic 

vk18
Posting Yak Master

146 Posts

Posted - 2006-12-14 : 21:41:13
Friends,
I have 5 aspx(asp.net) pages in one of my application. In the 3rd aspx page i am populating the DataGrid with some id's from the Sql Server2000 table based on the user selection. For Example if the DataGrid Displays 2,3 then if the user goes back to the 1st page and search the Datagrid with 2,3 then i want to DISABLE the UPDATE Button. Any ideas on how to do this..Pls let me know if my question is not clear. I am using(VB.NET/ASP.NET/SQL SERVER2000).
Thx

snSQL
Master Smack Fu Yak Hacker

1837 Posts

Posted - 2006-12-15 : 00:51:03
Use session variables - they allow you to set a value in one page and read it in another page. Lookup "ASP.NET Session State"
http://msdn2.microsoft.com/en-us/library/87069683.aspx
Go to Top of Page
   

- Advertisement -