Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to call a form namely 'default.aspx' from a project 'WebSitepayu'. I used the following code but doesnt respond. Throws out an error like 'the resource cant be found'. I have spelt evrything correctly.

Response.Redirect("WebSitepayu/Default.aspx");
Posted
Comments
Is the Project in the same directory? If yes, then it would work. Otherwise you have to give the relative url.
Thomas Nielsen - getCore 19-Jun-14 6:11am    
Do you want to submit to this form or do you want to simply redirect or do you want to read it into your application to do something with it?
S.Rajendran from Coimbatore 19-Jun-14 6:34am    
i want to submit to this form

1 solution

It's really too little details to understand what your goal is.

Perhaps you don't need the project's name in the path?

Try:
C#
Response.Redirect("Default.aspx");


Alternatively (or in addition) try to explain a little more ...


Cheers,
C
 
Share this answer
 
Comments
S.Rajendran from Coimbatore 19-Jun-14 23:53pm    
I am in project A and I want to call the form Default.aspx from project B in same directory.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900