or
public static void ShowErrorDialog(string msg, Constants.ErrorCode category, string location, Control parent)<br> {<br> RadWindow rw = new RadWindow();<br> rw.ID = "rwErrorHandling";<br> rw.VisibleOnPageLoad = true;<br> rw.CssClass = "errorDialog2";<br> rw.Behaviors = WindowBehaviors.Move;<br> rw.EnableShadow = true;<br> rw.VisibleStatusbar = false;<br> rw.VisibleTitlebar = true;<br> rw.Visible = true;<br> //rw.AutoSize = true;<br> rw.Width = 300;<br> rw.Height = 200;<br> rw.Modal = true;<br> <br> // Much more code here to create the contents of the dialog box<br> <br> parent.Page.Controls[0].FindControl("form1").Controls.Add(rw);<br> } Website.Common.ShowErrorDialog("Test message", Constants.ErrorCode.UnexpectedRecordCount, "buttonTest", Page);GridBoundColumn b = new GridBoundColumn();e.DetailTableView.Columns.Add(b);b.HeaderText = "test"; <telerik:RadUpload MaxFileSize="512000" OverwriteExistingFiles="true" ControlObjectsVisibility="None"
runat="server" ID="RadUpload1" OnValidatingFile="uploadMedia_ValidatingFile"
OnClientFileSelected="uploadMedia_FileSelected" Width="500px" />
But this is rendered as:<span class="ruFileWrap ruStyled" style="width: 80px;" jQuery171041561896132524767="11">
<input class="ruFileInput" id="ctl00_MainContent_Edit1_RadUpload1file0" submitName="ctl00_MainContent_Edit1_RadUpload1file0" type="file" size="23" unselectable="on" _events="[object Object]"/>
<label style="display: none;" for="ctl00_MainContent_Edit1_RadUpload1file0">
<input class="ruFakeInput" id="ctl00_MainContent_Edit1_RadUpload1TextBox0" type="text" size="22"/>
<label style="display: none;" for="ctl00_MainContent_Edit1_RadUpload1TextBox0">
<input class="ruButton ruBrowse" type="button" value="Select"/>
<subelement id="717" type="complementary"><tag type="open" text="complementary" elem-tag="subelement">|</tag><p><tag type="open" text="p" elem-tag="p">|</tag> An increasing amount of information on complementary and alternative medicine is becoming available. The scope of the BNF is restricted to the discussion of conventional medicines but reference is made to complementary treatments if they affect conventional therapy (e.g. interactions with St John's wort—see Appendix 1). Further information on herbal medicines is available at complementary-and-alternative-medicine|p| An increasing amount of information on complementary and alternative medicine is becoming available. The scope of the BNF is restricted to the discussion of conventional medicines but reference is made to complementary treatments if they affect conventional therapy (e.g. interactions with St John's wort—see Appendix 1). Further information on herbal medicines is available at XRef : http://www.mhra.gov.uk| www.mhra.gov.uk |Xref : http://www.mhra.gov.uk . |p|complementary-and-alternative-medicine
RadToolTipManager response error:
Exception=Sys.WebForms.PageREquestManagerServerErrorExecution; An Unknown error occurred while processing the request on the server. the status code returned from the server was: 500
it is working fine with ie9 (9.0.2)
can please any one help me to resolve this issue.
Thank you in advance
Jai
Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest '''The following 2 lines do not seem to make a difference, but were added when trying to test context.Response.Clear context.Response.BufferOutput = True 'Get the filename Dim fileName As String = context.Request.QueryString("i") 'Get the file type Dim fileType As String = context.Request.QueryString("t") 'Get the project name Dim projectName As String = Managers.SessionManager.ProjectName(context.Session) 'Get the userId Dim userId As Integer = Managers.SessionManager.UserId(context.Session) 'Make sure the project and user name are valid If IsProjectAndUserValid(projectName, userId) = True Then Dim securePath As String = Utilities.IO.GetSecureDirectory(Managers.ConfigManager.SecureOutput, projectName, userId) 'Create the full physical path to the file Dim fullPath As String = IO.Path.Combine(securePath, fileName) 'See if the file exist If IO.File.Exists(fullPath) Then 'Open a fileinfo object for the file Dim currentFileInfo As New IO.FileInfo(fullPath) Select Case fileType.ToLower Case "zip" context.Response.AddHeader("Content-Disposition", "attachment;filename=MyZip.zip") context.Response.ContentType = "application/zip" Case "export" 'Get the fileextension Dim fileExtension As String = IO.Path.GetExtension(fullPath) If fileExtension = ".html" OrElse fileExtension = ".htm" Then context.Response.AddHeader("Content-Disposition", "attachment;filename=Export.htm") context.Response.ContentType = "text/html" ElseIf fileExtension = ".txt" Then context.Response.AddHeader("Content-Disposition", "attachment;filename=Export.txt") context.Response.ContentType = "text/plain" ElseIf fileExtension = ".xls" Then context.Response.AddHeader("Content-Disposition", "attachment;filename=Export.xls") context.Response.ContentType = "application/vnd.ms-excel" ElseIf fileExtension = ".xlsx" Then context.Response.AddHeader("Content-Disposition", "attachment;filename=Export.xlsx") context.Response.ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" End If Case "print" context.Response.ContentType = "text/html" Case "image" context.Response.AddHeader("Content-Disposition", "inline;filename=Print.jpg") context.Response.ContentType = "image/jpeg" End Select '''The following line has had inconsistant results in some browsers 'context.Response.CacheControl = "no-cache" '''Is the following line is another (unconfirmed) problem for RadCompression? context.Response.AddHeader("Content-Length", currentFileInfo.Length.ToString) context.Response.StatusCode = 200 ''''The following line breaks RadCompression in IIS7 'context.Flush() context.Response.WriteFile(fullPath) context.Response.Flush() context.Response.End() Else context.Response.StatusCode = 200 context.Response.Write("No data located for this request.") context.Response.End() End If End If End Sub