G
Guest
Here is my problem :
I have a frameset and in one of the frames i have an aspx page
in that page and on click of the save button i am doing some validation
using javascript also on the same button i have a vbscript that saves the
data entered.
What i am facing here is when the data entered is not valid i need the the
page keeps the data entered and dont submit
But my page is submitting on the whole window
Anyone can help me
here is my code for more detail:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
If Not Page.IsPostBack Then
...............
Me.BtnSave.Attributes.Add("onclick", "CheckData();")
end if
end sub
in the body i have this :
<asp:button id="BtnSave" onclick="AddRequest" runat="server" Font-Size="8pt"
Width="72px" Text="Add"></asp:button>
javascript function
function CheckData()
{
}
and the AddRequest function in vbscript
I have a frameset and in one of the frames i have an aspx page
in that page and on click of the save button i am doing some validation
using javascript also on the same button i have a vbscript that saves the
data entered.
What i am facing here is when the data entered is not valid i need the the
page keeps the data entered and dont submit
But my page is submitting on the whole window
Anyone can help me
here is my code for more detail:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
If Not Page.IsPostBack Then
...............
Me.BtnSave.Attributes.Add("onclick", "CheckData();")
end if
end sub
in the body i have this :
<asp:button id="BtnSave" onclick="AddRequest" runat="server" Font-Size="8pt"
Width="72px" Text="Add"></asp:button>
javascript function
function CheckData()
{
}
and the AddRequest function in vbscript