difference between location.href & Autopostback in active desktop

G

Guest

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
 
G

Guest

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.
 
C

Christopher Reed

Have you tried any other postback actions such as clicking as button and see
what happens?
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top