.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Sharon Maxwell
Post New Web Links

mapping a subdomain e.g. subdomain1.mydomain.com

Posted By:      Posted Date: October 18, 2010    Points: 0   Category :ASP.Net
 

Hi there,

I am using asp.net 4 with server 2008 r2 and I am trying to get Routing working how I want.

Lets say I have a website which allows my customers to create there own page within the site. I could us something like

routes.MapPageRoute("Businesses""business/{businessName}""~/Business/BusinessDetail.aspx");

Which works ok if I want mydomain.com/business/mybusinessname. Is it possible to create mybusinssesname.mydomain.com instead?


I dont want to have to make changes everytime in IIS, is it possible to do this with routing?





View Complete Post


More Related Resource Links

Toolbox: Distributed Caching, Object-Object Mapping, Blogs and More

  

This column covers Web application performance with distributed caching, a utility for object-object mapping, and a look at interesting blogs.

Scott Mitchell

MSDN Magazine September 2009


Netting C++: Mapping Templates to Generics

  

In this installment, Stanley Lippman continues to port his ISO-C++ Text Query Language application to the Microsoft .NET Framework and C++/CLI.

Stanley Lippman

MSDN Magazine April 2007


Netting C++: Mapping Native C++ to the Common Type System

  

This month Stanley Lippman begins translating the Text Query Language Query class hierarchy from C++ to the .NET Common Type System.

Stanley B. Lippman

MSDN Magazine February 2007


https subdomain

  

 i have set up a site with various subdomains (samples, secure and customers)

one subdomain secure.[sitename].com is available only to logged in customers and should be accessed via https

using IIS Manager I have done the 'edit bindings' thing to set up a https binding

I have purchased a SSL Certificate which I have bound to the subdomain only

if i go to http://secure.[sitename].com the user is prompted to login (via a login.aspx page in the main site root directory) and once authenticated taken to the secure subdomains Default.aspx page

however if i go to https://secure.[sitename].com i get the internet explorer cannot display the page

is there anything i am missing?

am a complete newbie at this, so if i am missing something obvious i apologise, or if i need to give more info here please let me know

any help GREATLY appreciated


Writing GIS and Mapping Software for .NET

  
Introduction
In part one of this series, I described how to write an interpreter for raw GPS NMEA data. Part two described how to monitor and enforce GPS precision data to develop commercial-quality software. The articles included source code in C# and VB.NET which harnessed the power of GPS satellites to determine the current location, synchronize the computer clock to atomic time, and point to a satellite on a cloudy day. Yet, even with all of this code, most developers still need a way to display GPS information along with other geographic features. With the help of my colleague Phil Smith, a lead developer of our "GIS.NET" mapping component and the "Geodesy.NET" coordinate and projection library, this article will teach you how to generate your own maps.

The Rule of Threes
In order to understand the technology behind mapping, it's necessary to have a solid understanding of three coordinate systems: geographic, projected, and pixel. Each system serves an important role when displaying a map, and transformations from one system to another are essential. Developers typically start with a geographic coordinate (expressed as latitude and longitude). Then, it is transformed from Earth's eblate spheriod (roughly spherical) shape to a plane, resulting in a projected coordinate: a truly flat, two-dimensional coordinate. A projected coordinate is an easting/northing pair, desc

Custom mapping from formValues to ViewModel

  
Let's say i have simple ViewModel : class SimpleViewModel { public string prop1 {get;set;} public string prop2 {get;set;} } And I have following markup:<input type="text" id="prop1input" /><input type="text" id="prop2input" />I am wondering is it possible to make custom mapping from form values submitted via POST to model values, something like this:class SimpleViewModel { [HttpMappingAttr("prop1input")] public string prop1 {get;set;} [HttpMappingAttr("prop2input")] public string prop2 {get;set;} }

SharePoint read/recognize a Digital Signature in Word (XML Content Control Mapping)?

  
I am using Content Control Mapping to pull certain fields from a Word Document and include it as columns when a document is uploaded into a Document Library. We're using MOSS 2007 and Word 2007. It is required that the user digitally signs the document before uploading.  Is there a way to get the signature to appear as a column in a similar fashion?  I'm new to this mapping business, and Google hasn't been much help. I realize I could use the Collect Signatures workflow, but that seems cumbersome to 1) have the user submit it, 2) have an admin open each document and start the workflow and 3) have the user THEN sign the document.  That's more steps than simply manually opening and verifying digital signatures. I figure I'm missing something obvious here.  Any help or ideas would be appreciated.

Mapping SqlDataSource Parameters to Formview with Multiple DataKeys

  
Hi I have:a FormView that is linked to SqlDataSource1a Repeater control (inside the formview) that is linked to SqlDataSource2Thus representing a simple "1 to many" or "parent/child" relationship in the database!SqlDataSource1 is simple in that it just retrieves a straight set of records from a table and they are displayed back in the FormView (nothing special happening there). SqlDataSource2 has parameters that  filter the contents of the repeater based on the record that is shown in the Formview. This would normally be simple enough to set up by setting the parameter to the formview.selectedvalue property.HOWEVER - THE PROBLEM ARISES...The formview has multiple DataKeyNames because the table that the SqlDataSource1 links to has a compound key. So to filter the Repeater correctly SqlDataSource2 needs to map 3 parameters to 3 data key values in the formview.Any ideas how to do this?I've tried setting the SqlDataSource2 parameters to:<SelectParameters>   <asp:ControlParameter ControlID="FormView1" Name="Parameter1" PropertyName="DataKey(0)" />   <asp:ControlParameter ControlID="FormView1" Name="Parameter2" PropertyName="DataKey(1)" />   <asp:ControlParameter ControlID="FormView1" Name="Parameter3" PropertyName="DataK

