Hi All,
I have an issue where if I use the MediaManager to link in a wmv file to the RadEditor it hangs IE6 on the following Reponse.Redirect.
On the Button_Click event I am calling a method to save to the database.
Which calls the method in the code behind.
This only seems to happen if I embed a video into the editor, if I use just text & images the save and redirect works without issue. I have also confirmed that it works in Firefox & IE7/8.
Any thoughts you have would be welcome.
Regards
Phil Murray
I have an issue where if I use the MediaManager to link in a wmv file to the RadEditor it hangs IE6 on the following Reponse.Redirect.
On the Button_Click event I am calling a method to save to the database.
<asp:Button runat="server" ID="SubmitButton" Text="Submit For Approval" CausesValidation="true" OnClick="SubmitButton_Click" OnClientClick="javascript:window.scrollTo(0,0);" />
Which calls the method in the code behind.
Protected Sub SubmitButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles SubmitButton.ClickThe data saves correctly but hangs on the Response.Redirect at the bottom of the method. I have checked the Page Load in the called page and the code runs through as expected. I did check to see if it was a problem with the target page by changing the redirect to www.google.com and experienced the same behaviour.
CreateNewArticle()
End Sub
Private Sub CreateNewArticle()
Dim newArtID As Int32 = 0
Dim body As String = String.Empty
Dim art As Article = Nothing
Dim artBody As ArticleDetail = Nothing
Try
'create the new article
art = Article.CreateArticle(-1,
articletitle.Text,
articlesummary.Text,
False,
Date.Now,
System.Web.HttpContext.Current.User.Identity.Name.Remove(0, InStr(System.Web.HttpContext.Current.User.Identity.Name, "\")).Replace(".", " ").ToUpper,
GetVisibiliy)
art.UpdatedDate = Date.Now
If articlebody.Content.Contains("<img") Then
art.ThumbnailImage = Mid(articlebody.Content, InStr(articlebody.Content, "src=") + 5, InStr(InStr(articlebody.Content, "src=") + 5, articlebody.Content, "/>") - (InStr(articlebody.Content, "src=") + 5)).Replace(Chr(34), "").TrimEnd
Else
art.ThumbnailImage = "~/Content/Images/JCBLogo.png"
End If
'create the article detail
artBody = ArticleDetail.CreateArticleDetail(-1, -1, articlebody.Content.Replace(" ", " "))
'save to the db
Using insertContext As New JCB_IntranetEntities
insertContext.AddToArticles(art)
insertContext.AddToArticleDetails(artBody)
insertContext.SaveChanges()
End Using
newArtID = art.ArticleID
Catch ex As Exception
ErrorLogging.AddNewErrorLogEvent(ex)
Throw
Finally
If articlebody.Content IsNot Nothing Then
articlebody.Content = Nothing
articlebody.Dispose()
End If
If artBody IsNot Nothing Then artBody = Nothing
If art IsNot Nothing Then art = Nothing
End Try
'If the save worked then redirect to the article
If newArtID > 0 Then
Response.Redirect(String.Format("~/Articles/Article.aspx?ArticleID={0}", newArtID))
End If
End Sub
This only seems to happen if I embed a video into the editor, if I use just text & images the save and redirect works without issue. I have also confirmed that it works in Firefox & IE7/8.
Any thoughts you have would be welcome.
Regards
Phil Murray