|
How reset webform after saving data.
-- modified at 6:31 Wednesday 1st November, 2006
Reload page is one of the meethod but i don't want to reload page for reset task.
I want to do it by javascript.i use document.form1[].reset() or used many option like
function resetForm(){
//window.document.Form1.reset();
//document.form1["Invoice"].reset();
document.form1[0].reset();
//document.clear();
}
i call this function on clientclick event of servercontrol button.
it executes but not reset the page
neetu
neetu
|
|
|
|
|
You can reload the page on click of the server control. What is the problem you are getting in that?
Best Regards,
Apurva Kaushal
|
|
|
|
|
Yes it is one of the meethod but i don't want to reload page for reset task.
I want to do it by javascript.i use document.form1[].reset() or used many option like
function resetForm(){
//window.document.Form1.reset();
//document.form1["Invoice"].reset();
document.form1[0].reset();
//document.clear();
}
i call this function on clientclick event of servercontrol button.
it executes but not reset the page
neetu
|
|
|
|
|
The better idea would be to reload the page with serverside code. But if you want to use reset method then you can use it like this:
document.form1.reset()
Here form1 is the form name.
Best Regards,
Apurva Kaushal
|
|
|
|
|
step - 1
on pageInit method write this code-
button.attributes.add("onClick","resetForm();")
step- 2
function resetForm(){
//window.document.Form1.reset();
//document.form1["Invoice"].reset();
document.form1[0].reset();
//document.clear();
}
it's help full
Parwej Ahamad
|
|
|
|
|
Form will reset by using this method but what about the validation controls. We need to reset all the validation controls in this function tooo. so hoW???
Lets work it Out.........!
|
|
|
|
|
One is u can access all sever control by document.getelementbyid and perform the operation.
second one i will try
Parwej Ahamad
|
|
|
|
|
I have some pages that require authentication. I access these pages using HTTPS...
I have set my session timeout to 60 minutes:
<authentication mode="Forms">
<forms name="Online" path="/" loginurl="..." protection="All" timeout="60">
<sessionstate mode="InProc" cookieless="false" timeout="60">
However, the system is very unreliable. Sometimes, I get logged out of secure pages after 5, 10 or 15 minutes on inactivity.
Would be grateful if someone could inform why the system logs me out after inactivity which is less than 60 minutes.
P.S
In my code-behind page, I use:
private void Page_Load(object sender, System.EventArgs e)
{
//if not authenticated if (!Context.User.Identity.IsAuthenticated) {
Response.Redirect("....");
}
}
So actually I never use the login page as specified in the web.config file
|
|
|
|
|
hi..
i m getting '!Error on page' after binding data to dataGrid....
if i comment dataGrid1.DataBind().... its working fine with '!Done' on bottom-left side of page....
thanks ..
|
|
|
|
|
What is the error description?
Best Regards,
Apurva Kaushal
|
|
|
|
|
hi..
line 1: Object required
but if debugged ... n after clicking 'break'... it pops up as..'source code not available'
thanks
|
|
|
|
|
Have you declared the datagrid correctly i mean and also check that you are doing anyspelling mistakes. C# is case sensitive.
Best Regards,
Apurva Kaushal
|
|
|
|
|
ya i have declared right names ...
it works fine if not debugged .... ie datagrid is populated with the data in it...but with 'Error on Page' alert icon at bottom left side of page
|
|
|
|
|
sheetal alaspure wrote: it works fine if not debugged
Means it is working fine if you are not executing it in debug mode, right?
Best Regards,
Apurva Kaushal
|
|
|
|
|
ya ...
but want to remove that alert 'Error on page'...
cause i came to know that it is creating problem in DataBind()....
|
|
|
|
|
I dont think that that part would be creating the problem, can you send code for that, so that it will be traceble.
Best Regards,
Apurva Kaushal
|
|
|
|
|
|
Please give complete information.
There may be an error due to incorrect columnname in grid(if u r defining column statically)may be spell mistake in column name.
explain what is datasource of ur gridview.
regards,
Neetu
neetu
|
|
|
|
|
column name same as '<%# DataBinder.Eval(Container, "DataItem.columnName") %>'
|
|
|
|
|
there is any spelling mistake in yur datasource name or in gridname
neetu
|
|
|
|
|
hi friends,
in my project i have to display a set of photos stored in a folder dynamically to the web page,
wat we did is that we have stored the path of a destination folder into a single column in SQL server and then we have to retrive all the photos stored in that specifeid folder to the web page....
i'm able to get the photos stored in it,
so can anyone help me out
thank you,
|
|
|
|
|
krishsenthilraj wrote: 'm able to get the photos stored in it,
If you are able to get the pictures then what is the problem you are getting in displaying them?
Best Regards,
Apurva Kaushal
|
|
|
|
|
http://www.codegrounds.com/
Haridas.R
harisofttech@gmail.com
harisofttech@hotmail.com (online)
harizeenet@yahoo.co.in(online)
"Achievement is not a destination, its a journey "
|
|
|
|
|
Why?
Best Regards,
Apurva Kaushal
|
|
|
|
|
Haridas.R wrote: "Achievement is not a destination, its a journey "
"Advertisement is not welcome, continue your journey "
|
|
|
|