Mapping SqlDataSource Parameters to Formview with multiple DataKeys

  
Hi I have:a FormView that is linked to SqlDataSource1a Repeater control (inside the formview) that is linked to SqlDataSource2Thus representing a simple "1 to many" or "parent/child" relationship in the database!SqlDataSource1 is simple in that it just retrieves a straight set of records from a table and they are displayed back in the FormView (nothing special happening there). SqlDataSource2 has parameters that  filter the contents of the repeater based on the record that is shown in the Formview. This would normally be simple enough to set up by setting the parameter to the formview.selectedvalue property.HOWEVER - THE PROBLEM ARISES...The formview has multiple DataKeyNames because the table that the SqlDataSource1 links to has a compound key. So to filter the Repeater correctly SqlDataSource2 needs to map 3 parameters to 3 data key values in the formview.Any ideas how to do this?I've tried setting the SqlDataSource2 parameters to:<SelectParameters>   <asp:ControlParameter ControlID="FormView1" Name="Parameter1" PropertyName="DataKey(0)" />   <asp:ControlParameter ControlID="FormView1" Name="Parameter2" PropertyName="DataKey(1)" />   <asp:ControlParameter ControlID="FormView1" Name="Parameter3" PropertyName="DataK

user mapping to a database and role membership to that database

  
When assigning a 'user mapped Login' to a database and role membership to that database, is it redundent to check/enable db_datareader, db_datawriter as well as db_owner or will check/enable db_owner become all that is necessary to provide role membership to the database?

The external column "CLIENT" (2639) has no mapping to the XML schema

  
Hi, I am having validation errors when moving between test and production servers.  I have a package which is reading and XML file and loading the data into staging tables.  The XML source is configured to use a variable for the file name (which is getting populated through a foreach loop.  The default value points to a file that was on the production server when the package was created).  The XSD is stored on a network share.  This all looks fine in test.  When I deploy it to production there are no validation errors, but when I run it, I get errors about the first few columns in the schema complaining: "The external column "<Column Name>" (2639) has no mapping to the XML schema" If I open the package while pointing to the production server, I can double click the XML Source and clear the errors.  I can then redeploy it and the package will run without issue in production.  However, if I open it back up and the package is again pointing to the test server, these metadata errors come up again.  I have rebuilt this component and the XSD a dozen times, thinking that the component was corrupted, but nothing seems to help.  I even rebuilt the entire dataflow.  Any ideas on to make this transition from test to production more smooth?  Is there a more reliable way that I can configure t

Retrieving users from mapping/pivot table

  
I have three tables.CustomProfileUserID (pk)DisplayNameCompanyIDTeamsTeamRecordID (Pk)TeamIDCompanyIDEmployeesInTeamsUserIDTeamIDI want to assign employees to teams via a gridview control with a templated checkbox.I have a dropdownlist control to select the TeamID.I am having problems with the select statement.The gridview needs to select employees that are not assigned to any teams as well as assigned to other teams. An employee can be assigned to many teams.What I have been trying is:cp.UserID, cp.DisplayName, et.TeamIntID, cp.CompanyID FROM            EmployeesInTeams AS et CROSS JOIN                          CustomProfile AS cp WHERE        (et.TeamIntID <> @TeamIntID) AND (NOT EXISTS                              (SELECT        TeamIntID, UserID                                FROM            EmployeesInTeams                                WHERE        (cp.UserID = UserID))) AND (cp.CompanyID = @companyid)Select cp.UserID, cp.DisplayName, et.TeamIntID, cp.C

Table mapping

  
 Hi friend, I want to know what is the use of table mappings.At what scenario we will use table mapping. Thanks  

I have a question about sharepoint url mapping with domain url.

  
Our server name is 'Com1'(100.100.xxx.xxx)and join the domain 'AD'. And dns name is 'sp.company.com'. I connect to sharepoint from users'pc with url '100.100.xxx.xxx' or ''sp.company.com'. It well done. But when I connect to Remote Desktop to '100.100.xxx.xxx'  and connect to sharepoint(machine self) with url 'sp.company.com', not connect. And if type IP directly, it well done. I want to modify TFS's sharepoint url to domain url, but I can't above situation. Anyone help me.  

Ajax in subdomain not working

  
I have a website in a hosting service. There is a virtual directory working as a subdomain like "http://subdomain.website.com" .  After working a lot figuring out paths, everything works fine except AJAX. There is no error thrown but the updatepanel, calendar and nothing else works. I does full postbacks. I have tried copying the complete AspNetAjax directory to the root and setting the scriptpath to "http://www.website.com/AspNetAjax/". The web.config contains the assemblies and a tag prefix.Any suggestions will be appreciated !Humberto

Alternate Access mapping - Intranet site

  
Hi All, I'm banging my head against a brick wall here trying to setup an alternate access mapping for an intranet site in SharePoint 2007. I have a default site setup which has the following public default URL: http://SERVERNAME:2586 I want users to access the site using the URL http://Intranet Now from reading about alternate access mappings I thought this should be as simple as adding an internal url of http://intranet under the intranet zone. With this set up I preceded to add the binding to the IIS website. I added the binding with All Assigned IP addresses, port 2586, and host as Intranet. The final thing I did to check this was to add an entry to the hosts file for the server IP address with the host name of intranet. This was followed by a flush of the DNS cache on the server. Whgen trying to access the site using the URL i now get the IIS7 welcome page, but not the SharePoint site I expected. Can anyone point me in the direction of what i've done wrong, Its got me stumped. Cheers, Grant

Mapping 2 datatables

  
Hi, i have 2 datatables where each of them has a different xsd, now i have to write records of table 1 to table 2 using a mapping of colums that i have in an xml file.Any idea of how to do the mapping?Thanks.
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend