Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

open new windows from code behind

Status
Not open for further replies.

deejayAr

Technical User
Mar 20, 2008
126
US
Hi,
I need to open new window from code behind with out opening open a windows I just want the return value weather window open successfull or error
any suggesstion
thanks,
 
new windows/tabs is a client function, not the server. the server just responds to requests.

Jason Meckley
Programmer

faq855-7190
faq732-7259
 
I'm sorry If I couldn't explain my problm
I'm writing code that is doing some thing and build a url now I need to open new windows by passing this url and get the response if it is success of fail. I couldn't find any solution will any body help me out.

thanks,
 
asp.net receives requests and sends a response. there are no windows to open, no UI to render. webforms or another mvc view engine may render html (or another document), but asp.net just sends a response.

opening windows would be the responsiblity of the browser/desktop application.

Jason Meckley
Programmer

faq855-7190
faq732-7259
 
It mean I have to send javascript to client and open the windows and then how to get the return value back to server because I'm building rest of logic on the basis of it's return value
Please guid me on righ path. I appreciate the time you spare to look into my problem
thanks,
 
What return value are you talking about? window.open() does not return a value.
 
In simple I just want to have some kind of return that new window open successfull
 
why wouldn't a window open successfully? how are you opening a window.

Opening window and receiving a successful response from the server are 2 different things. if you are talking about opening a new tab/window from the browser then you will be using javascript. at which point forum216 is better suited to answer your question.

that said, it sounds like you do not fully understand how http works. I would research http and request/response works. then research how the webforms view engine and the asp.net pipeline operate in the stateless environment of http.

Jason Meckley
Programmer

faq855-7190
faq732-7259
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top