jglazer63
asked on
Code Help wth .SKIN files
When editing a .aspx file, and defining, say, an ASP:Label, it gives you all sorts of help and formatting to make it look good (source wise).
Why isn't this same help provided when creating a .SKIN file? Is there any way to make the IDE behave with a .SKIN file the same as with a .ASPX file, at least from an editing poin of view?
Visual Studio 2008
Why isn't this same help provided when creating a .SKIN file? Is there any way to make the IDE behave with a .SKIN file the same as with a .ASPX file, at least from an editing poin of view?
Visual Studio 2008
For some reason Microsoft doesn't have intellisense in skin files. I had to style my controls in a regular page and then put them into the skin file.
ASKER
But there should be some way (registry hack or something) to trick it into thinking a .SKIN file is a .ASPX file (or some equiv) at least for editing purposes.
I don't know of anything like that. Good luck in your search.
You might want to try this:
http://ledomoon.blogspot.com/2009/03/intellisense-problem-for-aspnet-skin.html
http://ledomoon.blogspot.com/2009/03/intellisense-problem-for-aspnet-skin.html
ASKER
Kinda what was looking for except it doesn't work in 2008
I tried it using "Web Form Editor" and it worked in VS 2008.
ASKER
How'd you do that?
Tools > Options > Text Editor > File Extension
Use skin as the extension and select Web Form Editor as the editor, then click Add. If your skin file is open make sure to close it and then reopen it.
Use skin as the extension and select Web Form Editor as the editor, then click Add. If your skin file is open make sure to close it and then reopen it.
ASKER
You mean in Visual Studio 2008? I cannot find that choice under Options. There is no "Text Editor"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
AHA, Getting close. But it still doesn't give me intellisense. I closed and re-opened the skin file. When I hit space next to ASP:LABEL nothing pops up.
Any other ideas?
Any other ideas?
Make sure that your controls are registered at the top of the skin file. Like you would on an ASPX page.
ASKER
The only thing that makes it seem to work is adding <body></body> tags. I think...
ASKER
Aha, if I use USER CONTROL EDITOR as the experience, it works! Thanks!
I am sorry that you are still having problems. I am out of ideas at the moment. :(
ASKER
No no, you got it. I figured it out and accepted your answer :-)