Showing posts with label stupid. Show all posts
Showing posts with label stupid. Show all posts

Thursday, March 29, 2012

Sepcify browser to launch with on VS 2008

Hi

I know I'm being stupid but how can I specify what browser gets launched
when I start debugging in VS2008. At the moment Firefox gets launched even
though IE7 is my default browser. This means that my javascript debugging
isnt working although I can debug in firebug I want to do it all from the
IDE.

Many thanks

ErikWith default browser do you mean that when right-clicking an aspx file in
VS2008 and picking Browse With...you have set IE as default browser there?
That controls which browser is opened when you press F5

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
"Erik Nodland" <erik@.gotaabejoking.comwrote in message
news:572DF19C-DD8F-460C-A6EB-51CCEEEC5DC3@.microsoft.com...

Quote:

Originally Posted by

Hi
>
I know I'm being stupid but how can I specify what browser gets launched
when I start debugging in VS2008. At the moment Firefox gets launched even
though IE7 is my default browser. This means that my javascript debugging
isnt working although I can debug in firebug I want to do it all from the
IDE.
>
Many thanks
>
Erik
>
>

Thursday, March 22, 2012

Serious and stupid problem..

Hi.

I'm using ASP.NET 1 .1 with C#..

My problem is very weird..I have a listbox and a button ,both are WebControls..

When I clicked on an item in Listbox code fires ListBox_SelectedItemChanged event and navigates to a new page. Until this part it works fine.

When I goto back by browsers BACK button anc click the Button ListBox_SelectedItemChanged fires again.Strange isn' t it??

Has anyone had this problem before?

I have checked the event handlar declarations and they are correct.

tguclu,

It is not strange behaviour. If you use BACK button , the page view comes from IE history. When you do a postback this page ( Buton click..etc..) ,SelectedItemChangedevent will fire because there is a change in index after intial load.

To avoid the problem, you can try this..

In page_Load..

if (!IsPostBack)

{

//***** Reset the Listbox selected index *********

MyListBox.SelectedIndex= 0;

}