CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML





Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.web_parts_and_personalization Tags:
Item Type: NewsGroup Date Entered: 9/28/2007 1:51:29 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 8 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
sandeepkarnik
Asp.Net User
Is this a bug or I'm doing something wrong?9/28/2007 1:51:29 PM

0/0

I am trying to add Web parts dynamically which works. Problem is the Text property for control (I am adding Button) is not seen. (I have taken Button control here to make the example simple, in my real code I am adding a user control which contains a label and I observe same problem there)

Main part of the code is given here:

WebPartManager1.DisplayMode = WebPartManager.DesignDisplayMode;

Button b = new Button();

string id = string.Format("Button{0}{1}{2}", DateTime.Now.Hour, DateTime.Now.Minute, DateTime.Now.Second); //some "unique" id

b.ID = id;

b.Text =
"The text does not get displayed";

 

GenericWebPart webPart = WebPartManager1.CreateWebPart(b);

WebPartManager1.AddWebPart(webPart, WebPartZone1, 0);

 

The button does get added in WebPartZone1 but the text on button is missing. Can anyone help?

 

Thanks in advance,

Sandeep 

 


http://www.dotnetic.com
sandeepkarnik
Asp.Net User
Re: Is this a bug or I'm doing something wrong?9/28/2007 1:58:03 PM

0/0

Just to avoid possible confusion about my line: "Problem is the Text property for control (I am adding Button) is not seen". I mean, the value that I assign to the Text property is not seen.


http://www.dotnetic.com
2 Items, 1 Pages 1 |< << Go >> >|



Search This Site:


Meet Our Sponsors:



Other Resources:

Question about Design Mode - newsgroup.asp-net-forum.general_asp-net ... What am I doing wrong? docluv. Asp.Net User. Re: Question about Design Mode. 12/26/2007 6:45:25 PM ... (to get to a smart tag or something) I just see the ...
Alias Issues - borland.public.interbase.general - Web Programming ... should i avoid the "or" operator in order to improve performance? blr syntax error, ... Interbase Express newsgroup, hoping I was just doing something wrong, ...
Bug 517 – clamd issue after upgrade to clamd-0.88-1sme02? Sorry in case it was me doing things wrong. Michael ... Two clues are that something is looking for a ./env/MEMLIMIT file which doesn't ...
What's That Bug: Even More Spiders
Housing/Guild Hall material DUPE BUG!?!?!?! ... just a permanent MoTD system wide message naming those doing it or ... there is something being done and there are consequences for wrong actions taken. ...
I must be doing something wrong... [Support Forums - XOOPS general ... Please read this before you post. Transfer. Derrick. Re: I must be doing something wrong... it's the only definate possible bug I know of with 2.0.15. ...
Excel bug calls for wrong number (and GHP CDs) | Computerworld Blogs September 26, 2007 - 6:31 A.M. Excel bug calls for wrong number (and GHP CDs) 6 comments ... But when it comes to something important like a blueprint or a scientific ...
VWvortex Forums: DOING IT WRONG ver 3.0 4:39 PM 8-28-2008. Taking a photo while diving, that's doing it wrong. Amber-ger club ... If you dont break something you are not doing it right. ...
Bug hunt at The ChinesePod Blog with Ken Carroll I am not sure what I am doing wrong or if this hits randomly. ... a bug-management system, but something needs to act as a communication tool and clearinghouse. ...
The Old New Thing : If you have to ask, you're probably doing something ... Holy cow, I wrote a book! Archives. August 2008 (11) July 2008 (40) June ... then chances are you're either doing something wrong, or you'ld understand the ...
teaching doctors to diagnose bed bug bites : Got bed bugs? Bedbugger.com ... aware of how bed bug bites appear on patients is something many of us are concerned about. ... a long time ago, but I'd bet a lot of that was my own doing ...



 
All Times Are GMT