Hi,
If you need a more complicated post back behaviour you can include a hidden which contains a value which includes your desired post back behaviour.
<asp:hidden id="hdnAction" runat="Server" xmlns:asp="#unknown" />
Update your javascript method to assign an action and submit the form:
function validateTextTest() {
document.getElementById('hdnAction').value = 'MyAction';
document.forms[0].submit();
}
Then in your page load:
protected void Page_Load(Object sender, EventArgs e)
{
if(IsPostBack)
{
switch(hdnAction.Value)
{
case "MyAction":
break;
}
}
}
You then remove the server event binding from your button:
<asp:button id="Save" runat="server" text="Save" onclientclick="javascript : validateTextTest()" xmlns:asp="#unknown">
Width="63px" /></asp:button>