1
I have two Webforms projects one with authentication and one without. I need to call a project form without authentication in from the project with authentication. How do I?
1
I have two Webforms projects one with authentication and one without. I need to call a project form without authentication in from the project with authentication. How do I?
0
The best way to do this is Response.Writefile();
Response.Write("Please Login: <br>");
Response.WriteFile("login.txt");
Just as a file can be a URL.
See more in https://msdn.microsoft.com/pt-br/library/dyfzssz9(v=vs.110). aspx
0
What you have to do is add a reference to your other project, in this case the project without authentication, within the project solution with authentication. You can check instructions step by step in this article by Microsoft or in this website article Code Line, that also has an example of how to work with several projects in the same solution and how to communicate between them (in the example is used a Windows Forms project and a Web Application project).
It is worth remembering that, according to the website of Microsoft, with the Reference Manager:
You can add a reference to the following types of components and services:
Class libraries or assemblies . NET
UWP apps
components with
Other assemblies or project class libraries in the same solution
Shared projects
XML Web Services
Browser other questions tagged c# webforms
You are not signed in. Login or sign up in order to post.