locked
Value from User Control to Delegate Control RRS feed

  • Question

  • Hi, I have two banners (Right, Left) that uses the same User Control. I would like to pass a value from a User Control to a Delegate Control to indicate the position right or left, is it possible?

    Thanks

    Monday, March 3, 2014 4:16 PM

Answers

  • Hi,

    According to your post, my understanding is that you want to indicate the position(Left or Right) of the two User Control.

    We can use DIV + CSS to achieve it, the following code snippet for your reference:

    <div id="banner">
        <div id="bannerLeft">
            User Control 1 
        </div>
        <div id="bannerRight">
            User Control  2
        </div>
    </div>
    <style type="text/css">
        #bannerLeft{
            float:left;
        }
        #bannerRight{
            float:right;
        }
    </style>

    Best Regards

    Dennis Guo
    TechNet Community Support

    Friday, March 7, 2014 2:57 AM