all groups > visual studio .net general > october 2005 >
You're in the

visual studio .net general

group:

Intellisense not working with Standard ASP objects


Intellisense not working with Standard ASP objects ryan.d.rembaum NO[at]SPAM kp.org
10/19/2005 3:36:31 PM
visual studio .net general:
I have just installed Visual Studio 2003. I have a new ASPX form.

I entered the following:

<%Res

Then hit CTRL_SPACE and nothing happens. What happened to
Intellisense? System.Web is in my project references list.

One of the big advantages to using Interdev for me has always been the
exposure of object methods and the way Intellisense saves typing!

What is going wrong?

Thanks,
Ryan
Re: Intellisense not working with Standard ASP objects Mikhail Arkhipov (Microsoft)
10/19/2005 8:35:19 PM
On 10/19/05 15:36, in article
1129761391.157838.102260@z14g2000cwz.googlegroups.com,
[quoted text, click to view]

This is ASP.NET page, not classic ASP. in ASP.NET pages intellisense is only
supported in code behind files. VS 2005 supports intellisense in script
blocks in the page itself.

Thanks
Mikhail Arkhipov (Microsoft)
-- This post is provided 'AS IS' with no warranties and confers no rights
Re: Intellisense not working with Standard ASP objects Donald E Reynolds
12/9/2005 9:34:02 AM
Mikhail,

You mentioned that standard asp is supported in aspx files in VS2005. I have
a ton of old sites that I still maintain that use classic ASP (not ASP.NET).
I have an elaborate convention using include files named incFILE.asp, etc. I
cannot see intellisense inside of <% %> blocks within regular .asp files. Is
there any way to fix this in VS 2005? A certain target schema maybe?

Thanks.

~ Don ~


--
/* ============
Donald E Reynolds
============== */


[quoted text, click to view]
Re: Intellisense not working with Standard ASP objects Donald E Reynolds
12/9/2005 9:40:02 AM
Mikhail,

Note that intellisense worked with this scenario in VS2003 with standard
..ASP files. I just upgraded to VS2005 and now I am stuck.

Thanks, Don

--
/* ============
Donald E Reynolds
============== */


[quoted text, click to view]
Re: Intellisense not working with Standard ASP objects Mikhail Arkhipov (Microsoft)
12/9/2005 8:47:49 PM
On 12/9/05 9:34, in article
0984EF2F-8561-4B23-9116-4B6704947B3B@microsoft.com, "Donald E Reynolds"
[quoted text, click to view]
ASP intellisense is still supported, but I believe, at the level of VID6,
i.e. hitting Ctrl+Space in

<% Res

won't work. First, the <% %> block must be closed and intellisense will come
after the dot. I.e it should work in

<%

Response.

%>

I believe only ASP.NET code intellisense is capable of bringing list of root
objects available in the given context. And even then it requires closed
server script block, otherwise it does not work even in VS 2005.

Thanks
Mikhail Arkhipov (Microsoft)
-- This post is provided 'AS IS' with no warranties and confers no rights
Re: Intellisense not working with Standard ASP objects Mikhail Arkhipov (Microsoft)
12/9/2005 8:54:08 PM
On 12/9/05 9:40, in article
5EB37593-27B6-4143-838F-4652C731EBEA@microsoft.com, "Donald E Reynolds"
[quoted text, click to view]

I just tried in

<html>
<body>
<% Response. %>
</body>
</html>

and after typing . the intellisense for Response did show up. I guess I
might be missing something in your scenario. Can you provide more detailed
repro steps?

Thanks
Mikhail Arkhipov (Microsoft)
-- This post is provided 'AS IS' with no warranties and confers no rights
Re: Intellisense not working with Standard ASP objects Donald E Reynolds
12/9/2005 11:23:02 PM
I have the target schema set to IE6.

It is almost as if it thinks the default server script language is not VB.
If I set the language tag to vbscript at the top of an include file (<%@ %>)
it fixes the formatting of the code, but I have to remember to delete that
line because they are mostly include files and the <%@ %> line can only
appear once at the beginning of the main file.

Also even after setting the language commenting a block of code inside <% %>
will add the html block comments around the code (<!-- -->) instead of adding
the vb comment apostrophe before each line.

Again none of this happened in VS2003.

/* ============
Donald E Reynolds
============== */


[quoted text, click to view]
Re: Intellisense not working with Standard ASP objects Mikhail Arkhipov (Microsoft)
12/13/2005 8:22:56 PM
On 12/9/05 23:23, in article
E84C915C-F63E-4176-AB5A-EB0ED2D53823@microsoft.com, "Donald E Reynolds"
[quoted text, click to view]
That is true, default language is jscript, which is a bug. I filed a bug on
the issue so hopefully it will get fixed in a service pack.

Thanks
Mikhail Arkhipov (Microsoft)
-- This post is provided 'AS IS' with no warranties and confers no rights
AddThis Social Bookmark Button