Advertisement
Advertisement
| 05.09.2008 at 01:06AM PDT, ID: 23388654 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: |
protected void Application_Error(Object sender, EventArgs e)
{
try
{
Exception lastError = Server.GetLastError();
string body = "An error occured.";
if (lastError != null)
{
lastError = lastError.InnerException;
}
Server.ClearError();
string fileAndVar = ConfigurationManager.AppSettings["ERROR_PAGE"].ToString();
VarSession.ExceptionObj = lastError;
Response.Redirect(fileAndVar);
Response.End();
}
catch (Exception ex)
{
}
}
// -------------------- Error page .
public partial class ErrorInfo : PrincipalPage
{
private string s_;
protected void Page_Load(object sender, System.EventArgs e)
{
s_ = "<lng id=erreurIntroMessage/>"; // Request.FilePath.ToString();
Exception exception = VarSession.ExceptionObj;
s_ += "<br /><lng id=Error_Message/> : " + exception.Message;
s_ += "<br /><lng id=Error_InnerMessage/> : " + exception.InnerException;
s_ += "<br /><lng id=Error_FileConcerned/> :" + Request.FilePath.ToString();
s_ += "<br /><lng id=Error_StackTrace/> :" + exception.StackTrace;
s_ += "<br /><lng id=Error_Source/> :" + exception.Source;
LiteralControl li_ = new LiteralControl(s_);
lblError.Controls.Add(li_);
}
protected override void OnInit(EventArgs e)
{
PageInfo = "<lng id=ErrorInfo_Info/>";
PageTitle = "<lng id=ErrorInfo_Title/>";
btnGoEntry.Click += new EventHandler(btnGoEntry_Click);
base.OnInit(e);
}
private void btnGoEntry_Click(Object o, EventArgs e)
{
Response.Redirect("../" + VarSession.FirstPage);
}
#endregion
}
|
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 05.09.2008 at 07:53AM PDT, ID: 21533447 |
| 05.09.2008 at 08:04AM PDT, ID: 21533567 |
1: 2: 3: 4: 5: 6: |
<div style="margin-left:auto; margin-right:auto; background-color:#eeeeee;width:500px; height:200px;padding:20px;">
<asp:Label id="lblError" runat="server"></asp:Label>
<br />
<asp:Button id="btnGoEntry" runat="server"><lng id=backToEntry/></asp:Button>
</div>
|
| 05.09.2008 at 10:34AM PDT, ID: 21534975 |
| 05.12.2008 at 05:19AM PDT, ID: 21546183 |
| 05.12.2008 at 07:07AM PDT, ID: 21547082 |
| 05.13.2008 at 06:39AM PDT, ID: 21554906 |