Another approach to saving data for the user, is the ViewState. As described elsewhere in this tutorial, the ViewState allows ASP.NET to repopulate form fields on each postback to the server, making sure that a form is not
Friday, 26 August 2011
Asp.net Important Topics.
· What is view state and use of it?
The current property settings of an ASP.NET page and those of any
ASP.NET server controls contained within the page. ASP.NET can detect
when a form is requested for the first time versus when the form is
posted (sent to the server), which allows you to program accordingly.
The current property settings of an ASP.NET page and those of any
ASP.NET server controls contained within the page. ASP.NET can detect
when a form is requested for the first time versus when the form is
posted (sent to the server), which allows you to program accordingly.
ASP .NET Maintaining the ViewState
You may save a lot of coding by maintaining the ViewState of the objects in your Web Form.
Maintaining the ViewState
When a form is submitted in classic ASP, all form values are cleared. Suppose
Block IP addresses from your website
Recently, one of my readers asked me how to block certain IP addresses from accessing his ASP.NET website. It was a good question that could be answered in multiple correct ways. My answer was a plug ‘n play HttpModule that could be reused in any ASP.NET application. When an IP address is blocked it stops the response and sends a “403 Forbidden” header.
Thursday, 25 August 2011
How to Create Animated Photo Gallery using jQuery
Step 1. HTML
As usual, we start with the HTML. This is source code of our sample:
index.html
jQuery CSS Methods From this Page:
CSS Properties | Description |
---|---|
$(selector).css(name) | Get the style property value of the first matched element |
$(selector).css(name,value) | Set the value of one style property for matched elements |
$(selector).css({properties}) | Set multiple style properties for matched elements |
$(selector).height(value) | Set the height of matched elements |
$(selector).width(value) | Set the width of matched elements |
JQuery Small Examples and events
Query is a JavaScript Library.
jQuery greatly simplifies JavaScript programming.
jQuery is easy to learn.
Interview Questions on ASP.NET Exception Handling
What are Exceptions?
Exceptions are unusual occurrences that happen within the logic of an application.
Exceptions are unusual occurrences that happen within the logic of an application.
ASP.NET Interview Questions on caching
What is caching?High-performance Web applications should be designed with caching in mind. Caching is the technique of storing frequently used items in memory so that they can be accessed more quickly.
Saturday, 20 August 2011
How to use DataView ToTable method to create a new DataTable in ado.net
<%@ Page Language="C#" AutoEventWireup="true" %>
<%@ Import Namespace="System.Data"
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD
XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
asp.net ViewState example: how to use ViewState in asp.net
<%@ Page Language="C#"
%>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
Subscribe to:
Posts (Atom)