473,398 Members | 2,380 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,398 software developers and data experts.

How to avoid refresh when postback to ASPX

Using ASP.NET 2.0

Need to simply process incoming postback information without sending
back a reponse.

Client sends HTML from application other than a browser to a page on a
web site. Web Server ASP generates a response page and send it back
which opens the browser on the client.

How to avoid sending back the response page.
Thanks,
RobGMiller.........

Feb 28 '07 #1
6 3396
How to avoid sending back the response page.

You can't. You'll probably have to explain the problem a bit better so that
people can suggest an alternative way.
Feb 28 '07 #2
hi,
I'd say, use a custom handler... google for "IHttpHandler" or see msdn on
this subject. there are many exemples of this on the net. Other than that,
you could also use a webservice which would be even simpler and more
scalable...

I hope it helps

ThunderMusic
"RobGMiller" <Ro********@gmail.comwrote in message
news:11**********************@h3g2000cwc.googlegro ups.com...
Using ASP.NET 2.0

Need to simply process incoming postback information without sending
back a reponse.

Client sends HTML from application other than a browser to a page on a
web site. Web Server ASP generates a response page and send it back
which opens the browser on the client.

How to avoid sending back the response page.
Thanks,
RobGMiller.........

Feb 28 '07 #3
Not sure what you meant ?

If you have a Windows application that sends "data" (not HTML) to a web
server then this is your application that will read the response and will do
whatever it wants. So I'm not sure how you would have a browser opening
automagically...

I'm not sure how you are sending "HTML" (or "data" ?) to the web server. Is
this from a Windows application ? How do you that ? Try System.Net.WebClient
if you want to access a web site from a Windows application...

Patrice
"RobGMiller" <Ro********@gmail.coma écrit dans le message de news:
11**********************@h3g2000cwc.googlegroups.c om...
Using ASP.NET 2.0

Need to simply process incoming postback information without sending
back a reponse.

Client sends HTML from application other than a browser to a page on a
web site. Web Server ASP generates a response page and send it back
which opens the browser on the client.

How to avoid sending back the response page.
Thanks,
RobGMiller.........

Feb 28 '07 #4
If I've correclty understood your question, you will probably have to deal
with JavaScript to create a request to the server. This request will points
to a custom handler (ashx files are good for that), and since it will be run
from the javascript code, the page won't post back.

Steve

"RobGMiller" <Ro********@gmail.coma écrit dans le message de news:
11**********************@h3g2000cwc.googlegroups.c om...
Using ASP.NET 2.0

Need to simply process incoming postback information without sending
back a reponse.

Client sends HTML from application other than a browser to a page on a
web site. Web Server ASP generates a response page and send it back
which opens the browser on the client.

How to avoid sending back the response page.
Thanks,
RobGMiller.........

Feb 28 '07 #5
On Feb 28, 9:20 am, "Steve B." <steve_bea...@com.msn.swapwrote:
If I've correclty understood your question, you will probably have to deal
with JavaScript to create a request to the server. This request will points
to a custom handler (ashx files are good for that), and since it will be run
from the javascript code, the page won't post back.

Steve

"RobGMiller" <RobGMil...@gmail.coma écrit dans le message de news:
1172678875.324887.288...@h3g2000cwc.googlegroups.c om...
Using ASP.NET 2.0
Need to simply process incoming postback information without sending
back a reponse.
Client sends HTML from application other than a browser to a page on a
web site. Web Server ASP generates a response page and send it back
which opens the browser on the client.
How to avoid sending back the response page.
Thanks,
RobGMiller.........- Hide quoted text -

- Show quoted text -
The postback is sent from an email message containing HTML.

<html><body><form method='GET' action = " http:\\website\page.aspx'"
& HTMLFormContent & " Record Name: <input name='RecordName' / <input
type='submit' value='Submit'</form></body></html>

When the submit button is clicked from the body of the email, the web
browser opens.

I believe the postback is sent to page.aspx from the client computer
and the browser opens on the client computer as a response to
receiving the dynamic page returned from the server because if
something different than the email html is added to page.aspx this new
html showes up in the browser.

