if you configured treeview's viewstate property to false then treeview state back to it's default through requests.
so you should change the viewstate property to true then you can maintain treeview state through requests.
When you are login just make the cokie for user and set expiration time of the cookie say five minut and on that sensitive pages u just check the cookie on the page load event if the user came at that page after five minut then the cookie will expire and redirect to login page.
When a user successfully logs into my website he is sent to the main page. From there if he clicks on the logout link on that page he goes back to the login page. When he is directed back, however, the browser uses the page in the cache. How can I tell it to reload the login page from the server instead?
I am in big trouble. I want to export a asp table to excel with all formating, I am unable to get that I am setting the width in html table but exported table in excel does not contain that width it has its own width according to text. Cant i set the width of cell as of table?
how can i find the age of a person in dd/mm/yyyy format.....if the date of birth is given..
i have written a code but it doesent find the number of days(whn the current date is less than the date of birth ex 7/11/2008 - 12/10/2008 )
my code is
string m_Str = TextBox1.Text;
int m_Y1 = DateTime.Parse(m_Str).Year;
int m_m1 = DateTime.Parse(m_Str).Month;
int m_d1 = DateTime.Parse(m_Str).Day;
int m_Y2 = DateTime.Now.Year;
int m_m2 = DateTime.Now.Month;
int m_d2 = DateTime.Now.Day;
int m_date = m_d2 - m_d1;
if (m_date < 0)
m_m2 = m_m2 - 1;