Last post Oct 26, 2017 09:43 AM by Cathy Zou
Oct 25, 2017 05:21 AM|Alamdreal1|LINK
I have a form that that holds a company information, and I have a domain name sharehere.com.
What I intend to do is that I want to create a subdomain for every company that registers. Example if I have a company with name
Microsoft, when it submit the form into my db I want it to be able to create a link which it can access with the domain example
microsoft.sharehere.com or sharehere.com/microsoft.
Please I need help on this. I will appreciate any help that comes from here.
Oct 26, 2017 09:43 AM|satya inumarthi|LINK
use string concatenation
have the "Microsoft." in variable V1, read the sub domain from form and assign it to the other variable V2.
var V3= string.Concat(V1,V2);
V3 will be having the required value.
Oct 26, 2017 09:43 AM|Cathy Zou|LINK
For such format, sharehere.com/microsoft.
Are you want something as route?
For detailed about asp.net route, you could refer to the following links: