c# - Dynamically generate URL from Database in ASP.NET MVC? -
Hello to all developers,
I try to find some examples of generating URLs dynamically I am doing I have seen a software that generates personalized URLs from MySQL database. The only thing that is to make the URL to the software PHP and the one. I am using NET as a developer. I do not know about php. My question is that there is a way that I can get data from the data base and using that I can generate the URL in the Pretural field which is actually Is not in my web space.
eeg ----- database ----- firstname | Last name .... ========================= xyz ABC pqwert qweoiuy alfa beta URL Should be
http://something.com/somepersonal/xyz_abc.aspx http://something.com/social/ pqwert_qweoiuy .aspx http://something.com/somepersonal/alfa_beta.aspx This is something like a personal page for users Or the customer has a template to use me as the back page, but I do not know how to generate and dynamically generate URL.
< P> You are thinking a bit backward about this, generally, it will not do this by generating it directly from the database. You can usually do this by using the URL batch / some personal / through some personal page control, which will then consider everything after that, such as Xyz_abc will be using the logic to optimize its performance after it's an personal page , it from database or anywhere To clarify, your URL will look something like this:
http://something.com/personal/vish_soni http://something.com/personal / Colonel_gentleman http://something.com/personal/general_specific but all of these are being accessed on the personal page , which re-queries the arguments As the vish_soni , colonel_gentleman , and normal_sap , use the database or whatever it needs to do. Microsoft has an overview of this method and routing in general.
Comments
Post a Comment