Replies |
why do you say its not working. tell us more about your problem
Thank you for posting at Dotnetfunda
[Administrator]
Samy33, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
Samy33
Posted on: 2/19/2010 7:45:56 AM
|
Level: Starter | Status: [Member]
|
I dont know how to Call javascript funtion in asp.net Button control.Can you send the javascript codings which you are already used in your project
Samy33, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
its Simple
in your markup in the head you can add the following
<script language="javascript">
function Showit()
{
alert('Wow i did it');
return false;
}
</script>
and in your button right click on it and go to the properties of your button, and look for onclientClick and write this
Showit()
and run your test app and click the button and you will see your message
Thank you for posting at dotnetfunda
Vuyiswa Maseko
Thank you for posting at Dotnetfunda
[Administrator]
Samy33, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
Samy33
Posted on: 2/21/2010 3:04:29 AM
|
Level: Starter | Status: [Member]
|
This is not problem in my script.Alert msgs are working very nicely. i wrote javascript for validation.How to call the TextBox Name in Javascript.
for Example>>.
If(document.form1.GetElementId("TextBox1")="")
{
alert("Please Enter Ur Name");
return false;
}
>>>>
This Is my coding for validation at one Part
how to call a script in asp.net
tell me
Samy33, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
instead of document.form1.GetElementId("TextBox1"), try with document.GetElementId("TextBox1")
Mark this as answer, if it is.....
With regards
Nishithraj Narayanan
Samy33, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
And where do you want to call this code. That you should have told us before.
Mark this as answer, if it is.....
With regards
Nishithraj Narayanan
Samy33, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
Samy33
Posted on: 2/24/2010 11:17:47 PM
|
Level: Starter | Status: [Member]
|
Script is called in asp.net button control for validation checking
Samy33, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|