[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Chuck P

9/26/2007 10:37:00 PM

I have a couple controls that inherits from webcontrol.

When I drop one of the controls on a new webpage
I get

<link href="mvwres:2-Util.Ctrl.MyEmbeddedFile.css,Util, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null" rel="stylesheet" type="text/css" />

in the head.

I am not sure why the other controls the same thing doesn't happen.

What causes the creation of the mvwres?
What would happen if this page used a master page (i.e. no head section)?

thanks,

4 Answers

wawang

9/27/2007 12:41:00 AM

0

Hi Chuck,

I have no past experience on this mvwres stuff, I also searched internally
and didn't find much information on this. Would you please tell me how to
reproduce this issue on my side? After I reproduced it, I will consult
within our internal discussion list to see if anyone can explain more about
it. Thanks.


Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Chuck P

9/27/2007 3:13:00 PM

0

I wish I could reproduce it. Some ctrls I get it some I don't.
There is some discussion on:
www.nikhilk.net/WebResourceAttributeAtDesignTime.aspx

Also it looks like the guys in the Ajax tool kits implements it.
http://www.codeplex.com/AtlasControlToolkit/WorkItem/View.aspx?WorkIt...

wawang

9/28/2007 2:16:00 AM

0

Hi Chuck,

Thanks for the information.

I will consult this in our internal discussion list and get back to you
later.

Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

wawang

10/3/2007 1:45:00 AM

0

Hi Chuck,

Sorry for delayed reply.

I'm including the reply from ASP.NET team about this mvwres custom protcol
here:

<quote>
ASP.NET doesn't use the custom protocol. Only Visual Studio and other
designer tools use it. There is an interface,
System.Web.UI.IResourceUrlGenerator that is used when a control wants to
create a URL to an embedded WebResource. At runtime the ASP.NET URL
generator creates links in the form
~/Site/WebResource.axd?d=<data>&t=<timestamp>. At design time the tool's
(Visual Studio) URL generator creates links in whatever format it wants. In
the specific case of VS it uses a custom protocol handler called "mvwres"
with a custom URL format to generate those URLs.

Whether at runtime or design time, the URLs are used to locate and load the
specified resource, whether it's a JS files, CSS file, HTML, GIF, etc.
Without the custom mvwres protocol the resources wouldn't be able to load
at design time.
</quote>

Hope this helps.


Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.