reyou
  •  reyou
  • 59% (Neutral)
  • YAF Camper Topic Starter
2009-07-03T23:28:14Z
Hi, I want to change the codebehind in the forum, but what ever i do i does not changing.
Simply, to test it forum/default.aspx page i am doing

<script runat="server">
public void Page_Error(object sender,System.EventArgs e)
{
Response.Write("111" ) ;
Exception x = Server.GetLastError();
string exceptionInfo = "";
while ( x != null )
{
exceptionInfo += DateTime.Now.ToString( "g" );
exceptionInfo += " in " + x.Source + "\r\n";
exceptionInfo += x.Message + "\r\n" + x.StackTrace + "\r\n-----------------------------\r\n";
x = x.InnerException;
}
yaf.DB.eventlog_create( forum.PageUserID, this, exceptionInfo );
yaf.Utils.LogToMail(x);
}
</script>

and hitting f6 to compile and i am going to page but nothing happens.

any idea?
Sponsor
mddubs
2009-07-03T23:54:08Z
You added that line to a Page_Error method. I wouldn't expect it to be called unless a page error occurs.
UserPostedImage 
www.bunkerhollow.com  | www.careercomputing.com 
When I post fp:mddubs in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Mek ๐Ÿ™‚, who stole this off Ederon ๐Ÿ™‚ )
reyou
  •  reyou
  • 59% (Neutral)
  • YAF Camper Topic Starter
2009-07-04T00:02:04Z
oh my god, i am so careless, I see it as page_load :)

thx, so i can go through and modify whatever i want right?
mddubs
2009-07-04T00:11:57Z
Yes, you can download the source code, make changes and recompile anything you want.

EDIT: As long as you adhere to the standard GNU open-source license.
UserPostedImage 
www.bunkerhollow.com  | www.careercomputing.com 
When I post fp:mddubs in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Mek ๐Ÿ™‚, who stole this off Ederon ๐Ÿ™‚ )

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved