Hello Sir/Mam
i'm using radalert to display message. On radButton
i'm using radalert to display message. On radButton
OnClientClicked Event
It show message window for few seconds and disappears........
I'm attaching source code..
<
telerik:RadWindowManager
ID
=
"RadWindowManager1"
runat
=
"server"
EnableShadow
=
"true"
DestroyOnClose
=
"true"
VIsibleOnPageLoad
=
"true"
>
</
telerik:RadWindowManager
>
<
telerik:RadCodeBlock
ID
=
"RadCodeBlock1"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function chkName()
{
var v1 = document.getElementById("<%=txtName.ClientID%>");
if (v1.value == "") {
radalert("Enter username");
return false;
}
else if(v1.value.search("^[a-zA-Z. ]{1,40}$") != 0)
{
radalert("Enter valid username", 300, 200, "NAME VALIDATION");
return false;
}
else
return true;
}
</
script
>
</
telerik:RadCodeBlock
>
<
table
>
<
tr
>
<
td
>Name</
td
>
<
td
>
<
telerik:RadTextBox
ID
=
"txtName"
runat
=
"server"
/>
</
td
>
<
td
>
<
telerik:RadButton
ID
=
"btnName"
runat
=
"server"
OnClientClicked
=
"chkName"
/>
</
td
>
</
tr
>
</
table
>
Help!!!1
Thanks