Reload after submit

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
 
L

Lucas Tam

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.

Use a custom validator, and attach the javascript the custom validator
instead.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top