Ideally page.aspx will contain some kind of instruction that will
prevent the server and or ASP.NET from sending it back to the client
and then the web browser will not open or the instruction can be sent
from the client.

Can a web server session be ended with a command from the client for
instance. This could be sent along with the PostBack perhaps.


Feb 28 '07 #6
hi,
if I understand your problem well, the e-mail submits a form to the site? I
think the browser does not open because it receives a response... it opens
because you are submitting something, just like if you click on a link in
Outlook. Even if the page at the other end were a pure html, it would do the
same. (as I understand it) So your server can't do anything about it. it's
the client app that must be changed.

I hope it helps

ThunderMusic

"RobGMiller" <Ro********@gmail.comwrote in message
news:11**********************@m58g2000cwm.googlegr oups.com...
On Feb 28, 9:20 am, "Steve B." <steve_bea...@com.msn.swapwrote:
If I've correclty understood your question, you will probably have to deal
with JavaScript to create a request to the server. This request will
points
to a custom handler (ashx files are good for that), and since it will be
run
from the javascript code, the page won't post back.

Steve

"RobGMiller" <RobGMil...@gmail.coma écrit dans le message de news:
1172678875.324887.288...@h3g2000cwc.googlegroups.c om...
Using ASP.NET 2.0
Need to simply process incoming postback information without sending
back a reponse.
Client sends HTML from application other than a browser to a page on a
web site. Web Server ASP generates a response page and send it back
which opens the browser on the client.
How to avoid sending back the response page.
Thanks,
RobGMiller.........- Hide quoted text -

- Show quoted text -
The postback is sent from an email message containing HTML.

<html><body><form method='GET' action = " http:\\website\page.aspx'"
& HTMLFormContent & " Record Name: <input name='RecordName' / <input
type='submit' value='Submit'</form></body></html>

When the submit button is clicked from the body of the email, the web
browser opens.

I believe the postback is sent to page.aspx from the client computer
and the browser opens on the client computer as a response to
receiving the dynamic page returned from the server because if
something different than the email html is added to page.aspx this new
html showes up in the browser.

Ideally page.aspx will contain some kind of instruction that will
prevent the server and or ASP.NET from sending it back to the client
and then the web browser will not open or the instruction can be sent
from the client.

Can a web server session be ended with a command from the client for
instance. This could be sent along with the PostBack perhaps.

Feb 28 '07 #7

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

Similar topics

4
by: Andrew Alger | last post by:
ok i have two forms. Customer.aspx and Parent_Searh.aspx. There is a button on Customer.aspx that when executed runs javascript code to open up parent_search as a popup. After the user searches...
5
by: Scott Lyon | last post by:
I am having a strange problem. The program is a bit complex, but I'll try to simplify what I can. I apologize if this is complicated, but I think this would still be simpler than posting a bunch of...
10
by: tasmisr | last post by:
This is an old problem,, but I never had it so bad like this before,, the events are refiring when clicking the Browser refresh button. In the Submit button in my webform, I capture the server side...
2
by: Prodip Saha | last post by:
I am sure there is an easy fix for this problem. I am reloading the same page at an interval using the meta refresh tag in aspx page. This page has one textbox and one button. The problem is -when...
0
by: Vladi | last post by:
Hello everybody, I have a asp.net 1.1 page which has the following controls: 4 Images whose src points to an image.aspx file which returns a different jpg from a DB 1 flash object on top of those...
1
by: batista | last post by:
Hello, I have a web page, which is being refresh after every 30 secs.Now, there is also a datagrid in it, which i bind in the pageload event. Now the problem is when the page is refresh after...
3
by: Guru | last post by:
How do I refresh GridView using CallBack? I am populating the grid at runtime using OLEDB.
0
by: RobGMiller | last post by:
Using ASP.NET 2.0 Need to simply process incoming postback information without sending back a reponse. Client sends HTML from application other than a browser to a page on a web site. Web...
4
by: Peter | last post by:
ASP.NET 3.5 I have a web page and this web page has a DataList, when user hovers the mouse over a picture in the datalist a popup appers, this popup is a User Control and it has a cancel button....
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
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.