Usercontorl in a placeholder

Ask a Question related to ASP.NET Building Controls, Design and Development.

  1. #1

    Default Usercontorl in a placeholder

    Hi,
    I am having this wierd issue. I have a usercontrol in a aspx page.
    Basically this user control has some labels and thats it. It has a printer
    friendly link and when we click on it a pop up window open with the text the
    user control. Everything works good except for in hte labels, where I have
    long text. When looked in teh aspx page, i see <br /> at quite some places
    and somehow all of them magically disappear when on this printer friendly
    page.

    this is what I am doing....

    PrintMessagePlaceHolder.Controls.Add(
    LoadControl(GetUrl(Constants.PRINT_MESSAGE_GENERAL )));

    Please let me know.

    Thanks
    Pradeep
    Pradeep Guest

  2. Similar Questions and Discussions

    1. placeholder error
      I am using DBD-Sybase 1.05-oc12.5.1. When running my script I get the following error: ct_result(ct_dynamic(CS_PREPARE)) returned -205 at...
    2. Build control in a placeholder or like a placeholder
      Hi. I create a new custom control and it works fine. But now, I need to put it in any place on the page, like the placehold control do. Someone...
    3. Customize Placeholder Text?
      Is it possible to customize the pseudo-latin default text that is added when I select Type > Fill With Placeholder Text? I am doing a lot of work in...
    4. 4GL V7.31 placeholder problem?
      Hi Testing 4GL V7.31 here, on HP-UX11i. The following code has worked in 4GL 6.05 thru 7.20 for over 7 years. Now in 7.31 it's failing at runtime...
    5. Placeholder Question
      Hi all, I have a placeholder control on an ASPX page. I dynamically add a button control to the placeholder from code - all is well with the...
  3. #2

    Default Re: Usercontorl in a placeholder

    1. What is Constants.PRINT_MESSAGE_GENERAL
    2. You'll have to explain in a little more detail what the problem is... where do you see the <br>s? In the source or in the labels?



    --------------------------------------------------------------------------------
    All that glitters has a high refractive index.
    [url]www.mendhak.com[/url]
    "Pradeep" <Pradeep@discussions.microsoft.com> wrote in message news:F34BECD6-02CD-4A7D-9FA2-E8529C152AB6@microsoft.com...
    Hi,
    I am having this wierd issue. I have a usercontrol in a aspx page.
    Basically this user control has some labels and thats it. It has a printer
    friendly link and when we click on it a pop up window open with the text the
    user control. Everything works good except for in hte labels, where I have
    long text. When looked in teh aspx page, i see <br /> at quite some places
    and somehow all of them magically disappear when on this printer friendly
    page.

    this is what I am doing....

    PrintMessagePlaceHolder.Controls.Add(
    LoadControl(GetUrl(Constants.PRINT_MESSAGE_GENERAL )));

    Please let me know.

    Thanks
    Pradeep
    S.M. Altaf [MVP] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139