web stats analysis

Archive for May 5th, 2012

Plesk domain is asking user id and password when opening it in browser.

Plesk domain is asking user id and password when opening it in browser.

Cause : Some permission has been failed to execute by the plesk panel.

Solution1 : It has always perform by the admin level.
before running any command you need to take the full backup .
If you are admin then you can run some command
cd %plesk_bin%
websrvmng –update-password –domain-name=domainname.com

Solution2 : If you are not an admin and you are taking the shared hosting and you are using plesk
then follow the below steps.
==>Login to the plesk panel
==>Select the particular domain under which you are facing this problem

Read the rest of this entry »

How to get readonly textbox value in codebehind

Solution

Type following code in aspx design page

<asp:TextBox ID=”TextBox1″ runat=”server” Text=”Hello”></asp:TextBox><br />

<asp:Button ID=”Button1″ runat=”server” Text=”Button” onclick=”Button1_Click” />

 

Type following code in code behind

protected void Page_Load(object sender, EventArgs e)
{
TextBox1.Attributes.Add(“readonly”, “readonly”);
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Write(TextBox1.Text);
}