Displaying Page (2) of (2) | Total FAQ's Found : (43) |
Back | ( End of Records ) |
31) | Can the view state be encrypted? |
| The view state can be encrypted by setting EnableViewStateMac to true and either modifying the element in Machine.config to tag. Then, a byte[] can be declared to read in the data from the input file. This can then be sent to the server. |
39) | How do I create an ASPX page that periodically refreshes itself? |
| The following META tag can be used as a trigger to automatically refresh the page every n seconds:
|
40) | How do I initialize a TextBox whose TextMode is "password", with a password? |
| The TextBox’s Text property cannot be used to assign a value to a password field. Instead, its Value field can be used for that purpose.
|
41) | Why does the control's PostedFile property always show null when using HtmlInputFile control to upload files to a Web server? |
| This occurs when an enctype="multipart/form-data" attribute is missing in the |
42) | How can the focus be set to a specific control when a Web form loads? |
| This can be achieved by using client-side script:
document.forms[0].TextBox1.focus
The above code will set the focus to a TextBox named TextBox1 when the page loads.
|
43) | How does System.Web.UI.Page's IsPostBack property work? |
| IsPostBack checks to see whether the HTTP request is accompanied by postback data containing a __VIEWSTATE or __EVENTTARGET parameter. If there are none, then it is not a postback. |
Pages ( 1 | 2 ) |