Feb 19 2006

Password TextBox and PostBack

Sometimes in an ASP.NET (1.x/2.x) webform, we might have a Password TextBox, and one of the DropDownLists or RadiobuttonLists or any control present inside the web form might do a postback before you need to submit the form.

Every time this happens, I loose the Password TextBox value. A solution that might help you preserve the Password Textbox value upon postback is to add the following line inside the Page_Load event handler, so that they execute AT EVERY PAGE EXECUTION:

// Refill Password field
this.txtPassword.Attributes.Add("value", this.txtPassword.Text);

Hope this helps,

Regards

Tags: , ,

Feb 14 2006

Working with DotNetNuke Custom Modules

Category: DotNetNukeBil@l @ 17:36

I have recently started working with DotNetNuke, this is my first post in the DotNetNuke category, so expect I will be posting more often here in this section.

To start with, I would like to point all DNN developers about a great link where they can download CodeSmith Templates for creating DotNetNuke Modules.

You can visit: VS.NET 2003 Project Templates for DotNetNuke to download the templates you can use to create a new module. 

You can alos check this great article, that helps you out develop your first Module in DotNetNuke 3.x, located at: DotNetNuke Random Image Module - Tutorial

That was my start with Custom Modules or Private Assemblies in DotNetNuke.

Enjoy DotNetNuking !!

Regards

Tags: