473,769 Members | 6,583 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

difference between location.href & Autopostback in active desktop

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.h ref =
<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
Feb 28 '06 #1
4 2357
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 Bh*****@discuss ions.microsoft. com> wrote in
message news:57******** *************** ***********@mic rosoft.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.h ref =
<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

Mar 4 '06 #2
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.

"Christophe r Reed" wrote:
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 Bh*****@discuss ions.microsoft. com> wrote in
message news:57******** *************** ***********@mic rosoft.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.h ref =
<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


Mar 6 '06 #3
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" <Sa************ **@discussions. microsoft.com> wrote in
message news:F3******** *************** ***********@mic rosoft.com...
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.

"Christophe r Reed" wrote:
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 Bh*****@discuss ions.microsoft. com> wrote
in
message news:57******** *************** ***********@mic rosoft.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.h ref =
> <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
>
>


Mar 6 '06 #4
Hi Christopher,
I tried adding a textbox control with its "autopostba ck" 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

"Christophe r Reed" wrote:
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" <Sa************ **@discussions. microsoft.com> wrote in
message news:F3******** *************** ***********@mic rosoft.com...
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.

"Christophe r Reed" wrote:
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 Bh*****@discuss ions.microsoft. com> wrote
in
message news:57******** *************** ***********@mic rosoft.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.h ref =
> <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
>
>


Mar 7 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
8821
by: Mark Anderson | last post by:
Sorry if this is a rookie mistake... I've been through all the FAQs and the books I have but I can't see the mistake so I guess it's something simple <g> - I'm an occasional JS user. I've got some code (in an external JS file) attached to a number of links off a query result page. The code it checks if there are any ticked items on the page and adds them to a lightbox (cart) before going the next called result page. The idea is to stop...
9
2363
by: Kreso | last post by:
i'm passing the asp parameters using the url current page is files.asp and I'm using window.location.href=files.asp?action=deletefile to pass the action to the serverside My code never got executed (like the page was cached) unless i put document.write("") before the window.location directive. Can anyone explain?
3
50427
by: saiho.yuen | last post by:
Hi, Is anyone know what is the difference between Location.href and Window.location.href Thanks you very much:) Saiho
10
9408
by: berg | last post by:
I'm trying to use the onload event to load a series of urls. What I find is that the onload function is only called one time no matter how large the array. Here is the onload function. var next_win = 0; var win = window.open("", "", ""); function nextWin() { if (next_win < urls.length) { win.onload = nextWin;
1
2168
by: JF | last post by:
Hi, I need to change the location of the parent window and after that scroll a little bit (because of "position:fixed" css buttons, which obscure the title). I have window.opener.location.href = "newhreflabel"; window.opener.scrollBy(0, -25);
2
6415
by: Craig Keightley | last post by:
I have a very simple confirm link on a website using the following code: function confirmNewSupplier(){ if(confirm(' Are you sure that you can\'t select a supplier from the list? \n(Click OK to request a new supplier or Cancel to return to the Directory)')){ window.location = 'l1stage1.php'; } }
2
8574
by: JHB | last post by:
Hi, How can I do a location.replace when I use a form, like when I use a href? This works. <a href="Ny HTML-side20.htm"; method="post" id="frm" name="BrugerHovedSide" onsubmit="location.replace(this.href);" > <input class="ok" type="submit" value="Opfrisk data" id=submit1 name=submit1> </a>
1
4237
by: sianan | last post by:
I tried to use the following example, to add a checkbox column to a DataGrid in an ASP.NET application: http://www.codeproject.com/aspnet/datagridcheckbox.asp For some reason, I simply CAN'T get the example to work. I created the following two classes, provided with the example: *-*-**-*-*-*-*-*-*-*-*-*-**-*-*-*-*-CheckBoxColumn Class:-*-*-*-*-*-*-*-*-*-*-**-*-*-*-*-**-*-*-*
2
8779
by: Jeff | last post by:
I'm very new to javascript and need only a small amount in an asp.net application I'm working on. I apologize if I'm not using the correct terminology to describe the problem. I got the code below to work under most conditions to capture the client's screen resolution and then redirect to another page (but there likely are better ways to code this). This needs to work under 3 conditions; A) if the current top.location.href is similar to...
0
9424
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,...
0
10223
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10000
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
8879
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
7413
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
6675
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
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3968
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
2
3571
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.