|
Mark Nischalke wrote: Don't be rude. It may be urgent to you but not anyone else here.
If asking for help is rudeness then I am sorry for being rude.
My question is that is is there any way to post back the entire page to the server without using Update Panel.
|
|
|
|
|
Paramhans Dubey wrote: If asking for help is rudeness
Asking for help is not rude. Asking an URGENT response is.
Paramhans Dubey wrote: is there any way to post back the entire page to the server without using Update Panel.
Yes, of course there is, that is how ASP.NET works.
Perhaps you need to restate your question.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark Nischalke wrote: Asking for help is not rude. Asking an URGENT response is.
let's finish this here. I apologize for being rude.
and also i restate my question:
I have a long running procedure which takes approx. 1 mins to complete. I am calling the method using a delegate and ICallBack. When my process completes the it raises an event which is handled on UI wherein I am assigning the datasource to grid but as this is a asynchronous update the updates are not visible on the Page. I cant use Update panel in my project.
My question is that is is there any way to post back the page to the server without using Update Panel after asynchronously updating the page to show the updated contents.
|
|
|
|
|
You can cause a postback from JavaScript, plenty of examples for that. However, what will you gain? You will postback, causing the grid to rebind, causing your callback to launch, causing you to enter an infinite loop. What you need to do is parse the data on the client, something like this, http://msdn.microsoft.com/en-us/magazine/ee309508.aspx[^]. Is there a valid reason to not use UpdatePanel?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
keep some hidden button in the page and call button1.click()
or
__dopostback("","")
or
this.form[0].submit()
|
|
|
|
|
Hi I have a form with text fields that I am trying to validate. I get this error and validation fails. Firefox error Console shows:
Error: document.Registring.elements.fieldName is undefined
It doesn't recognize fieldName as variable. Without runat="server" I think the issue disappears. How to fix this?
Thank you.
Here is the snippet:
<script type="text/javascript">
function checkform(fieldName) {
var fieldIs = document.Registring.elements[fieldName].value;
if (fieldIs == "")
return false;
else
return true;
}
function ValidateFields() {
var errorMessage = "";
var returnResult = true;
//Personal Information
if (!checkform('FirstName')) {
errorMessage += "First Name is a required field \n";
returnResult = false;
}
if (!validateInputType('FirstName', "letters")) {
errorMessage += "First Name should contain letters only \n";
returnResult = false;
}
}
function validateInputType(fieldName, inputType) {
if (inputType == "digits") {
var isNumber = document.Registring.elements[fieldName].value;
//digits only
if (isNumber.match(/^\d+$/))
return true;
else
return false;
}
else if (inputType == "letters") {
var isLetter = document.Registring.elements[fieldName].value;
//letters only
if (isLetter.match(/[a-zA-Z]/))
return true;
else
return false;
}
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title> Reservations </title>
<form runat="server" name="Registring" onsubmit="return ValidateFields();" id="Registring" method="post">
<table width="100%">
<tr>
<td>
<table border="0" width="100%" style="height: 260px;">
<tr>
<td colspan="2" style="background-color: #8c93a5; font: arial 14px; font-weight:bold">PERSONAL INFORMATION</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td align="right" style="width: 230px"><span>*</span><b>First Name:</b></td>
<td><input type="text" runat="server" name="FirstName" size="30" /></td>
</tr>
</table>
<input runat="server" type="image"
src="images/btn_submit.gif"
name="Order" value="Reserve" align="top"
/><br />
</form>
</body>
</html>
|
|
|
|
|
try replacing
document.Registring.elements[fieldName].value
with
document.getElementByID(fieldName).value
|
|
|
|
|
and add an id attribute to the item as: <input type='text' runat='server' id='xxx' name='xxx' ... etc.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
Thanks for the response. I am getting an error in firefox: Error: document.getElementByID is not a function
|
|
|
|
|
Well, it is... make sure you have replaced your square brackets [] with round ones (), that your spelling is correct, and that you have also followed the advice of digital man following my earlier post.
|
|
|
|
|
Thanks. This is the code I have used: var fieldIs = document.getElementByID(fieldName).value;
And I have added id as follows: <input type="text" runat="server" id="FirstName" name="FirstName" size="30" />
Is that how it should be?
|
|
|
|
|
OK, sorry - my bad - should be lower-case d at teh end:
getElementById
(case-sensitive)
|
|
|
|
|
|
i'm developing a program but i don't where to start,please help me
|
|
|
|
|
You need to start at gathering requirements for the app you are going to develop. What is the app suppose to do? what functionality do you want to support? who is the target audience? Once you have the requirements, it should flow the process pretty easily.
Your requirements come from your user/project lead/product manager or sometimes you have to gather it for yourself.
If this is a school HW, then either you need to make it up or I find it easier to talk to someone in the field of the app you are trying to develop.
Good Luck!
|
|
|
|
|
Decide the input and output of your code...then start developement
follow the SDLC...
Rating always..... WELCOME
Be a good listener...Because Opprtunity Knock softly...
Use http://www.google.com/transliterate/ for translator
|
|
|
|
|
Ok, start from here... What do you mean by 'Chemistry Program'?
|
|
|
|
|
i want create an ambient for molecule but i don't know the command for do this
|
|
|
|
|
i'm using pspad and visual c
|
|
|
|
|
I'm very curious to know more about your project, and I would like to help you.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
|
Step 1: Decide what ever a chemsity program is. (What does it do: get atomic/molecular weights, simuate mocules, calculate statistical thermodynamics properties)?
Step 2: Decide what features you need to fulfill your ideas from step 1, and keep breaking down until you have managable problems
Step 3: Implement the features, writing tests as you go.
|
|
|
|
|
Step 3: Write test, then implement feature.
|
|
|
|
|
hi,
Do you know whats is the best approach for implementing online shopping card?
I am new and need some help and article regarding this matter.
|
|
|
|
|
Did you try to search on google?
Here is a great google result[^] with useful links about your question.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|