473,498 Members | 1,532 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
2 1598
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
4520
by: Joe | last post by:
I have an upload file operation in the web application. UploadForm.asp is the form, and UploadAction.asp is the form processing. //UploadForm.asp <FORM NAME="InputForm"...
18
2518
by: Lorem Ipsum | last post by:
interesting! I just found a page in which Explorer's View Source does nothing! How did they do that?
1
1594
by: dw | last post by:
Hello, all. I have a site that works fine when viewed in IE apart from the project in Visual Studio .NET 2003. However, when I right-click and do View in Browser, it tries to open it in the wrong...
5
1502
by: jfinnell | last post by:
Hi I'm working with the beta version of this product. I place the web in my master page, then link to my other pages. Set them up. When I select view in browser to check what I have done...
1
1416
by: Amil Hanish | last post by:
I use the VS 2005 option "View in browser" to often view my web site. If I have a link in there like: <img src="/graphics/myimage.jpg"> This doesn't work even though the image is really...
0
1297
by: Amil Hanish | last post by:
Earlier I had inquired as to why a normal <a hreftag didn't work when using the VS hosted site using a random local port. The more I think about it, this seems very wrong. Using the random port...
1
1855
by: RSH | last post by:
Hi, I have a user created control that has quite a bit of codebehind code. I have one link in the HTML page code that I need to insert the current URL in. I have tried several scenerios but...
1
4863
by: Nalaka | last post by:
I had ..... <%@ OutputCache Duration="5000" Location="Server" VaryByParam="none" %> Then I added "browser" <%@ OutputCache Duration="5000" Location="Server" VaryByParam="none"...
6
4351
by: jluo | last post by:
I found a problem with my application when using "innerhtml" to replace the content from the server after making an ajax call. The display is perfectly correct, but when I use "view source" on the...
0
7126
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7005
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...
0
7168
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,...
0
7210
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6891
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...
0
5465
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,...
1
4916
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...
0
3087
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1424
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 ...

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.