Click here to Skip to main content
15,915,508 members
Home / Discussions / C#
   

C#

 
QuestionWhy I am getting this warning? Pin
Jassim Rahma9-Nov-11 4:48
Jassim Rahma9-Nov-11 4:48 
AnswerRe: Why I am getting this warning? Pin
Bert Mitton9-Nov-11 5:52
professionalBert Mitton9-Nov-11 5:52 
GeneralRe: Why I am getting this warning? Pin
Jassim Rahma9-Nov-11 5:57
Jassim Rahma9-Nov-11 5:57 
GeneralRe: Why I am getting this warning? Pin
RichardWil459-Nov-11 11:10
RichardWil459-Nov-11 11:10 
Questioncannot bind a static List<T> as DataSource to a ListBox ? Pin
BillWoodruff9-Nov-11 4:30
professionalBillWoodruff9-Nov-11 4:30 
AnswerRe: cannot bind a static List as DataSource to a ListBox ? Pin
PIEBALDconsult9-Nov-11 4:53
mvePIEBALDconsult9-Nov-11 4:53 
GeneralRe: cannot bind a static List as DataSource to a ListBox ? Pin
BillWoodruff9-Nov-11 4:56
professionalBillWoodruff9-Nov-11 4:56 
QuestionOverriding Render in Asp.Net Pin
Neox849-Nov-11 3:51
Neox849-Nov-11 3:51 
Hi to everyone,

i've a problem while overriding the render method of a control.

Here my scenario:

I need a panel that can render some control based on a property. I created a control which inherit from Panel, i added a Text property to the panel and i made the override of the render method.

The override basically read the text property and add controls to the panel based on some markers that are in the text.
In this case the Text property is something like:

"bla bla bla bla bla bla bla ##calendar## bla bla bla bla bla bla bla"

Everything seems to work (i mean that the controls gets rendered), but the problem is that i loose the functionality of the controls i add.
In my example i'm trying to add a Calendar, it gets rendered but the user is not able to click on the days ( the problem is that the a href="javascript:__DoPostBack......." is missing).

Can you help me understand what i'm missing?

Here the overridden method (just a test Render):

C#
protected override void Render(HtmlTextWriter writer)
       {
           string[] t = Text.Split(new string[] { "##calendar##" }, StringSplitOptions.None);
           writer.Write(t[0]);

           Calendar c = new Calendar();

           c.Attributes.Add("style", "float:left;");
           c.RenderControl(writer);
           writer.Write(t[1]);

       }


If something is not clear (due to my english) just let me know and i'll try to explain it better.

Thank you very much in advance.

Alessandro
QuestionDatagrid to display Pin
Blubbo9-Nov-11 3:31
Blubbo9-Nov-11 3:31 
QuestionRASENTRY member to designate more than one device Pin
mheinz9-Nov-11 0:56
mheinz9-Nov-11 0:56 
SuggestionRe: RASENTRY member to designate more than one device Pin
RaviRanjanKr13-Nov-11 4:42
professionalRaviRanjanKr13-Nov-11 4:42 
GeneralRe: RASENTRY member to designate more than one device Pin
mheinz24-Nov-11 3:30
mheinz24-Nov-11 3:30 
GeneralRe: RASENTRY member to designate more than one device Pin
RaviRanjanKr24-Nov-11 7:57
professionalRaviRanjanKr24-Nov-11 7:57 
Questionhow to get hardware unique serial no Pin
umeshdaiya8-Nov-11 22:18
umeshdaiya8-Nov-11 22:18 
AnswerRe: how to get hardware unique serial no Pin
Rob Philpott8-Nov-11 22:30
Rob Philpott8-Nov-11 22:30 
AnswerRe: how to get hardware unique serial no Pin
PIEBALDconsult9-Nov-11 1:40
mvePIEBALDconsult9-Nov-11 1:40 
GeneralRe: how to get hardware unique serial no Pin
GuyThiebaut9-Nov-11 1:45
professionalGuyThiebaut9-Nov-11 1:45 
AnswerRe: how to get hardware unique serial no Pin
Bernhard Hiller9-Nov-11 2:57
Bernhard Hiller9-Nov-11 2:57 
AnswerRe: how to get hardware unique serial no Pin
Alan Balkany11-Nov-11 11:14
Alan Balkany11-Nov-11 11:14 
QuestionDesigning: Multiple interfaces implementation on classes Pin
vinayvraman8-Nov-11 19:27
vinayvraman8-Nov-11 19:27 
AnswerRe: Designing: Multiple interfaces implementation on classes Pin
Ravi Sant8-Nov-11 21:15
Ravi Sant8-Nov-11 21:15 
GeneralRe: Designing: Multiple interfaces implementation on classes Pin
jschell9-Nov-11 11:13
jschell9-Nov-11 11:13 
GeneralRe: Designing: Multiple interfaces implementation on classes Pin
Ravi Sant10-Nov-11 2:29
Ravi Sant10-Nov-11 2:29 
AnswerRe: Designing: Multiple interfaces implementation on classes PinPopular
BobJanova8-Nov-11 23:15
BobJanova8-Nov-11 23:15 
GeneralRe: Designing: Multiple interfaces implementation on classes Pin
vinayvraman9-Nov-11 0:34
vinayvraman9-Nov-11 0:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.