Groups | Blog | Home
all groups > asp.net > february 2006 >

asp.net : difference between location.href & Autopostback in active desktop


Sarita Sai Bhushan
2/27/2006 11:20:27 PM
Hi,

While I was developing a active desktop web page in ASP.Net using server
controls I faced a problem with the autopostback property of server control.
The sever control I used in my aspx page is a dropdown box. After deploying
the page as a active desktop page whenever the selected index of the dropdown
box changes an autopopstback takes place and a new browser window opens. But
when the "autopost back" was replaced by the javascript code "location.href =
<url of the same page>" this problem was resolved.

Can anyone help me in fininding out the reason for this behaviour.

Thanks & Regards,

Sarita Sai

India

Christopher Reed
3/4/2006 7:42:34 AM
See what happens when the page is not an active desktop page.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"Sarita Sai Bhushan" <Sarita Sai Bhushan@discussions.microsoft.com> wrote in
message news:5762EA67-6972-40B1-9C58-EAD5A5E7131D@microsoft.com...
[quoted text, click to view]

Sarita Sai Bhushan
3/5/2006 11:16:29 PM
Hi,
I had tested it that way previously itself. While the page isn't a active
desktop page on autopostback it does not open up a new browser window. The
page has its normal behaviour. Only when it is made a active desktop at each
postback it opens up a new browser window.

[quoted text, click to view]
Christopher Reed
3/6/2006 7:27:08 AM
Have you tried any other postback actions such as clicking as button and see
what happens?
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"Sarita Sai Bhushan" <SaritaSaiBhushan@discussions.microsoft.com> wrote in
message news:F31AD8A5-0C55-4AC4-8FC7-2ADB0DBAE878@microsoft.com...
[quoted text, click to view]

Sarita Sai Bhushan
3/6/2006 10:22:27 PM
Hi Christopher,
I tried adding a textbox control with its "autopostback" property as true.
It has the same behaviour. whenever there is an autopostback while the page
is an active desktop page a new browser window opens up. I treid adding a
server control button. On click of it a new browser window openend up.
Thanks & Regrads,
Sarita Sai

[quoted text, click to view]
AddThis Social Bookmark Button