1. "Error: Sys.WebForms.PageRequestManagerParserErrorException: The
message received from the server could not be parsed. Common
causes for this error are when the response is modified by calls to
Response.Write(), response filters, HttpModules, or server trace is
enabled."
2. Cannot load a user control with embedded RadGrid in the content page:
"Control 'ctl00_ctl01_RadGridRolesPanel' of type 'OurUpdatePanel' must be placed inside a form tag with runat=server."
The code is as below:
UserControl ctrl = this.LoadControl("~/User Controls/Roles.ascx") as UserControl;
this.Page.Controls.Add(ctrl);
3. If I move the javascript from the master page to the .js file:
function InitiateAsyncRequestComboBox(sender, eventArgs) {
var ajaxPanel = $find("<%= RadAjaxPanel1.ClientID %>");
ajaxPanel.ajaxRequest("SelectedApplication:" + eventArgs.get_item().get_text());
}
function InitiateAsyncRequestPanelBar(sender, eventArgs) {
var ajaxPanel = $find("<%= RadAjaxPanel1.ClientID %>");
ajaxPanel.ajaxRequest("ClickedItem:" + eventArgs.get_item().get_text());
}
the above ajaxPanel returns null. However, leaving it into the site.master file is not debugable.
Cheers
William
| using System.Text; |
| using System.IO; |
| public partial class wm_editor : System.Web.UI.Page |
| { |
| string qs = ""; |
| string filepath = ""; |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| qs = Request.QueryString["e"]; |
| if (qs == "cdtls") |
| { |
| string add = "contactus.htm"; |
| filepath = Server.MapPath(add); |
| RadEditor1.Content = ReadFile(filepath); |
| // edit contact details |
| } |
| } |
| public string ReadFile(string path) |
| { |
| if (System.IO.File.Exists(path)) |
| { |
| System.IO.StreamReader sr = new System.IO.StreamReader(path); |
| return sr.ReadToEnd(); |
| } |
| else |
| { |
| return string.Empty; |
| } |
| } |
| protected void btnupd_Click(object sender, EventArgs e) |
| { |
| System.IO.StreamWriter externalfile = new System.IO.StreamWriter(filepath, false, Encoding.UTF8); |
| externalfile.Write(RadEditor1.Content); |
| } |
| } |


.Cancel
{
background-position: -1687px center;
}
.FileSave,
.FileSaveAs,
.Save,
.SaveLocal
{
background-position: -1407px center;
}

