Search

You searched for the word(s): userid:877726

Matching Posts

  • Re: Dynamically created table as webpart drag drop problem

    Hello All, I found the solution of above problem. I made very silly mistake that instead of write the code in page_init, i added dynamic controls in page_load, I shifted my code from page_load to page_init mehod and bingo all working as i wanted...
  • Dynamically created table as webpart drag drop problem

    Hello All, I have seen almost all post about dynamically loaded usercontrol and also implemented it. but here I have created few table dynamically from the db data and add it in webpartzone which is also dynamically created. I am creating and adding the table on each postback request. My problem is, when I drag one table from one possition to another that particuler table possition changed properly but every other tables are going to reset to their original possition. I understood the problem is
  • problem with Dynamic webpartzone

    Hello All, I found below link which is not yet answered. I wanted to do same thing...... so I just want to know that Is it possible or not... can you help me.. Forum Link ; http://forums.asp.net/p/1035529/1429941.aspx#1429941
  • Re: Drag drop dynamically generated webpart

    Hello ramireddyindia, I went through the given link and did the same but I am getting error on the following line <testsite:MyWebPartManager ID= "MyWebPartManager1" runat= "server" /> its a parsing error generated on runtime... I registered the component by adding <%@ Register TagPrefix= "testsite" Namespace= "TestSite" %> but still the tag is not become available on page.. Can you guide me whats the proble is?? Thanks
  • Re: Drag drop dynamically generated webpart

    Hello ramireddy, Thanks for your detail description.. I added Assembly attribute in Register tag and the problem was solved. but now I stuck with another problem which I cant figure out. Problem is when I executed the application first time it shows all fine but when I close the explorer and run it in another explorer the webpart is getting duplicated. I can see two webpart with name webpart [1] and webpart [2]. each time it is generating new one wich name webpart [N].. can you tell me pls what wrong
  • Re: Drag drop dynamically generated webpart

    Hello ramireddy, I am sending you the code snippet, protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { HttpCookie authCookie = Request.Cookies.Get(FormsAuthentication.FormsCookieName); if (authCookie == null) { string MyCookieName = "Reminder"; System.Web.HttpCookie MyCookie = Request.Cookies.Get(MyCookieName); string UserID = null; if (MyCookie == null) { UserID = System.Guid.NewGuid().ToString().Replace("-", ""); MyCookie = new System.Web.HttpCookie
  • Re: Drag drop dynamically generated webpart

    hello ramireddy, Above code is working perfactly.. the only change I had to do is changing the condition of checking the ID of dynamically generated webpart as it generated some random no behind the variavle name wp.. dont know why it is doing so.. but the final code looks like below.. Boolean WebPartExists = false; foreach (WebPart wp in WebPartManager1.WebParts) { if (wp.ID.StartsWith("wp")) WebPartExists = true; } if (!WebPartExists) { Control uc = this.LoadControl("control1.ascx"
  • Drag drop dynamically generated webpart

    hello All, I am new in webpart. I am adding a usercontrol dynamically to a webpartzone. It is displaying properly but when I am trying to drag it, It will disapear. I am herewith sending you code snippet. if (!IsPostBack) { Control uc = this.LoadControl("control1.ascx"); uc.ID = "wp2"; GenericWebPart wp2 = WebPartManager1.CreateWebPart(uc); wp2.AllowZoneChange = true; wp2.Title = "dynemic webpart"; WebPartManager1.AddWebPart(wp2, WebPartZone1, 1); } Can you tell me can
Page 1 of 1 (8 items)