I try your method, I had to make all my RequiredFieldValidator controls to be EnableClientScript="false". But how do I get ValidationSummary to only display one error message instead of all error message from all RequiredFieldValidator. Maybe I have to write my own javascript alert popup.
I was just wondering is it possible to assign a single RequiredFieldValidator to validate multiple controls. The reason I want to do this is because I have 10 text boxes, and I want to check if they are all filled in. If either just one box is empty or all boxes are empty, I want to just have...
Well is like this. I have a form for a user to enter their email. When submited, I want to go to success.asp page.
In the form there is also a checkbox to subscribe to a mailing list. If the checkbox is checked, I have to pass the email to addtomailinglist.asp page sitting on another server...
Usually when you post information from a form to another asp page like this:
<form method="post" action="someASPPage.asp">
It will redirect you to 'someASPPage.asp'.
I was wondering if there is a way of posting information from a form to another asp page, but not actually going to that asp page.
Just wondering if you want your page to do something immediately when the user click on one of you radio buttons on your form, do you have to add a onclick attribute to all your radio button tags. such as this
<input type='radio' name='radioName' value='0' onclick=javascript:somefunction>0<br>...
Hello There. Just wondering if there is a way to list all the methods of an object?
For example:
dim myobject : myoject = Server.CreateObject("someObject")
dim method
for each method in myobject
response.write method
next
but this deosn't work.
Thanks
Tony
I did some testing. If I do:
dim outerArray(2)
dim innerArray(2)
innerArray(0) = "donkey"
outerArray(0) = innerArray
response.write outerArray(0)(0)
It works, it prints out "donkey"
cool, I never knew this
can you put an array within an array. For example:
dim outerArray(2)
dim innerArray(2)
innerArray(0) = "donkey"
outerArray(0) = innerArray
response.write outerArray(0,0)
I get "Subscript out of range"
anybody know why? or is this not possible
Just wondering if there are any ways of exiting multiple nested loops. for example:
do while i<10
do while j<10
exit do
loop
loop
the exit loop in the above only exit the inner loop, is there a way to exit both loops.
I was just wondering if it is possible to evaluate a string into a object/variable name such as in javascript and flash actionscript with eval().
etc in actionscript:
var objectname = "car";
// the next line will call the car's method "speed()";
// same as writing...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.