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
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
{
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]);
string MyCookieName = "Reminder";
string UserId;
MyCookie = new System.Web.HttpCookie(MyCookieName, UserId);
Response.Cookies.Add(MyCookie);
}
else
UserId = MyCookie.Value;
string encryptedTicket = FormsAuthentication.Encrypt(authTicket);
Response.Cookies.Add(authCookie);
Response.Redirect(Request.Url.ToString());
wpManager.DisplayMode = WebPartManager.DesignDisplayMode;
MiddleZone.BorderStyle = BorderStyle.None;
lblUser.Text = Page.User.Identity.Name;
I am very thank ful to you if got solution from you
Regards
Suresh
I am using Gridview in a WARP control. My GridView Contains link buttons as Template Control. By clicking that LinkButton I have to Download some file from server. When i Try above mentioned menthod and changing WARP control's TriggerdPostnackIDs ... its not allowing to download file. Please help me with this. I appreciate your help with this. Thank you.
Hi Team,
I got the solution for excel export with update panel but i have another problem ie drag and drop problem.
when i am using WARP with webparts, when i am running the application first time the drag and drop of webparts is enabling but when i do anthing on the page like moving the webpart are clicking anything on the webpart the drag&drop of webparts is not working but one thing if refresh the page(with F5) the drag and drop is working.
erlyer if i use microsoft updatepanel it was having the same problem,then i got work around for that. that work aroud is not fit for our WARP.
so pl give solution for this.
Suresh k
Hi Suresh,
Hello Suresh,
Yes, this is a known problem - this is actually a generic problem for HTTP/AJAX - file downloads will not work if they are "ajaxified". Since Excel export is essentially by default a file download task, it will not work if used inside WARP / UpdatePanel.
There is a workaround for this problem though, please take a look at this forum thread for implementation details:
http://forums.infragistics.com/forums/p/8863/34770.aspx#34770