CodeVerge.Net Beta


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

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2008 Tags:
Item Type: NewsGroup Date Entered: 9/25/2007 9:05:54 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 5 Views: 51 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
6 Items, 1 Pages 1 |< << Go >> >|
dnv777
Asp.Net User
ASHX: #Region9/25/2007 9:05:54 PM

0/0

VS 2008 like as VS2005 ignore #Region Block in VB. I can't roll region.

#Region#End Region just ignored by VS.net

 Is it any trick to force vs.net to see #region blocks?

 P.S: VS 2008 beta2 sometimes too long recognize type of ashx file. It open ashx file like txt file. And sometimes it takes a couple of minutes while it colorize text.

Mikhail Arkhipo
Asp.Net User
Re: ASHX: #Region9/26/2007 4:28:13 AM

0/0

VS 2008 does not provide collapsible code or #region support inside aspx/ascx/ashx files. However, you can go with code separation and all functionality is supported in code behind files.


Thanks

------------------------------------------------------------

This posting is provided "AS IS" with no warranties, and confers no rights.
dnv777
Asp.Net User
Re: ASHX: #Region9/26/2007 11:08:06 AM

0/0

It isn't answer. I know it. Separation allowed only in aspx, but if i want use ASHX I know why I this do...

dnv777
Asp.Net User
Re: ASHX: #Region9/26/2007 11:20:29 AM

0/0

I can imagine that in aspx files it is difficult to  support #region.
But ashx contain code ONLY whithout HTML. WHY VS.NET developers couldn't do #Region in ashx? Is it so hard???

I write this topic hoping, that there is a trick, to change in registry type of file that VS think that it is VB file. Hmm, but first stirng <%@ WebHandler ..%> will give an err..

I'm offended on VS.Net developers Crying

 

Mikhail Arkhipo
Asp.Net User
Re: ASHX: #Region9/26/2007 9:37:33 PM

0/0

ASHX does contain markup - there us a register directive on top, so it is not handler by VB editor but rather by ASPX/ASCX/ASMX editor. Here is how code feature show up in ASP.NET files: ASPX editor identify code regions and delegate processing of code regions to VB or C# editor. However, since code editor does not actually own the entire file as it does with pure vb or cs files, not all features can be mapped without significant architectural work in the IDE. Since cost of the change was high and only one file type does not provide option for code separation, dev time was invested in other areas.

Having said that, here is a workaround. I believe ASHX works same way in the editor as ASMX. There is no default template for ASHX with code separation, but you can create one manually.

1. Create a handler, say, Handler.ashx.

2. Add App_Code folder to the site.

3. Add a new class to the App_Code, name file Handler.ashx.vb.

4. Cut all content except <% %> directive from ashx file and paste it to the new class file.

5. Add CodeBehind="~/App_Code/Handler.ashx.vb" to the ASHX file directive.

 


Thanks

------------------------------------------------------------

This posting is provided "AS IS" with no warranties, and confers no rights.
dnv777
Asp.Net User
Re: ASHX: #Region9/27/2007 6:31:18 PM

0/0

I think about this method, but it takes more time, and makes code navigation more tangled.

Will wait that in VS.NET 3000, MS realize that using Region is very useful for ashx. Big Smile

thank you for attention!

6 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning Ajax with ASP.NET Authors: Wallace B. McClure, Scott Cate, Paul Glavich, Craig Shoemaker, Pages: 403, Published: 2006
Professional Windows Live Programming Authors: Jon Arking, Pages: 430, Published: 2007
The College Blue Book. Authors: Thomson Gale (Firm, Pages: 0, Published: 2006

Web:
ASHX: #Region - ASP.NET Forums VS 2008 does not provide collapsible code or #region support inside aspx/ascx/ ashx files. However, you can go with code separation and all ...
Productfinder - Testpage CheckCacheInitialized=true XML; ProFind.ashx?refreshCache=true XML; ProFind.ashx ?clusterId=industries XML XML+Desc View; ProFind.ashx?region=100000 XML ...
Time Warner Cable Please either enter your ZIP Code here, or select your state and region below. By Region. Please select your state, then select your region. ...
marklio - Adding support for .ashx-based views in ASP.net MVC Jan 3, 2008 ... I thought it might be interesting to enable .ashx-based views for ... ControllerContext _ControllerContext; #region IViewFactory Members ...
Geeks don't wear tie: Managing ASHX files #region IHttpHandler Members public void ProcessRequest(HttpContext context) { context.Response.Write("Hello World from ASHX"); context.Response.End(); ...
DevHawk - Using ASHX Files At the Phoenix MSDN User Group Tuesday night, I mentioned ASHX files in ... it in (I moved my Add #Region macro page into the articles section so the ASHX ...
Koders Code Search: ReportLogHandler.ashx.cs - C# - GPL download, ReportLogHandler.ashx.cs Language: C# License: GPL .... Admin); } # endregion #region IHttpHandler Members /// /// Enables processing of HTTP Web ...
Uncork New York! - Search - Winery Lake Erie & Chautauqua Region · Niagara Escarpment Region · Finger Lakes Region · Central New York & Lake Ontario Region · Hudson River Valley & The ...
empty ashx but only for the class specific file. - Ajax.NET ... AllIn_aspx ...ashx is generated but it is empty. All others ashx files look complete. ... #region Web Form Designer generated code ...
.Sitecore » Blog Archive » Adding your own httpHandler to Sitecore 5.3 Sep 13, 2007 ... Today I’m going to show you how we can create a cool .ashx. ... 3 #region IHttpHandler Members. 4. 5 public bool IsReusable ...

Videos:
HONEY I'm Home SKI Shawnee Peak $291,889 REDUCED!! http://www.ask4tux.com/Listing/VirtualTour.ashx?listingid=1408640 Beautiful Yr Round home, Ski House or Large Vacation home seconds to Shawnee Peak, ...




Search This Site:










copy project in vs.net returns error.

preserve paragraphs when text is entered through a textbox - how?

attributes for design time documentation

some questions, please help

passing placeholder control to class in a dll

where to find good info on email program

datetime question

unable to read data from the transport connection: net_io_connectionclosed

enableviewstate no good for dropdowns?

microsoft commerce server 2007

call a webservice directly from a aspx page

convert string to double

custom control compilation question

insert javascript values into database

please help me! access to sql-server!?!

register dll with asp.net?

what is xslt file ? why we need to use?

transferring string from one page to another

"access is denied" using dotnetcharge

"overriding" methods from within the same class using partials

questions on global.asax, .cs, and assemblies

how obtain the name user account logged in internet explorer

image upload and resize

special cases shopping cart implementation method

need help in filtering words using regex

using collection<t> + asp.net 2.0+c#

best chart control

global variable

fill collection

debugging

  Privacy | Contact Us
All Times Are GMT