tag:blogger.com,1999:blog-5199087724247829980.post5785239184756531202..comments2023-05-30T12:47:39.613-07:00Comments on asp.net interview questions: ASP.NET ViewState related Interview QuestionsUnknownnoreply@blogger.comBlogger13125tag:blogger.com,1999:blog-5199087724247829980.post-43255637274169730642020-06-05T06:05:51.660-07:002020-06-05T06:05:51.660-07:00You are a blessing to the entire .NET communityYou are a blessing to the entire .NET communityAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-57582013351795109102014-09-11T12:52:07.395-07:002014-09-11T12:52:07.395-07:00Hi there,
I just created a sample web site. Added...Hi there, <br />I just created a sample web site. Added all the Page Events, ViewState is not available on Page_Init event.<br />It is available at Page_PreLoad Event.<br /><br />Can you please re confirm the same?<br /><br />between this article helped me a lot. ManyThanksDev Bhagathttps://www.blogger.com/profile/15727707792293097022noreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-6056708737093004632013-11-13T07:58:24.207-08:002013-11-13T07:58:24.207-08:00Is viewstate can be hacked .
Why because it encode...Is viewstate can be hacked .<br />Why because it encoded instead encrypted. <br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-84455141616717056822012-04-22T07:37:21.725-07:002012-04-22T07:37:21.725-07:00Hi All,
I need some clarifications regarding view...Hi All,<br /><br />I need some clarifications regarding viewstate concept in Asp.net.<br /><br />I have taken one textbox & button control and I set the enableviewstate=false for the textbox control. In the button click event i wrote the following code:<br /><br />viewstate["a"]=Textbox1.Text<br /><br />But i'm not understanding how the enableviewstate=false property is affecting the application.<br />I would really appreciate if anyone can explain me the below queries<br /><br />1. How the "enable view state=false" works for a control,for a page and the application.<br />2. I didn't find the hidden field where it is.<br />3. I heard that viewstate will do encrypting. But how it does i didn't understand.<br /> <br />If possible provide me simple examples.<br /> <br /> <br />Thanks,<br /> <br />Praveen.S.J.Praveenhttps://www.blogger.com/profile/18197719921006715415noreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-3979678472215713952012-01-26T00:35:21.456-08:002012-01-26T00:35:21.456-08:00Great Work. Thank you so muchGreat Work. Thank you so muchAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-79993702258529087392011-10-26T03:13:26.663-07:002011-10-26T03:13:26.663-07:00You Done A Great Job......I done my whole assignme...You Done A Great Job......I done my whole assignment from your website.....Great Work.......Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-6382352388268168992011-03-23T15:52:22.242-07:002011-03-23T15:52:22.242-07:00@Merin, the first format you used is for ASP.NET/V...@Merin, the first format you used is for ASP.NET/VB.NET. You cannot use that syntax in ASP.NET/C#. That's why in C# when you tried the second format, it worked. Because that't the right syntax for C#. Your first one will work in ASP.NET with VB.Unknownhttps://www.blogger.com/profile/10379180811799865252noreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-34406357964840289322010-09-23T00:18:05.229-07:002010-09-23T00:18:05.229-07:00I got this error: 'ViewState' is a 'ty...I got this error: 'ViewState' is a 'type' but is used like a 'variable' when i tried this in ASP.NET C#<br /> <br />ViewState("SomeVar") = txtFirstName.text; <br />String strFirstName = ViewState("SomeVar").ToString();<br /><br />This one worked fine.<br />ViewState["SomeVar"] = tbxName.Text;<br />lblName.Text = ViewState["SomeVar"].ToString();Merin Nakarmihttps://www.blogger.com/profile/13551920826173048746noreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-82713241667424138382010-09-22T01:51:22.790-07:002010-09-22T01:51:22.790-07:00Can you make HTML controls retain State accross po...Can you make HTML controls retain State accross postbacks?<br />Yes, HTML controls can retain State accross postbacks, if you convert HTML controls to Server Controls. There are 2 ways to convert HTML control to Server Controls.<br /><br />1. Right click on the HTML Control and then click "Run As Server Control"<br />Or<br />2. Set runat="server" attribute for the Control.<br /><br />I tried both the options. The first option was not available and second option did not work.Merin Nakarmihttps://www.blogger.com/profile/13551920826173048746noreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-23146219050335007102009-10-19T12:08:12.586-07:002009-10-19T12:08:12.586-07:00Best questions and answers on Viewstate.Best questions and answers on Viewstate.Soniahttps://www.blogger.com/profile/12012019485258425096noreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-22341269775241527782009-06-09T03:02:35.538-07:002009-06-09T03:02:35.538-07:00this not only gives good questions and answers, bu...this not only gives good questions and answers, but explains it neatlyAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-79056408368406250522009-05-12T00:45:00.000-07:002009-05-12T00:45:00.000-07:00this one was brilliant .. thanks...this one was brilliant .. thanks...Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5199087724247829980.post-54045136357843158602008-08-16T10:57:00.000-07:002008-08-16T10:57:00.000-07:00hi thx alot for such a wonderful questions and ans...hi thx alot for such a wonderful questions and answers...thxxxxxxxxxxxxxxxxxxxxAnonymousnoreply@blogger.com