this is probably a very beginner question, but i would need your help.
Actually we are developing some little web application, but every time we want to use the code the we already make for other projects (for example a registration system with login and thank you page), we go copy past and our developer says is very time consuming.
I would like to help him to be faster.
In wordpress for example, i just install a plugin and that's all.
Is there and trick or best practice in Asp.net to make this kind of things very fast?
The developer could take this code and make it a reusable code library by creating it as a project, then simply include the project in the new solution.
Are you ASP Web Forms? MVC? ASP Core? What backend DB are using? Do you using an ORM like Entity Framework?
daniel.demari
In wordpress for example, i just install a plugin and that's all.
Is there and trick or best practice in Asp.net to make this kind of things very fast?
Wordpress is an application not a development framework like .NET. But yes, ASP come with APIs and templates for handling authentication right out-of-the-box. We need to know what framework you're using before we can provide specific guidance.
Perhaps click on the learn link above and go through a few tutorials related to the application types you are building.
According to your description, I think maybe you want to reuses some same page and code, I think you could use usercontrol to realize it, here are some tutorials for your reference:
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.
I think you could put the control and logical code in the usercontrol, then create the common project to put control, then add reference when you want to use it.
I have provide some tutorials in the above reply, please check:
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.
None
0 Points
4 Posts
Coding Faster
Nov 01, 2017 03:22 PM|daniel.demari|LINK
Hello,
this is probably a very beginner question, but i would need your help.
Actually we are developing some little web application, but every time we want to use the code the we already make for other projects (for example a registration system with login and thank you page), we go copy past and our developer says is very time consuming.
I would like to help him to be faster.
In wordpress for example, i just install a plugin and that's all.
Is there and trick or best practice in Asp.net to make this kind of things very fast?
thank you
All-Star
35218 Points
9955 Posts
Moderator
Re: Coding Faster
Nov 01, 2017 04:46 PM|bbcompent1|LINK
The developer could take this code and make it a reusable code library by creating it as a project, then simply include the project in the new solution.
All-Star
52101 Points
23237 Posts
Re: Coding Faster
Nov 01, 2017 05:02 PM|mgebhard|LINK
Are you ASP Web Forms? MVC? ASP Core? What backend DB are using? Do you using an ORM like Entity Framework?
Wordpress is an application not a development framework like .NET. But yes, ASP come with APIs and templates for handling authentication right out-of-the-box. We need to know what framework you're using before we can provide specific guidance.
Perhaps click on the learn link above and go through a few tutorials related to the application types you are building.
https://www.asp.net/learn
Contributor
6730 Points
2715 Posts
Re: Coding Faster
Nov 02, 2017 09:56 AM|Eric Du|LINK
Hi Daniel.demari,
According to your description, I think maybe you want to reuses some same page and code, I think you could use usercontrol to realize it, here are some tutorials for your reference:
Creating and Using User Control Libraries:
http://webproject.scottgu.com/VisualBasic/UserControls/UserControls.aspx
Creating ASP.NET UserControl Libraries for use in Multiple Websites:
https://aleemkhan.wordpress.com/2009/02/24/creating-aspnet-usercontrol-libraries-for-use-in-multiple-websites/
Best Regards,
Eric Du
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.
None
0 Points
4 Posts
Re: Coding Faster
Nov 02, 2017 08:52 PM|daniel.demari|LINK
we are using web forms. Visual studio.
None
0 Points
4 Posts
Re: Coding Faster
Nov 02, 2017 08:52 PM|daniel.demari|LINK
thank you for your suggestion :)
None
0 Points
4 Posts
Re: Coding Faster
Nov 02, 2017 08:53 PM|daniel.demari|LINK
thank you, do u have any guide or any example code?
Contributor
6730 Points
2715 Posts
Re: Coding Faster
Nov 03, 2017 10:15 AM|Eric Du|LINK
Hi Daniel,
I think you could put the control and logical code in the usercontrol, then create the common project to put control, then add reference when you want to use it.
I have provide some tutorials in the above reply, please check:
Creating and Using User Control Libraries:
http://webproject.scottgu.com/VisualBasic/UserControls/UserControls.aspx
Creating ASP.NET UserControl Libraries for use in Multiple Websites:
https://aleemkhan.wordpress.com/2009/02/24/creating-aspnet-usercontrol-libraries-for-use-in-multiple-websites/
Best Regards,
Eric Du
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.