User Profile
Collapse
-
I am not submitting the form to the same page. Once the AJAX method returns true value, the form gets submitted to another server mentioned in action attribute of the form tag. -
Here, in this example, everything is done in client side javascript itself. Even the methods are defined in JS. But in my case, I have a public method which will be in server side when I execute the form and it is only available to the form when it runs on server.Leave a comment:
-
<form id="frmLogin" name="frmLogin" onsubmit="submi tf();">
I tried this. But AJAX method didn't get executed. Because I need to have runat="server". If I mention this (as below), the form doesn't get submitted.
<form id="frmLogin" name="frmLogin" runat="server" onsubmit="submi tf();">Leave a comment:
-
Yes. I am getting the value on alert. Only the submit part is not working. I believe it is because I have runat="server" in the form tag. But if I don't mention this, AJAX method won't be executed. This is like a deadlock for me now!!Leave a comment:
-
If you don't specify runat="server", the AJAX method won't be executed at all. . It fails to call the method which is in the code behind.Leave a comment:
-
That is exactly what I am trying to do. I am using AJAX to retrieve the response and trying to submit the form. Since I have runat="server" in the <form> tag, I am unable to submit the form through JavaScript function. See below.
<script language="javas cript">
function submitf() //calling this function in onClick event of Submit button
{
Default.actuate Authenticate(ch eck_CallBack);...Leave a comment:
-
Ok. My issue is bit different.
I have this form
<form name='test' id='test' runat='server'>
<input type='text' id='uName' name='uName'/>
<input type='text' id='pwd' name='pwd' />
<input type="submit" name="submit" ID="submit" value="submit" />
</form>
Now, my process is something like this:
...Leave a comment:
-
Were you able to resolve this issue? If yes, how? I am looking for an answer as well !!!Leave a comment:
No activity results to display
Show More
Leave a comment: