put/use asp and aspx in one web application

Joined
Oct 15, 2010
Messages
1
Reaction score
0
I have an exsiting C# class .cs) and want get a return string from it. my code is asp. So from one asp page, user clicks on a link to direct to an aspx file which will call this C# class and its method to get a string (this is what I am going to keep and use in asp file). Then I save the returned string to session variable, redirect back to original asp page and read that session variable.

so it could be like...

x.asp --> y.aspx (call method in cs, get return string and save it to session --> redirect back to (server.transfer) x.asp -->x.asp read session variable and dispaly it)

is this approach featheable? how to do it? can you provide me some sample code?

thanks in advance
 

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

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top