Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

i am quite new to programming with asp.net and my problem is the following. I want to create a control (or custom-control, etc. sorry i dont know what will be the correct name) which allows me to add a content by myself and take some properties as well ... to be specific i want to create a groupingbox which makes a rounded border over some content .. further i want to specify the width of the control ...

 

here is some pseudocode:

i want to write something like this:

 

<my:Box width="400">
     <content>
            <strong>thats me</strong>
     </content>
</my:Box>

 

and i want the control to do the following when rendered:

 

<table width=400 border=1>
<tr>
    <td><strong>thats me</strong></td>
</tr>
</table>

 

this table is simple but in my specific problem i make a box with rounded corners and i want to reuse this thing in my application. i would be happy to get some example code, examples or just words that i can search for it on the web. Thanks a lot!!

sometimes I blog...

http://michal.grafix.at

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...