Hi, I'm trying to work out a neat way of creating a deployment package for my mobile siite That will install it and make modifications to the machine config file. I've used a vs.net setup and deployment project which creates the basic package but I was wondering
if there is any user friendly way to add filters into machine.cofig as the people who will be installing my site are not developers. Why are the device filters in the machine.config file anyway? Surely they should be in their own file that can be distributed
with an application? thanks Iain
You can add device filters in the web.config - they need not be in machine.config, also you can even declare filters on the page. Let me know if you need a sample for that. Hope that helps Kashif
Hi, I probably didn't explain myself properly, I mean the user agent filters for device capabilites in the machine config file e.g. ... We've had to modify several of these for our application, mainly to add colour blackberry support and it means we have to
modify the machine.config file on the target deployment machine. This makes deployment a bit more awkward. thanks Iain
iain_scott
Member
110 Points
22 Posts
Project Delpoyment - Machine Config file
Aug 07, 2003 10:44 AM|LINK
kashif
Contributor
2748 Points
547 Posts
Microsoft
Re: Project Delpoyment - Machine Config file
Aug 08, 2003 02:10 AM|LINK
iain_scott
Member
110 Points
22 Posts
Re: Project Delpoyment - Machine Config file
Aug 08, 2003 01:49 PM|LINK
kashif
Contributor
2748 Points
547 Posts
Microsoft
Re: Project Delpoyment - Machine Config file
Aug 08, 2003 06:25 PM|LINK
<script runat=server> public bool SupportsTable(System.Web.Mobile.MobileCapabilities mc, String str) { if ((mc.Tables) && (mc.PreferredRenderingType == "html32")) { return true; } else return false; } </script> ... <Mobile:List id="list1" runat=server DataTextField = "foo" DataValueField = "bar" > //some table tags and temlates in here... //some templates in here...Hope that helps Kashifiain_scott
Member
110 Points
22 Posts
Re: Project Delpoyment - Machine Config file
Aug 11, 2003 07:44 AM|LINK
kashif
Contributor
2748 Points
547 Posts
Microsoft
Re: Project Delpoyment - Machine Config file
Aug 11, 2003 08:35 PM|LINK