Click here to Skip to main content
15,911,139 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Control resizeing... Pin
Paul Watson1-Oct-02 23:05
sitebuilderPaul Watson1-Oct-02 23:05 
GeneralRe: Control resizeing... Pin
Ray Cassick2-Oct-02 4:00
Ray Cassick2-Oct-02 4:00 
GeneralRe: Control resizeing... Pin
Paul Riley2-Oct-02 5:48
Paul Riley2-Oct-02 5:48 
GeneralRe: Control resizeing... Pin
Ray Cassick2-Oct-02 7:16
Ray Cassick2-Oct-02 7:16 
GeneralRe: Control resizeing... Pin
Paul Riley2-Oct-02 7:37
Paul Riley2-Oct-02 7:37 
GeneralClearing Cache in Asp.Net Pin
Jason Weibel1-Oct-02 12:06
Jason Weibel1-Oct-02 12:06 
GeneralRe: Clearing Cache in Asp.Net Pin
Jason Weibel2-Oct-02 1:44
Jason Weibel2-Oct-02 1:44 
GeneralDesignTime Pin
leppie1-Oct-02 7:36
leppie1-Oct-02 7:36 
Hi again Smile | :)

I want to place 3 dummy objects in a containing control at design time, so it can be "previewed". I have tried the following, but it does not work...Confused | :confused:

protected override void Render(HtmlTextWriter output)
{
  if (Site!=null) 
  {
    if (Site.DesignMode) 
    {
       for (int i = 0; i < 3; i++)
       {
          //add 3 "dummy" objects to render
          entrycol.Add( new Entry(this) );
       }
    }
  }
  //my rendering
  output.WriteLine(ELEMENTSTART);
  //render each control
  foreach (Entry entry in entrycol)
  {
    entry.RenderControl(output);
    output.Write(SEPERATOR);
  }
  output.WriteLine(ELEMENTEND);
}


Now Site.DesignMode doesnt seem to work in design mode. The page works fine at runtime when I am getting data from a SQL server.

Please don't tell me to go look at TemplatedControls. I have, and it's GREEK Mad | :mad: Laugh | :laugh: .

Can someone please help me?

Cheers Smile | :)

Give them a chance! Do it for the kittens, dear God, the kittens!
As seen on MS File Transfer: Please enter an integer between 1 and 2.
GeneralRe: DesignTime - SOLVED Pin
leppie1-Oct-02 23:13
leppie1-Oct-02 23:13 
GeneralPosition Pin
leppie1-Oct-02 7:25
leppie1-Oct-02 7:25 
GeneralNeed Help w/ Client Side VBScript Pin
Tim Rymer1-Oct-02 6:02
Tim Rymer1-Oct-02 6:02 
GeneralRe: Need Help w/ Client Side VBScript Pin
Jeremy Falcon1-Oct-02 6:14
professionalJeremy Falcon1-Oct-02 6:14 
GeneralRe: Need Help w/ Client Side VBScript Pin
Tim Rymer1-Oct-02 7:44
Tim Rymer1-Oct-02 7:44 
Generalglobal.asa Pin
Megan Forbes1-Oct-02 5:55
Megan Forbes1-Oct-02 5:55 
GeneralRe: global.asa Pin
Jeremy Falcon1-Oct-02 6:08
professionalJeremy Falcon1-Oct-02 6:08 
GeneralRe: global.asa Pin
Megan Forbes1-Oct-02 6:20
Megan Forbes1-Oct-02 6:20 
GeneralRe: global.asa Pin
Jeremy Falcon1-Oct-02 6:52
professionalJeremy Falcon1-Oct-02 6:52 
GeneralRe: global.asa Pin
Paul Watson1-Oct-02 6:19
sitebuilderPaul Watson1-Oct-02 6:19 
GeneralRe: global.asa Pin
Megan Forbes1-Oct-02 6:21
Megan Forbes1-Oct-02 6:21 
GeneralRe: global.asa Pin
leppie1-Oct-02 7:40
leppie1-Oct-02 7:40 
GeneralRe: global.asa Pin
Jeremy Falcon1-Oct-02 8:04
professionalJeremy Falcon1-Oct-02 8:04 
GeneralSorted - thanks! Pin
Megan Forbes2-Oct-02 10:46
Megan Forbes2-Oct-02 10:46 
Generalcheap hosting Pin
brianwelsch1-Oct-02 4:34
brianwelsch1-Oct-02 4:34 
GeneralRe: cheap hosting Pin
Scott Volk1-Oct-02 4:59
Scott Volk1-Oct-02 4:59 
GeneralNew to ASP Pin
Sarvesvara (BVKS) Dasa1-Oct-02 3:39
Sarvesvara (BVKS) Dasa1-Oct-02 3:39 

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.