or
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
|
|
|
<?xml version="1.0"?><configuration> <system.web> <!-- Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only during development. --> <!-- Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only during development. --><browserCaps> <case> RequiresControlStateInSession=true </case> </browserCaps> <compilation debug="true" targetFramework="4.0"> <assemblies> <add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /> <add assembly="Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /> <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /> <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> <add assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> <add assembly="Telerik.ReportViewer.WebForms, Version=7.1.13.802, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" /> <add assembly="Telerik.Reporting, Version=7.1.13.802, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" /> <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> </assemblies> <buildProviders> <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> </buildProviders> </compilation> <!-- The <authentication> section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user. --> <!-- The <authentication> section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user. --> <authentication mode="Windows" /> <!-- The <customErrors> section enables configuration of what to do if/when an unhandled error occurs during the execution of a request. Specifically, it enables developers to configure html error pages to be displayed in place of a error stack trace. <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> <error statusCode="403" redirect="NoAccess.htm" /> <error statusCode="404" redirect="FileNotFound.htm" /> </customErrors> --> <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"> <!--<pages>--> <controls> <add tagPrefix="tlk" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI, Version=2013.2.717.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" /> <add tagPrefix="tlkRpt" assembly="Telerik.ReportViewer.WebForms, Version=7.1.13.802, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" namespace="Telerik.ReportViewer.WebForms" /> <!--<add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />--> <!--<add tagPrefix="tlkRpt" assembly="Telerik.ReportViewer.WebForms, Version=5.1.11.713, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" namespace="Telerik.ReportViewer.WebForms" />--> <!--<add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />--> </controls> </pages> <!-- The <customErrors> section enables configuration of what to do if/when an unhandled error occurs during the execution of a request. Specifically, it enables developers to configure html error pages to be displayed in place of a error stack trace. <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> <error statusCode="403" redirect="NoAccess.htm" /> <error statusCode="404" redirect="FileNotFound.htm" /> </customErrors> --> <httpHandlers> <add path="elmah.axd" verb="POST,GET,HEAD" type="Elmah.ErrorLogPageFactory, Elmah" /> <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" /> <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" /> <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" /> <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" /> <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" /> <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false" /> <add type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=7.1.13.802, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" path="Telerik.ReportViewer.axd" verb="*" validate="true" /> </httpHandlers> <httpModules> <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" /> <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" /> <add name="RadCompression" type="Telerik.Web.UI.RadCompression" /> </httpModules> </system.web> <!-- The system.webServer section is required for running ASP.NET AJAX under Internet Information Services 7.0. It is not necessary for previous version of IIS. --> <system.webServer> <validation validateIntegratedModeConfiguration="false" /> <modules runAllManagedModulesForAllRequests="true"> <remove name="RadUploadModule" /> <remove name="RadCompression" /> <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode" /> <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode" /> <!--<add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" /> <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />--> </modules> <handlers> <remove name="ChartImage_axd" /> <remove name="Telerik_Web_UI_SpellCheckHandler_axd" /> <remove name="Telerik_Web_UI_DialogHandler_aspx" /> <remove name="Telerik_RadUploadProgressHandler_ashx" /> <remove name="Telerik_Web_UI_WebResource_axd" /> <remove name="Telerik.ReportViewer.axd_*" /> <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" /> <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" /> <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode" /> <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode" /> <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode" /> <add name="Telerik.ReportViewer.axd_*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=7.1.13.802, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" path="Telerik.ReportViewer.axd" verb="*" preCondition="integratedMode" /> </handlers> </system.webServer> <elmah> <errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="~/App_Data" /> <security allowRemoteAccess="0" /> </elmah> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Telerik.OpenAccess.Web" publicKeyToken="7ce17eeaf1d59342" culture="neutral"/> <bindingRedirect oldVersion="2008.0.0.0-2013.2.702.1" newVersion="2013.2.702.1"/> </dependentAssembly> </assemblyBinding> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Telerik.OpenAccess.Runtime" publicKeyToken="7ce17eeaf1d59342" culture="neutral"/> <bindingRedirect oldVersion="2008.0.0.0-2013.2.702.1" newVersion="2013.2.702.1"/> </dependentAssembly> </assemblyBinding> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Telerik.OpenAccess.35.Extensions" publicKeyToken="7ce17eeaf1d59342" culture="neutral"/> <bindingRedirect oldVersion="2008.0.0.0-2013.2.702.1" newVersion="2013.2.702.1"/> </dependentAssembly> </assemblyBinding> </runtime></configuration>Protected Sub RadCalendar1_DayRender(ByVal sender As Object, ByVal e As Telerik.Web.UI.Calendar.DayRenderEventArgs) Handles RadCalendar1.DayRender Dim label As New Label() label.Text = e.Day.[Date].Day.ToString() e.Cell.Controls.Add(label) Dim dayOfWeek As String = e.Day.[Date].DayOfWeek.ToString() If dayOfWeek <> "Saturday" And dayOfWeek <> "Sunday" Then Dim txtBox As New TextBox() txtBox.Text = "xx" 'Will be read from database e.Cell.Controls.Add(txtBox) End IfEnd SubIn my login page, i use radtextbox as passord input box and radtoolbar button as [Login] button.
it works fine if user input password and then click [Login] button by mouse.
but it had problem that if user input password and then press [ENTER]. it cannot capture the event and then login.
the password will disappear and remain login page after press [ENTER].
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="IntranetPassword.aspx.vb" Inherits="Remuneration_IntranetPassword" %> <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> </head> <body > <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> </telerik:RadScriptManager> <TABLE BORDER=0 bgcolor="#FFFFFF" width="386" height="300"> <tr> <TD width="400" height="42"> <p align="justify"> <p align="justify"> <asp:Label ID="lbDescription" runat="server" Text="This page is STRICTLY CONFIDENTIAL. Please input your intranet password again to validate your credential."></asp:Label> </TD> </TR> <TR bgcolor="#99CCFF"> <TD height="1" width="400"> <FONT style="font-weight: bold; font-size: medium; color: #800000"></FONT>Please Enter Your Intranet Password </TD> </TR> <TR> <TD width="449" height="228" nowrap> <div id="Layer1" style="position:absolute; width:184; height:191; z-index:1; left: 51; top: 204; background-image: url('../Images/login.gif'); border: 1px none #000000; background-repeat: no-repeat;"> <table height="48" > <tr> <td height="42" width="167" nowrap colspan="2"> </td> </tr> <tr> <td width="167" height="1" nowrap colspan="2"> </td> </tr> <tr> <td width="167" height="9" colspan="2" nowrap> <div align="left"><b><br /><font size="2"> Intranet Password</font></b><font size="2"> </font> </div> </td> </tr> <tr> <td width="167" nowrap height="1" colspan="2"> <p align="right"> <telerik:RadTextBox ID="dfPassword" runat="server" Width="150px" TextMode="Password"> </telerik:RadTextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="* Required" ControlToValidate="dfPassword"></asp:RequiredFieldValidator> </td> </tr> <tr> <td width="62" height="31"></td> <td width="109" height="31" nowrap> <telerik:RadToolBar ID="RadToolBar1" runat="server" Width="56px" AutoPostBack="true" OnButtonClick="RadToolBar1_ButtonClick"> <Items> <telerik:RadToolBarButton Value="Save" Text="LOGIN" Width="40px" CommandName="DefaultButton"> </telerik:RadToolBarButton> </Items> </telerik:RadToolBar> <asp:PlaceHolder runat="server" ID="ph_javascript"> <script type="text/javascript"> function onEnter(e) { if (e.keyCode == 13) { window["<%=RadToolBar1.ClientID%>"].GetButtonByCommand("DefaultButton").EventClick(e); } } if (document.attachEvent) { document.attachEvent("onkeyup", onEnter); } else if (document.addEventListener) { document.addEventListener("keyup", onEnter, false); } </script> </asp:PlaceHolder> </td></tr> </table> </div> </TD> </TR> <tr> <td> </td> </tr> </TABLE> </form> </body> </html>Imports Telerik.Web.UI Partial Class Remuneration_IntranetPassword Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) End Sub Protected Sub RadToolBar1_ButtonClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadToolBarEventArgs) Handles RadToolBar1.ButtonClick If e.Item.Value = "Save" Then Dim dc As New dcHRISDataContext Dim rec = (From d In dc.UserDBs Where d.SID = GetProfile() Select d).FirstOrDefault If Not IsNothing(rec) Then If rec.Password = dfPassword.Text Then xxxxxxx End If End If lbDescription.Text = "The intranet password is incorrect." lbDescription.ForeColor = Drawing.Color.Red End If End Sub End Class if(this.Type=="Telerik.Web.UI.RadAjaxManager"){if(e.get_postBackElement()!=this.get_element()){var h=this._updatePanels.split(","); if(Array.contains(h,e.get_postBackElement().id))
<asp:Panel ID="divMain" runat="server" CssClass="maincenterDiv" ClientIDMode="Static">
<asp:RadioButtonList ID="rbType" runat="server" RepeatDirection="Horizontal" AutoPostBack="True" OnSelectedIndexChanged="rbTrip_SelectedIndexChanged" RepeatLayout="Flow"> <asp:ListItem Value="One"> One Way </asp:ListItem> <asp:ListItem Value="Two" Selected="True"> Two Way </asp:ListItem> </asp:RadioButtonList>
<telerik:RadComboBox ID="RadCBDestination" runat="server" ShowDropDownOnTextboxClick="false"> <Items> <telerik:RadComboBoxItem runat="server" Text="Australia (AUS)" Value="AUS" /> <telerik:RadComboBoxItem runat="server" Text="ASIA (ASIA)" Value="ASIA" /> </Items> </telerik:RadComboBox>
<telerik:RadDatePicker ID="radStartDate" runat="server" Culture="en-AU" HiddenInputTitleAttibute="Visually hidden input created for functionality purposes." WrapperTableSummary="Table holding date picker control for selection of dates." Skin="Metro"> <ClientEvents OnDateSelected="radStartDate_OnDateSelected" /> </telerik:RadDatePicker></asp:Panel><asp:Panel ID="pnlUpdate" CssClass="rowSection" runat="server"><telerik:RadDatePicker ID="radEndDate" runat="server"> </telerik:RadDatePicker> </asp:Panel><telerik:RadAjaxManager ID="RADAM" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="rbType"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="pnlUpdate" UpdatePanelRenderMode="Inline" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="btnSearch"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="divMain" LoadingPanelID="RADAJPanelBooking" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadAjaxLoadingPanel runat="server" Skin="MetroTouch" ID="RADAJPanelBooking" ClientIDMode="Static" Style="top: 0; left: 0; position: absolute; height: 100%; width: 100%" IsSticky="True"> </telerik:RadAjaxLoadingPanel><asp:Button ID="btnSearch" CssClass="roundbutton" runat="server" AlternateText="Search" OnClick="btnSearch_Click" />
<telerik:RadCodeBlock ID="radcode" runat="server"> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> <script type="text/javascript" id="telerikClientEvents"> function radStartDate_OnDateSelected(sender, args) { var RADEndDate = $find("<%=radEndDate.ClientID%>"); var date = sender.get_selectedDate(); var retDate = RADEndDate.get_selectedDate(); RADEndDate.set_selectedDate(date); RADEndDate.set_minDate(date);
} } function RequestStart(sender, eventArgs) { var eventTarget = eventArgs.get_eventTarget(); if (eventTarget.indexOf("btnSearch") != -1) { eventArgs.set_enableAjax(false); } } </script> </telerik:RadCodeBlock>telerik:RadAsyncUpload ID="RadUpload" runat="server" Width="260px" AllowedFileExtensions="pdf, docx, doc, xfdl" MultipleFileSelection="Automatic" TargetFolder="~/Uploads" TemporaryFolder="~/Uptemp"></telerik:RadAsyncUpload> 'Upload all the files to a permanent location For Each file As UploadedFile In attachments.UploadedFiles Dim TargetFolder As String = attachments.TargetFolder file.SaveAs(TargetFolder & "Name " & file.GetName.ToString) sql = "Insert PriorServiceUpload (intPriorServiceId, strUrl) VALUES (" & PriorId & ", '" & file.FileName & "')" insertUpdateDelete(sql) NextCould not find file 'C:\inetpub\wwwroot\Recruiting\Uptemp\fpgummmw.syg'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO.FileNotFoundException: Could not find file 'C:\inetpub\wwwroot\Recruiting\Uptemp\fpgummmw.syg'.Source Error: Line 54: For Each file As UploadedFile In attachments.UploadedFilesLine 55: Dim TargetFolder As String = attachments.TargetFolderLine 56: file.SaveAs(TargetFolder & "Name " & file.GetName.ToString)