Link to home
Start Free TrialLog in
Avatar of jglazer63
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
Avatar of hehdaddy
hehdaddy

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.
Avatar of jglazer63

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.
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.
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.
You mean in Visual Studio 2008?  I cannot find that choice under Options.  There is no "Text Editor"
ASKER CERTIFIED SOLUTION
Avatar of hehdaddy
hehdaddy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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?
Make sure that your controls are registered at the top of the skin file. Like you would on an ASPX page.
The only thing that makes it seem to work is adding <body></body> tags.  I think...
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. :(
No no, you got it.  I figured it out and accepted your answer :-)