By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,617 Members | 1,605 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,617 IT Pros & Developers. It's quick & easy.

VS.NET "view in browser" initiated from asp.net codebehind page

P: n/a
I like the "view in browser" feature of vs.net: right click from an aspx
page, and preview a working version of the page.

I don't like how this can't be launched from the pages' codebehind. The
"view in browser" option does not appear on the context menu of VS.NET 2005.

Is there a workaround or hotkey that I can use to launch a preview from the
codebehind page?

-KF
Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
KF,

I don't think that there's a workaround for this. In fact, I'm pretty
sure this functionality is by design.

The code behind class and the ASPX are actually two seperate files and
represent the business and presentation tiers respectively. As such, it
makes sense that the ASPX (presentation) is the only file that can be
viewed in the IDE browser.

HTH

Thanks,
Denny Boynton

Nov 19 '05 #2

P: n/a
Hi KF,

As Denny has mentioned, the "View in browser" feature's behavior is
somewhat by design since displaying page is mainly specific to aspx page
rather than the code. Also, the VS.NET ide by default will hidden the code
behind file from us unless we explicitly use "show all files" to expand
them. In addition, sometimes we may use some simple structured page which
dosn't even use codebehind (put code in aspx inline). So the "view in
browser" is associated to aspx only.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Denny Boynton" <de***@boyntons.com>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Subject: Re: VS.NET "view in browser" initiated from asp.net codebehind
page
| Date: 17 Aug 2005 12:09:26 -0700
| Organization: http://groups.google.com
| Lines: 15
| Message-ID: <11**********************@f14g2000cwb.googlegroups .com>
| References: <#$**************@TK2MSFTNGP09.phx.gbl>
| NNTP-Posting-Host: 151.145.63.124
| Mime-Version: 1.0
| Content-Type: text/plain; charset="iso-8859-1"
| X-Trace: posting.google.com 1124305772 10840 127.0.0.1 (17 Aug 2005
19:09:32 GMT)
| X-Complaints-To: gr**********@google.com
| NNTP-Posting-Date: Wed, 17 Aug 2005 19:09:32 +0000 (UTC)
| In-Reply-To: <#$**************@TK2MSFTNGP09.phx.gbl>
| User-Agent: G2/0.2
| Complaints-To: gr**********@google.com
| Injection-Info: f14g2000cwb.googlegroups.com; posting-host=151.145.63.124;
| posting-account=jiOUgA0AAAAhK_GjcWKaZG9FdTa4ByBF
| Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli
ne.de!news.glorb.com!postnews.google.com!f14g2000c wb.googlegroups.com!not-fo
r-mail
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:118676
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| KF,
|
| I don't think that there's a workaround for this. In fact, I'm pretty
| sure this functionality is by design.
|
| The code behind class and the ASPX are actually two seperate files and
| represent the business and presentation tiers respectively. As such, it
| makes sense that the ASPX (presentation) is the only file that can be
| viewed in the IDE browser.
|
| HTH
|
| Thanks,
| Denny Boynton
|
|

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.