Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:877726
More Search Options
RSS Available
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...
Posted to
Web Parts and Personalization
(Forum)
by
joshijimit
on 7/14/2009
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
Posted to
Web Parts and Personalization
(Forum)
by
joshijimit
on 7/13/2009
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
Posted to
Web Parts and Personalization
(Forum)
by
joshijimit
on 6/30/2009
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
Posted to
Web Parts and Personalization
(Forum)
by
joshijimit
on 6/29/2009
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
Posted to
Web Parts and Personalization
(Forum)
by
joshijimit
on 6/29/2009
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
Posted to
Web Parts and Personalization
(Forum)
by
joshijimit
on 6/29/2009
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"
Posted to
Web Parts and Personalization
(Forum)
by
joshijimit
on 6/29/2009
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
Posted to
Web Parts and Personalization
(Forum)
by
joshijimit
on 6/26/2009
Page 1 of 1 (8 items)
Channel 9:
TWC9: XAML tools, Silverlight for Live Writer, Surface SDK,
Channel 9:
C9 Conversations: Brian Beckman on Complexity [C9 Conversations: Brian Beckman on Complexity]
Channel 10:
Black Friday Deals on Windows 7 Machines
Channel 10:
Holiday Shopping on Bing Cashback = Big Online Savings
Channel 10:
Black Friday Deals at the Microsoft Store
Channel 10:
Incredible Black Friday Deal: Windows 7 Notebook for $197
ASP.NET:
Presenting in Europe Next Week
TechNet Edge:
AlignIT IT Manager Podcast #30 - Straight Talk about Windows 7
WindowsClient:
You know your post rate has gone down...
Silverlight:
Geek Profiles – Scott Guthrie
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 9 of 13
TechNet Edge:
Managing Your Virtual World - Tech Focus November 2009 Part 2
ASP.NET:
Silverlight and RIA Services: Implementing Search
Channel 9:
C9 Lectures: Brian Beckman - Covariance and Contravariance in Physics 1 of 1
Channel 9:
Set Your Data Free
Channel 9:
Implementing a Silverlight SharePoint WebPart with Visual Studio 2010
WindowsClient:
New WPF Showcase Addition: Enterprise
Channel 9:
Reactive Extensions API in depth: Contract
WindowsClient:
Concluding "New WPF Features" Series
WindowsClient:
Introduction to TestApi – Part 5: Managed Code Fault Injection APIs
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online