Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Start" button in VS.net 1

Status
Not open for further replies.

RebLazer

Programmer
Jun 7, 2002
438
US
How is the "Start" button (icon: right facing triangle) at the top of VS.net different than viewing the page in a browser (i.e. via the localhost URL)?

There obviously is some difference - as I've implemented changes which only take effect when I click on "Start", but not if I first try to view the changes in a browser which I manually fire up (i.e. outside of VS.net)

Once I've hit that "Start" button, then all implemented changes are also reflected in a browser, too.

Thanks,
Lazer
 
If you aren't seeing any changes you may need to build your project first then refresh the browser window to get the changes to show up.

The start button builds your project and then runs it in a browser window. Not only that but if you have chosen debug mode from the drop down beside it then it will also attach the debug process to the browser that opened. This way you can put breakpoints in your code to step through.
That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
Zarcom,

Thanks for replying. Not only did I refresh my browser windwow (several times) without seeing my changes reflected - I even closed the browser window and opened it again in a new window - to insure it was refreshed. But as I wrote, I only saw the changes reflected anywhere after I hit that Start button.

Any clues?


Thanks!
Lazer
 
Did you select Build applicationName from the build/debug menu before you did the browser refresh? That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
No, honestly.

What's the difference between saving and building it? Doesn't a ASPX page compile (?=build) upon the first viewing of it?

Thanks again,
Lazer
 
It does yes. However, you must first compile your pages into the IL(Intermediary Language) It's kinda half way between human readable code and machine code. When you run the aspx page the JIT (just in time) compiler compiles your code further making machine specific enhancements.


When you save you only save the aspx and aspx.vb files you don't actually compile to the IL.

Hope that explains it. That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
Is WebMatrix different? I was using it previously and never had to build anything. On the other hand, I wasn't using CodeBehind in WebMatrix, either - and now I am in VS.net...

Lazer
 
It's the code behind part that does this.
Code behind makes your design so much easier ::) That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top