473,756 Members | 3,499 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3418
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 "IHttpHandl er" 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********@gma il.comwrote in message
news:11******** **************@ h3g2000cwc.goog legroups.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.WebC lient
if you want to access a web site from a Windows application...

Patrice
"RobGMiller " <Ro********@gma il.coma écrit dans le message de news:
11************* *********@h3g20 00...legro 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 #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********@gma il.coma écrit dans le message de news:
11************* *********@h3g20 00...legro 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 #5
On Feb 28, 9:20 am, "Steve B." <steve_bea...@c om.msn.swapwrot e:
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...@gma il.coma écrit dans le message de news:
1172678875.3248 87.288...@h3g20 00cwc.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..... ....- Hide quoted text -

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

<html><body><fo rm method='GET' action = " http:\\website\ page.aspx'"
& HTMLFormContent & " Record Name: <input name='RecordNam e' / <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********@gma il.comwrote in message
news:11******** **************@ m58g2000cwm.goo glegroups.com.. .
On Feb 28, 9:20 am, "Steve B." <steve_bea...@c om.msn.swapwrot e:
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...@gma il.coma écrit dans le message de news:
1172678875.3248 87.288...@h3g20 00cwc.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..... ....- Hide quoted text -

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

<html><body><fo rm method='GET' action = " http:\\website\ page.aspx'"
& HTMLFormContent & " Record Name: <input name='RecordNam e' / <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
3174
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 for the parent and finds the proper parent in the datagrid they then click on the accept button in the grid. Then I populate a session variable with the parent ID. I then go back to the main page and have it refresh using: ...
5
8278
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 source code. If you want me to post code, though, just say so. In a nutshell, I've got an ASP.NET application that has one main ASPX page. On that ASPX page, it has a user control (an ASCX) that displays the actual data and controls I need.
10
9248
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 click event and I update session information to track the visibilty of some panels in a wizard type navigation ("Next >>" and "<< Back" buttons).. but the refresh button makes another event firing and takes the whole thing to a Choes.. ...
2
2222
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 the page get posted back to the server the value of the textbox is gone. How do I preserve the value of the textbox that I entered in it? I don't want to use Cache/Session to keep track of the value. That's not an option. Thanks for your...
0
1382
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 which contains buttons with links embedded in them to another pages (each having the same layout, identical to the page I'm talking about). The transfer is realised with some url_get method in the flash. I don't know because I didn't make it and...
1
2344
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 30 secs the datagrid loses it's values. I mean it does not maintain it's viewstate. Why is it?
3
7211
by: Guru | last post by:
How do I refresh GridView using CallBack? I am populating the grid at runtime using OLEDB.
0
1401
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 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,
4
2805
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. After the user clicks on the cancel button I want the DataList to refresh its self. How can I do that - how can I tell the DataList or the parent web page to refresh it's self from the Popup / User Control?
0
9456
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9273
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9841
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9711
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8712
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7244
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6534
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5303
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3805
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.