Quick quesiton. Is it considered a good practice or at least not a bad practice to remove all code except the page declaration from an aspx page that will be called by Server.Execute? The reason why I would do this is to elminate the garbage htm tags that get passed back into my requesting page.
Thanks,
Fatthippo
A little more info for you. I'm requesting the aspx file to get to its methods in aspx.cs. Sooooo that's why i'm removing everything from the aspx page accept the page declaration. That way the server.execute doesn't return anything but the methods output from the codebehind file.
Back to my question - Is this a hack? Is there a better solution?
Hello,
That's a good idea. You can also use Response.Rederect() or cross-page to another page which you want to show. They seems similar with each other.
0 comments:
Post a Comment