473,406 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

how to work Submit Button on Content Page in ASPmet 2.0

I am doing one project with asp net 2.0 and c# ,i have master page and content page ,
in content page i have 10 text box and one submit button , when submit
will click those text box need to validate .
i have written java script function in content page ,But when i click submit button it will execute server side code when java script function returns false .

i dont know how to do in ASPnet 2.0 please help any body .
============================================

i don't know some how i solved this problem
in page load of content page i have written

string aa = " if(document.getElementById('Text1').value==\"\") { alert('please'); return false; }";
Page.ClientScript.RegisterOnSubmitStatement(GetTyp e(), "done", aa);

it is working but i dont want to write every thing in code i want to write in .js file or in html function ....

please help me ,, i will be thankful to you .......

thank s
Dipesh
Jun 29 '07 #1
2 1371
giveDsolution
107 100+
I am doing one project with asp net 2.0 and c# ,i have master page and content page ,
in content page i have 10 text box and one submit button , when submit
will click those text box need to validate .
i have written java script function in content page ,But when i click submit button it will execute server side code when java script function returns false .

i dont know how to do in ASPnet 2.0 please help any body .
============================================

i don't know some how i solved this problem
in page load of content page i have written

string aa = " if(document.getElementById('Text1').value==\"\") { alert('please'); return false; }";
Page.ClientScript.RegisterOnSubmitStatement(GetTyp e(), "done", aa);

it is working but i dont want to write every thing in code i want to write in .js file or in html function ....

please help me ,, i will be thankful to you .......

thank s
Dipesh

Do the validation in aspx page within script tag and call it in pageload by adding the attribute in the click event of that button.
Jun 29 '07 #2
Do the validation in aspx page within script tag and call it in pageload by adding the attribute in the click event of that button.

hi,

Can you explain more i didnt get

thanks
Jun 29 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Pete Mahoney | last post by:
Ok I use a textarea to store data input by the user, and then upon them clicking the submit button I store this data to a database. The problem is once the user inputs too much data (about 3...
9
by: Eric George | last post by:
Hi, Has anyone had any success using jscript submit method in their VS.NET projects? For example I have some client processing in a script function then call <form name>.submit(); This won't...
2
by: Robert Wagner | last post by:
I've created a page using VS.NET and page validator controls. The client side validation works fine on IE, but does not even activate under "alternate" browsers like Mozilla, Opera, etc. Why is...
4
by: nicholas | last post by:
Weird thing: Got an aspx page with a button and an associated code in VB.net. On my testing server the page works fine. On the old hosters server the page worked fine too. But now, at the new...
4
by: John Boy | last post by:
Hi, Can anyone help. This is really doing my nut in. 3 years ASP exp. and now doing .DOT which is a step in the wrong direction. Basically I am left with the code of a guy who has left. When I...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
2
by: dipesh10 | last post by:
I am doing one project with asp net 2.0 and c# ,i have master page and content page , in content page i have 10 text box and one submit button , when submit will click those text box need to...
0
by: thersitz | last post by:
Hi, Using aspnet3.5,VStudio 2008, VB 1.) I have a set of pages, with a search text box button within a userControl that searches across our websites and is registered in a masterpage. 2)...
5
by: maheswaran | last post by:
Hi all, My home page have login button to login the users. Am trying to use lightbox method in login screen. Using this when user click the loing button, login form will appear with lightbox effect...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.