Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Wed, 26 Sep 2007 15:37:02 -0700,    group: microsoft.public.dotnet.framework.aspnet.buildingcontrols        back       


mvwres in custom control   
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,
date: Wed, 26 Sep 2007 15:37:02 -0700   author:   Chuck P am

RE: mvwres in custom control   
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.
date: Thu, 27 Sep 2007 00:40:32 GMT   author:   (Walter Wang [MSFT])

RE: mvwres in custom control   
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?WorkItemId=10949
date: Thu, 27 Sep 2007 08:13:00 -0700   author:   Chuck P am

RE: mvwres in custom control   
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.
date: Fri, 28 Sep 2007 02:15:52 GMT   author:   (Walter Wang [MSFT])

RE: mvwres in custom control   
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.
date: Wed, 03 Oct 2007 01:44:38 GMT   author:   (Walter Wang [MSFT])

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us