Asked by:
Asp Page trigger through different Web Project

Question
-
User-937986814 posted
Hi
i want to know is it possible to open asp page from different kind of project ??
i have 2 projects in my Visual Studio
- Asp project
- Gizmox Visual Web Gui Project
now i want to open home page of Asp from Visual web gui project on runtime is it possible ???
i am reading a lot of blogs but having issues..
well what i have achieved yet that i add the referrence of Asp project to my Visual web gui project and write this code
HttpContext.Current.Response.Redirect("~/ Home.aspx");
but it gives me an error like " A potentially dangerous Request.Form value was detected from the client "
well i think its a cross site type of error .
plz anyone help me through this ...!!!
Tuesday, August 13, 2019 2:53 PM
All replies
-
User-719153870 posted
Hi Haashim,
A potentially dangerous Request.Form value was detected from the clientGenerally, this error message will point out where's wrong in your code at the end.
This error is usually caused by Script Attacks which you can refer to:Request-Validation.
In your case, please try add <pages validateRequest="false"></pages> in your web.config, which you can refer to here and here.
Best Regard,
Yang Shen
Wednesday, August 14, 2019 1:56 AM -
User-937986814 posted
well its not working ... just tell me do u know how to call another project from your current project .. both applications are in different language state ..... ????
Tuesday, August 27, 2019 12:00 PM -
User475983607 posted
well its not working ... just tell me do u know how to call another project from your current project .. both applications are in different language state ..... ????
Very simple. Just create a link to the URL you wish to invoke.
If you are trying to do something else, then you'll need to explain the problem you are trying to solve.
Tuesday, August 27, 2019 1:12 PM -
User-719153870 posted
Hi Haashim,
HttpContext.Current.Response.Redirect("~/ Home.aspx");As far as i know, above code will not cause an error like " A potentially dangerous Request.Form value was detected from the client".
Also, ~/ Home.aspx this url's pointing at a local page, maybe you should try a complete page url, like http(s)://../Home.aspx;
Best Regard,
Yang Shen
Tuesday, September 3, 2019 6:05 AM -
User-937986814 posted
hey i wanna ask you something. Do you know about Gizmox ??
i am working on my project using this plugin on Visual Studio its like a copy of Win forms but its gives you a platform to work on Web using Win Forms.
see my website you will get an idea soft.penschoolsystem.com
if you know about Gizmox you will able to understand my problem.
Thanks
Saturday, November 30, 2019 8:37 PM