CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 9/1/2006 1:25:51 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 19 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
Moskie
Asp.Net User
Creating an Aspx file that produces something different than HTML9/1/2006 1:25:51 PM

0/0

I'm starting to create some ASPX files whose purpose is to produce something different than an HTML
document. This includes ASPX files that produce JavaScript or CSS.

Is there a way to get Visual Studio 2005 to recognize this, so that it will give me syntax highlighting and such? VS apparently always expects the output to be HTML and doesn't recognize that i'm trying to write
something different...
joeaudette
Asp.Net User
Re: Creating an Aspx file that produces something different than HTML9/1/2006 4:07:27 PM

0/0

Yes if you use the .aspx extension you can do this in the Page directive

<%@ Page Language="c#" ContentType="text/javascript" %>

<%@ Page Language="c#" ContentType="text/css" %>

once you have it working th e way you want you probably want to cache it like this 

<%@ OutputCache Duration="86400" VaryByParam="None" Location="ServerAndClient" %> 

 

Hope it helps,

Joe 


http://www.joeaudette.com
http://www.mojoportal.com
mojoPortal is an Open Source CMS/Portal featuring WebParts and supporting MSSQL, MySQL, PostgreSQL, SQLite, and Firebird Sql
samsp
Asp.Net User
Re: Creating an Aspx file that produces something different than HTML9/6/2006 5:31:03 PM

0/0

VS won't give you intellisense for contents other than html, server controls etc. We don't recognise that the file might me emitting script or something else instead. While using the aspx extension is good for text based content, if you need to send anything binary, then I'd recommend you write a handler (ashx).
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
ASP.NET 3.5 For Dummies Authors: Ken Cox, Pages: 404, Published: 2008
ASP.NET Website Programming: Problem - Design - Solution Authors: Marco Bellinaso, Kevin Hoffman, Pages: 576, Published: 2002

Web:
Firefox renders .aspx page differently than .htm -- Same HTML tested the HTML output of the aspx page by copying the source of the rendered page then pasted it into an htm file. The htm file produced ...
CodeProject: Creating an HTML Text Area Server Side Control. Free ... Copy your compiled DLL file of Server Side Control in the folder named Bin. ... Now let's move back to discuss something more which was used in out HTML ...
Pulling external data into aspx.vb file - SitePoint Forums 1/ Database query by PHP file produces set of results which are written to ascx file as vb code. PHP file then redirects to ASPX file ...
CoDe Magazine - Article: ASP.NET 2.0 and Visual Studio 2005: You ... All the project dialog boxes look different than the stocked projects in Visual Studio ... both ASPX and CS files or leave the ASPX file intact and let ASP. ...
Peachpit: Teamwork: How to Make Adobe AIR Play Nice With Flash ... If you create an application whose main file is called index.html, ... be a folder on the user's computer, different than the application's root directory. ...
Include file puzzle So are you creating new ASPX pages for all of your users? .... idea than a database, since it maintains the structure of my HTML so nicely. ...
POKE 53280,0: Pete Brown's Blog The dotcoms seem to fall into this more than other groups because of the experience of the employees, and the demands placed on them to produce something ...
Derek Harmon : The Making Of.. An Infragistics Reporting App While there was time enough to produce a video that can do a great deal of good ... As an optimization, the separate HTML files are collated into one ...
Extending ASPX Panel Control to produce Rounded Corners In this case, we will extend the ASPX Panel control to generate an HTML DIV with ..... in two different places, the CSS file and the Global Resources file). ...
HTTP Compression Setup on IIS & testing results (ASPX, HTML, PHP ... The html/aspx was reduced 16K > 4K The RAD-DatePicker AXD files reduced .... Actually it seems to be a little different than I reported when ...




Search This Site:










building a search facility using querystring

more querystring prooblems

taking your database driven aspx website online.

sharing variables across procedures

vb.net or c#

smtp mail ???? really need help....

validator

help to understand : global.asax file

force download of file

instant messenger development

newbie needing help

identifying focus event for textbox control

looking for an atricle on component lifecycle

membership

codebehind problem

how to refresh session in run time?

sql server expres !

how to encrypt/decrypt a password?

shorter way of doing button1.visible = depending upon role

problem with .cs files

asp.net 2.0 beta 2 ftpwebrequest issue

close the client browser

skins and asp

how to parser html data?

finding client time ( using server side code )

sending email to distribution lists

big time control error, need help please!!!

asp.net user account ???

displaying users who are online in webpage

which oledbtype can i use to store pm-type (access)?

  Privacy | Contact Us
All Times Are GMT