473,387 Members | 3,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How do you refresh web forms?

Jax
I'm kind of used to the windows forms make a change then type down the good
ol' this.refresh().
But in web forms i dont seem to have that choice no refresh, update or
anything that sounds vaguely like it. Surely i dont need a brand new webform
to display a slight change in the layout or appearance of the form.
What exactly is the command i'm looking for?
Thanks for any help given

Jax
Nov 15 '05 #1
6 3453
Hi Jax
you can only refresh a page by posting it back and reload it again.
"Jax" <i_am_anti_(spamless)ev********@hotmail.com> wrote in message
news:bj**********@titan.btinternet.com...
I'm kind of used to the windows forms make a change then type down the good ol' this.refresh().
But in web forms i dont seem to have that choice no refresh, update or
anything that sounds vaguely like it. Surely i dont need a brand new webform to display a slight change in the layout or appearance of the form.
What exactly is the command i'm looking for?
Thanks for any help given

Jax

Nov 15 '05 #2
In a form with a simple button called m_Button, you can add the
following event handler:

private void m_Button_Click(object sender, EventArgs e)
{
m_Button.Location = new Point
(m_Button.Location.X,m_Button.Location.Y + 5);
}

This moves the button down 5 pixels every time you press it. There's no
need for an explicit refresh. The button just does it.

Regards,

Jasper Kent

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #3
Jasper:

I'm not following you. The button fires a postback by default when you
press it which effectively refreshes the page doesn't it?
"Jasper Kent" <ja*********@hotmail.com> wrote in message
news:Op**************@TK2MSFTNGP11.phx.gbl...
In a form with a simple button called m_Button, you can add the
following event handler:

private void m_Button_Click(object sender, EventArgs e)
{
m_Button.Location = new Point
(m_Button.Location.X,m_Button.Location.Y + 5);
}

This moves the button down 5 pixels every time you press it. There's no
need for an explicit refresh. The button just does it.

Regards,

Jasper Kent

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 15 '05 #4
Jax
Is there a way of manually triggering the postback command?
If so will the page load event be called again, if so where am i supposed to
initialiaze my variables? I am lost without my constructor.
Thanks for any help

jax
Nov 15 '05 #5
Jax
I just got all the answers i need.
Thanks to everyone that chipped in with advice.
Well on my way to making some decent progress now.
Many thanks

jax

"Jax" <i_am_anti_(spamless)ev********@hotmail.com> wrote in message
news:bj**********@titan.btinternet.com...
Is there a way of manually triggering the postback command?
If so will the page load event be called again, if so where am i supposed to initialiaze my variables? I am lost without my constructor.
Thanks for any help

jax

Nov 15 '05 #6
Could you post your solution, 'cause I'm also having troubles with page
refreshing?

"Jax" <i_am_anti_(spamless)ev********@hotmail.com> wrote in message
news:bj**********@titan.btinternet.com...
I just got all the answers i need.
Thanks to everyone that chipped in with advice.
Well on my way to making some decent progress now.
Many thanks

jax

"Jax" <i_am_anti_(spamless)ev********@hotmail.com> wrote in message
news:bj**********@titan.btinternet.com...
Is there a way of manually triggering the postback command?
If so will the page load event be called again, if so where am i
supposed to
initialiaze my variables? I am lost without my constructor.
Thanks for any help

jax


Nov 15 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Danny | last post by:
HI How can I refresh the main project window in code in ms access 2000 For example, I create a new table, but when I minimize the form, the table is not there until I do F5 (refresh). I do...
6
by: Tim Marshall | last post by:
Here's the situation. A form, frmSetUp, with a subform control called subExplain with a source object form frmSetUpSubDefineSides. The source object is a bound form, displaying a few records, no...
2
by: Lucinda Roebuck | last post by:
I'm using Access 97 on a Windows XP computer. The combo box on the form "form1" will not refresh after a new name is added to the list. The "limit to list" properties for the combo box is set to...
5
by: Andrew Chanter | last post by:
I have a situation where I am using an unbound dialog form to update data in an Access 2002 split back end / front end scenario. The data update is done via an ADO call (direct to the back end...
18
by: Brandon Bray [MSFT] | last post by:
Shortly, the Visual C++ Tools Refresh will be available on the MSDN Visual C++ devcenter. You will need to have installed the Visual Studio 2005 Beta first. <http://msdn.microsoft.com/visualc> I...
7
by: Juan Romero | last post by:
Hey guys, please HELP I am going nuts with the datagrid control. I cannot get the damn control to refresh. I am using soap to get information from a web service. I have an XML writer output...
7
by: Lisa | last post by:
I have an Access 2000 application that uses the following function to re-link my tables when I switch from my Current back end to a Dummy back end. I also use it to refresh my links. Function...
4
by: Simon | last post by:
Dear reader, If I change the content of a field in an event procedure and in the same procedure I do a refresh, the refresh has no effect. The code in the event is as follows:
1
by: Aegixx | last post by:
Ok, extremely wierd situation here: (I'll post the code below, after the explanation) I've got a Windows application (.NET 3.5) that has a single Form with a DataGridView embedded. The user...
5
by: BlackBox | last post by:
I have a Listbox1 in the main form and I can add listbox1 items in the parent form. But when I close the parent form Listbox1 in the main form does not get refresh. I need to re-open the app. ...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.