Priority
Show-stopper
Type
Bug 
State
Can't Reproduce 
Assignee
Sergey Coox 
Subsystem
No subsystem 
Affected versions
Fixed in
Fixed in build
Next build 
Build
237
Checked in Build
248
  • Submitted by   James Hebben
    3 years ago (06 Aug 2006 15:57)
  • Updated by James Hebben
    3 years ago (09 Sep 2006 13:33)
  • Jira: RSRP-23708
    (history, comments)

RSRP-23708

RS intellisense may fails in content page when MasterType is set

Seems if you use the MasterType directive in a content page to get a strongly typed Master property, R# intellisense will only work if the master page is called MasterPage.master.

+Steps to reproduce+

Create an ASP.NET project
Add a master page, and call it MasterPage2.master
Add a content page (accept default name)
in the Default.aspx.cs code (E.G. Page_Load method) type
??Master.?? and you get intellisense.

Go to the Default.aspx page and add, as the second line:
  <%@ MasterType VirtualPath="~/MasterPage2.master" %>


Go back to the Default.aspx.cs code, delete the Master. entry and retype ??Master.??

  • After typing the . there is no intellisense.*

(I also found that if you go through the same steps, but call the master page MyMasterPage, then R# intellisense picks up the strongly typed Master property as the base Master type. You get intellisense, but for the wrong type.)

Example source files attached.

Issue was closed
Comments (0)
 
History (0)
 
Links
 
Issue has no comments