|
|
|
|
|
Total Hits: 7 | Today: 0
|
Author: Jayendrasinh Gohil
|
Rating:
|
|

User control is powerful functionality of ASP.NET. With the help of the user control you can reuse the Design as well as code in the application. Developing User control is similar to developing form in ASP.NET. User control is created in markup file with .ascx extension....
|
|
|
|
Total Hits: 2 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

To use a user control, you include it in an ASP.NET Web page. When a request arrives for a page and that page contains a user control, the user control goes through all of the processing stages that any ASP.NET server control performs. For more information about these processing stages, see ASP.NET Page Life Cycle Overview....
|
|
|
|
Total Hits: 2 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

At times, you might need functionality in a control that is not provided by the built-in ASP.NET Web server controls. In those cases, you can create your own controls. You have two options. You can create: * User controls. User controls are containers into which you can put markup and Web server controls. You can then treat the user control as a unit and define properties and methods for it. * Custom controls. A custom control is a class that you write that derives from Control or We...
|
|
|
|
Total Hits: 1 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

Just as you can programmatically create an instance of any server control on an ASP.NET Web page, you can do the same with a user control....
|
|
|
|
Total Hits: 2 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

If you have developed an ASP.NET Web page and would like to access its functionality throughout your application, you can make some minor alterations to the page to change it to a user control....
|
|
|
|
Total Hits: 7 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

You can display the name of the current user using the LoginName control. This control displays the user ID of the current logged-in user, whether the user's identity is established with ASP.NET login controls (and implicitly, ASP.NET membership) or with Integrated Windows authentication....
|
|
|
|
Total Hits: 7 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

You can cache multiple versions of a user control by simply declaring it in an .aspx file more than once. As with user controls that are not cached, you can include a cached user control in an ASP.NET page as many times as needed for your application. Unless you set the Shared property to true for the user control, multiple versions of the control output will be stored in the cache....
|
|
|
|
Total Hits: 7 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

You can vary caching of user-control output in two ways:
*
Specify the user control name along with either a query string or a form POST parameter. You can do this declaratively using the VaryByParam attribute of the @ OutputCache directive. Alternatively, you can do it programmatically by setting VaryByParams property in the PartialCachingAttribute in the user control's code....
|
|
|
|
Total Hits: 7 | Today: 0
|
Author: milindchavan12
|
Rating:
|
|

In addition to using Web Server controls in your ASP.NET web pages, you can create your own custom, reusable controls using the same techniques you use for creating ASP.NET web pages. These controls are called User Controls. A User Control is a kind of composite control that works much like an ASP.NET web page - you can add existing web server controls and markup to a User Control, and define properties and methods for the control. You can then embed them in ASP.NET web pages, where they act as ...
|
|
|
|
Total Hits: 11 | Today: 0
|
Author: BlogEngine.NET
|
Rating:
|
|

Recently I was working on a project to help administer the user accounts that used the asp.net membership provider. Why was I doing this? I did this because you can't really use the ASP.NET Configuration Tool in Visual Studio to manage a remote website. Now I'm sure there is a way to take the files that it uses and make it work on a remote server, but probably more time than what it's worth....
|
|
|
|
Total Hits: 19 | Today: 1
|
Author: Akrumooz
|
Rating:
|
|

This article explains how to make a change password feature in MOSS 2007, so the user can change his/her password. This article doesn't describe how to enable FBA (Forms Based Authentication) in MOSS that you can find easily in different blogs and articles in the internet. I suggest this article on The Code Project: MOSS 2007 – Enabling Forms Authentication [^]....
|
|
|
|
Total Hits: 25 | Today: 0
|
Author: M.Premraj
|
Rating:
|
|

Normally, whenever the is post backed that time the password field will clear. But we dont want doing like that.
On that scenario, we can add a little bit of code will avoid the issue....
|
|
|
|
|
|