473,394 Members | 1,944 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,394 software developers and data experts.

after click refresh

hi,

i have a button... after a click on it a function is called ... in it it is
done something and it is needed to reload the page now... how can i reload a
page? with Response.Redirect ? or is there a better solution? what are the
parameters, that exactly the called url is refrehed (including the
querystring)

thanks
alex
Nov 19 '05 #1
4 1606
Hello,

Actually Response.Redirect will be better option to reload the page itself.
As u can maintaing all the parameters of the url here.

Regards,
Niraj Ranka
"Alexander Widera"
<aw**@hrz.tu-chemnitz.de-novaliddomainpleasedeletethispart.de> wrote in
message news:%2***************@TK2MSFTNGP09.phx.gbl...
hi,

i have a button... after a click on it a function is called ... in it it
is done something and it is needed to reload the page now... how can i
reload a page? with Response.Redirect ? or is there a better solution?
what are the parameters, that exactly the called url is refrehed
(including the querystring)

thanks
alex

Nov 19 '05 #2
Alexander Widera wrote:
hi,

i have a button... after a click on it a function is called ... in it
it is done something and it is needed to reload the page now... how
can i reload a page? with Response.Redirect ? or is there a better
solution? what are the parameters, that exactly the called url is
refrehed (including the querystring)

thanks
alex


If you change values in the onClick event or in PreRender then you don't
have to do anything. The page will re-show itself if you don't redirect away
from it.
One warning: if the user then "refreshes" the page, he will
a) receive a client-side warning about resubmitting values
b) execute the onClick again.

Hans Kesting
Nov 19 '05 #3
I have the following problem:

- the onclick is fired (and the page reloads) ...
- the default(-template-)page begins to load ....
- it loads an unsercontrol ...
- in it is the function for handling the onclick-event
- the function manipulates an value of an object of a self-created-class
- the new value should be displayed on the current page ... BUT ...the
output of the value is in an other usercontrol, and this control is loaded
before the control of the click-handling usercontrol...
- and so the value stays the old ... only after an refresh (without
resending) the value is the correct (new) one

and that is the problem i think ...
but if i change the order of the usercontrols the same effect occurs... i
dont know why ...
if i place a Response.Redirect(Request.Url.ToString()) then it works ...
but
.... it's not the fine way ...

Does somebody knows more about my problem?

Thanks

"Hans Kesting" <ne***********@spamgourmet.com> schrieb im Newsbeitrag
news:uS**************@TK2MSFTNGP12.phx.gbl...
Alexander Widera wrote:
hi,

i have a button... after a click on it a function is called ... in it
it is done something and it is needed to reload the page now... how
can i reload a page? with Response.Redirect ? or is there a better
solution? what are the parameters, that exactly the called url is
refrehed (including the querystring)

thanks
alex


If you change values in the onClick event or in PreRender then you don't
have to do anything. The page will re-show itself if you don't redirect
away
from it.
One warning: if the user then "refreshes" the page, he will
a) receive a client-side warning about resubmitting values
b) execute the onClick again.

Hans Kesting


Nov 19 '05 #4
and one more problem:

the onclick event comes from a rewritten-url ... e.g.
/en/mypage/default.aspx ... but if i use
Response.Redirect(Request.Url.ToString()) then the Url is e.g.
/default.aspx?lang=en&page=mypage

How can I get the Url which is displayed in the browser-location-bar?

Thanks for help
"Hans Kesting" <ne***********@spamgourmet.com> schrieb im Newsbeitrag
news:uS**************@TK2MSFTNGP12.phx.gbl...
Alexander Widera wrote:
hi,

i have a button... after a click on it a function is called ... in it
it is done something and it is needed to reload the page now... how
can i reload a page? with Response.Redirect ? or is there a better
solution? what are the parameters, that exactly the called url is
refrehed (including the querystring)

thanks
alex


If you change values in the onClick event or in PreRender then you don't
have to do anything. The page will re-show itself if you don't redirect
away
from it.
One warning: if the user then "refreshes" the page, he will
a) receive a client-side warning about resubmitting values
b) execute the onClick again.

Hans Kesting


Nov 19 '05 #5

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

Similar topics

5
by: Dave | last post by:
I tried posting this in the WinForm forum and got no hits so I am trying it here. After inserting a new data row to a DataTable that is bound to a datagrid, I am unable to change data in a row...
7
by: al | last post by:
Greetings all, I use request.form("textbox1") to get data back to page, dim str as string str = request.form("textbox1").tostring But str is always empty after refresh???? I use asp.net...
11
by: Russ | last post by:
My web app writes some binary data to a file at the client site via Response.Write and Response.BinaryWrite. This action is accomplished in response to a button click, with C# code behind as...
22
by: Br | last post by:
First issue: When using ADPs you no longer have the ability to issue a me.refresh to save the current record on a form (the me.refresh does a requery in an ADP). We usually do this before...
6
by: Dugo | last post by:
I'm trying to use a "keypad" form (with command buttons for numbers 0 thru 9) I developed to allow users to first click a textbox on one form, then click a number on the keypad and have the value...
4
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi. If an ASP.NET page postsback, for example, after a button is clicked, and then I refresh the page (ie, by pressing F5 key), why does the same event occur when I press F5 as it did when I...
2
by: Max2006 | last post by:
Hi, I have a simple form with a button on it. After a button click postback, anytime user press F5 (browser page refresh), the button's OnClick event handler is called again without the button...
4
by: billa856 | last post by:
Hi, My project is in MS Access. In that I have one Form(DataEntry) which I am using for entering data into the Table(PRODUCTION). Now after entering data in Textboxes when I click on...
7
by: seanmatthewwalsh | last post by:
Hi I have a page (default.aspx) that pulls it's HTML from a database. I then have a "content management" page (editpage.aspx) that allows the user to edit the HTML in the database. When the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.