Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
55
Problems with webasyncrefreshpanel
posted

Hi

I am working with webparts and ajax(updatepanel). every thing is nice with update panel but i am getting two errors.

1) object expected error

2)while exporting ultrwebgrid to excel it is giving error

above two error are generating when i am using updatepanel.if there is no updatepanel no issues at all, to avoid these error i am using

ultra webasyncrefreshpanel,when i am using this webasyncrefreshpanel i am not getting any error but the excel export dailog box is not displaying. and web part drag and drop functionality is not working.

Actually objected expected error is displying when i am clicking very first on web part custom verb.   

Drag and drop functionality is not working after page getting refresh.If i manually press F5 or if i put the webpartmanager is catalog dispaly mode then the drag &drop of webpart is working fine,if any post back is happend on the page the drag & drop is not working

My page_load function contains the following lines of code and each webpart is one user control and i also implemented custom verbs for each webpart.

 

try

{

sessionId = Session[
"SessionId"].ToString();

groups = m_pda.GetGroups(sessionId);

appContext = m_pda.GetAppContextsForGroup(sessionId, groups[0]);

configs = m_pda.GetConfigs(sessionId, groups[0], appContext[5]);

cases = m_pda.GetCases(sessionId, groups[0], appContext[5], configs[1]);

HttpCookie authCookie = Request.Cookies[FormsAuthentication.FormsCookieName];if (authCookie == null)

{

string MyCookieName = "Reminder";

System.Web.HttpCookie MyCookie = Request.Cookies[MyCookieName];

string UserId;

if (Request.Cookies[MyCookieName] == null)

{

UserId = System.
Guid.NewGuid().ToString().Replace("-", "");

MyCookie = new System.Web.HttpCookie(MyCookieName, UserId);

MyCookie.Expires = DateTime.Now.AddYears(1);

Response.Cookies.Add(MyCookie);

}

else

{

UserId = MyCookie.Value;

}

FormsAuthenticationTicket authTicket = new FormsAuthenticationTicket(1, UserId, DateTime.Now, DateTime.Now.AddSeconds(60), false, "roles");

string encryptedTicket = FormsAuthentication.Encrypt(authTicket);

authCookie = new HttpCookie(FormsAuthentication.FormsCookieName, encryptedTicket);

Response.Cookies.Add(authCookie);

Response.Redirect(Request.Url.ToString());

}

Timer1.Interval =
Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["TimeInterval"]);if (!IsPostBack)

{

wpManager.DisplayMode = WebPartManager.DesignDisplayMode;

LeftZone.BorderStyle = BorderStyle.None;

MiddleZone.BorderStyle = BorderStyle.None;

RightZone.BorderStyle = BorderStyle.None;TopZone.BorderStyle = BorderStyle.None;

}

 

lblUser.Text = Page.User.Identity.Name;

}

catch (Exception ex)

{

string str = ex.Message.ToString();

}

I am very thank ful to you if got solution from you

 

Regards

Suresh