Displaying a Web page from a web service

P

prayag.narula

Hi,

I am a total newbie and this is my very first web service. I want to
display a web page using my web service. Any idea how i can do this. I
tried the following code:

[WebMethod]
public void Authenticate(string cardId){
System.Web.UI.Page welcomePage = new System.Web.UI.Page();
welcomePage.LoadControl("WelcomeScreen.aspx.cs");
}

But its giving me server error 500. What can i do??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top