Hi, Refer below link for what is session state and how to save and read values in session state. http://msdn.microsoft.com/en-us/library/6ad7zeeb.aspx[^] Brief about session state and view state: View State are valid mainly during postbacks and information is stored in client only. Viewstate are valid for serializable data only. Moreover Viewstate are not secured as data is exposed to client.It get stored in browser. Although we can configure page directive and machine key to make view state encrypted. Session State- this is user specific data that is stored in server memory . Session state is valid for any type of objects. We can take help of session through different web pages also. But yes this is valid till that user's session. Hope this is of help. Cheers Shilpa
ShilpaGinodiya
Posts
-
How can save and read data into the session state for user name and password? -
Folder and file viewHi, You didnot mention which version of .Net are you working on? Anyways, if you are using .net 2.0 you can use fileupload control by which you can select the file same as you select in windows. Just add below code on page_load event. Button1.Attributes.Add("onclick","document.getElementById(' " + FileUpload1.ClientID+ "').click()"); Where button1 is the id of the button you want to open the browser window when being clicked and FileUpload1 is the id of the file upload control. But if you are using .net 1.1 you need to write code explicitely for opening window explorer like file selector. There are some classes defined in framework for that. Hope this will help. :) Cheers Shilpa
-
Determining the Datatype from the typed text in text boxHi Luc, As the value in the textbox would always be text i.e. of string data type. So how tryparse will determine of its actual type as int or double or some other? Shilpa
-
Emerging technologies/trends in .NetHi All, What are the emerging technologies/trends in .net right now? Is anyone have any idea. Please let me know. Thanks Shilpa