> Protected Sub NavigateTo(ByVal location As String, _ > Optional ByVal parms As NameValueCollection = Nothing) > > Dim link As New StringBuilder > > link.Append(Me.VirtualRoot) > link.Append(location) > > If Not parms Is Nothing Then > link.Append("?") > For i As Integer = 0 To parms.Count - 1 > link.Append(Server.UrlEncode(parms.Keys.Get(i)) & "=" & Server.UrlEncode(parms(i))) > link.Append("&") > Next > 'Remove the last "&" > link.Remove(link.Length - 1, 1) > End If > > Response.Redirect(link.ToString) > > End Sub >Hi Mike,
string strRedirect; strRedirect = "<script language='Javascript'>"; strRedirect += "parent.frames['mainFrame'].location.href='pagedetails.aspx?wid="; strRedirect += Server.UrlEncode(WID.ToString()) + "&nid=" + XmlConvert.EncodeName(newurl.Substring(newurl.LastIndexOf("/") + 1)) + "&url=" + newurl + "&pid=" + Server.UrlEncode(newpid) + "&title=" + Server.UrlEncode(newtitle) + "';"; strRedirect += "parent.frames['leftFrame'].location.href='editpages.aspx?wid="; strRedirect += Server.UrlEncode(WID.ToString()) + "&nid=" + XmlConvert.EncodeName(newurl.Substring(newurl.LastIndexOf("/") + 1)) + "&url=" + newurl + "&pid=" + Server.UrlEncode(newpid) + "';"; strRedirect += "alert('Page Added Successfully');</script>"; Response.Write(strRedirect); Response.Flush();Now, the problem is with the newTitle. How can I allow & and ' inside it?