I have a form that that holds a company information, and I have a domain name sharehere.com.
Question:
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.
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
81 Points
225 Posts
Creating a new directory on registration
Oct 25, 2017 05:21 AM|Alamdreal1|LINK
Hello geeks
I have a form that that holds a company information, and I have a domain name sharehere.com.
Question:
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.
Thanks
Regards
None
0 Points
1 Post
Re: Creating a new directory on registration
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.
Star
8670 Points
2882 Posts
Re: Creating a new directory on registration
Oct 26, 2017 09:43 AM|Cathy Zou|LINK
Hi Alamdreal1
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:
https://msdn.microsoft.com/en-us/library/dd329551.aspx
https://msdn.microsoft.com/en-us/library/cc668201.aspx?f=255&MSPPError=-2147217396
Best Regards
Cathy
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.