Connecting Tech Pros Worldwide Forums | Help | Site Map

difference between location.href & Autopostback in active desktop

Sarita Sai Bhushan
Guest
 
Posts: n/a
#1: Feb 28 '06
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
Guest
 
Posts: n/a
#2: Mar 4 '06

re: difference between location.href & Autopostback in active desktop


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...[color=blue]
> 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
>
>[/color]


Sarita Sai Bhushan
Guest
 
Posts: n/a
#3: Mar 6 '06

re: difference between location.href & Autopostback in active desktop


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.

"Christopher Reed" wrote:
[color=blue]
> 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...[color=green]
> > 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
> >
> >[/color]
>
>
>[/color]
Christopher Reed
Guest
 
Posts: n/a
#4: Mar 6 '06

re: difference between location.href & Autopostback in active desktop


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...[color=blue]
> 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.
>
> "Christopher Reed" wrote:
>[color=green]
>> 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...[color=darkred]
>> > 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
>> >
>> >[/color]
>>
>>
>>[/color][/color]


Sarita Sai Bhushan
Guest
 
Posts: n/a
#5: Mar 7 '06

re: difference between location.href & Autopostback in active desktop


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

"Christopher Reed" wrote:
[color=blue]
> 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...[color=green]
> > 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.
> >
> > "Christopher Reed" wrote:
> >[color=darkred]
> >> 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...
> >> > 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
> >> >
> >> >
> >>
> >>
> >>[/color][/color]
>
>
>[/color]
Closed Thread