TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
GPAptiva
NA
2
0
C#: Server.Execute() and Server.Transfer()
Sep 22 2003 11:28 PM
Hi. Can somebody help me out here?! I don't think there are not that much users over at CProgramming.com... IDE and Version: Visual C# .net 2002 .net Framework version: .net Freamework 1.1 Problem: Trying to instruct ASP.net to load another page from when a button has clicked. Control Used: Image Button Name of an image button: News ID for the button: GPNews Code for the News buton: private void GPNews_Click(object sender, System.Web.UI.ImageButtonEventArgs e) { if(!Page.IsPostBack) { Server.Execute("http://www.future-gpnet.com/news/news.aspx"); } } News page loaded successful?: No. Attempt 2 - code for the News Button: private void GPNews_Click(object sender, System.Web.UI.ImageButtonEventArgs e) { Server.Execute("http://www.future-gpnet.com/news/news.aspx"); } Page loaded succesfully: No. Attempt 3 - code for the News Button: private Page_Load(object sender, System.EventArgs e) { if(!Page.IsPostBack) { GPNews.Click += new System.Web.UI.ImageButtonEventHandle(this.GPNews_Click); } } private void GPNews_Click(object sender, System.Web.UI.ImageButtonEventArgs e) { Server.Execute("http://www.future-gpnet.com/news/news.aspx"); } Page Loaded successfully when the user clicked the News button?: No. Web Hosting Service: UpLinkEarth ASP.net version for UpLinkEarth: ASP.net 1.0 # of projects in Solution Explorer: 2 Name of projects in Solution Explorer: [url]www.future-gpnet.com[/url]; News Hi, there. I have problems when trying to execute (load) another page like the News Page when a user clicked a News button. I had tried 3 attempts for loading the page up but it wouldn't work. Well, I can tell that since UpLinkEarth uses .net Framework 1.0 (which contain ASP.net 1.0), then it sounds like it's not compatible with .net Framework 1.1... Since UpLinkEarth will be in maintenance mode in third week of October (Wednesday at 9:00 PM and ends on Thursday 4:00 AM), is there a workaround in how to make ASP.net execute a code when a user clicked or do I have to wait since during the UpLinkEarth's maintenance mode, UpLinkEarth are going to be installing .net Framework 1.1 (which contain ASP.net 1.1). Thanks for taking your time reading my thread. Also, take a look here, too: http://cboard.cprogramming.com/showthread.php?s=&threadid=45009 Nobody had answered my question. THanks, again!
Reply
Answers (
2
)
2 ASP.NET Questions
problems with smtpMail