Hehehe, you really don't trust html coders...
Let them type their html and then you loads it and redesign it... ; )
One of the main thinking with asp.net is to separate design and logic.
The things you want to be dynamic like dropdowns, labels, fields, grids,
list and own controls, you can call an element. A page consists of some
Elements and html i.e. :
<asp:button id=3D"sendButton" runat=3D"server"
Text=3D"Send"></asp:button>
<asp:button id=3D"cancelButton" runat=3D"server"
Text=3D"Cancel"></asp:button>
<asp:label runat=3D"server" id=3D"nameLabel" Text=3D"Full Name:
"></asp:label>
<asp:textbox id=3D"subjectTextBox" Runat=3D"server" Columns=3D"40"
TextMode=3D"SingleLine"></asp:textbox>
<asp:image id=3D"userPictureImage" runat=3D"server"></asp:image>
Then the designer put the element in the html where he wants them.
No risk of the designer ****ing up logic...
You can even put style sheet classes on each element so designer don't
have to add attributes on them like font, color and so on ; )
Like:
<table>
<tr>
<td> <asp:image id=3D"userPictureImage"
runat=3D"server"></asp:image>
</td>
</tr>
</table>
Mats Boberg
-----Ursprungligt meddelande-----
Fr=E5n: Nicolai Skovmose S=F8rensen [mailto:nss@j...]
Skickat: den 28 november 2001 13:21
Till: ASP+
=C4mne: [aspx] RE: SV: Server Control Question
Well, I want to give the designers complete control of the HTML that the
control outputs and I want it to be simple. The template functionality
that
the datagrid/datalist offers just dosnt give me enough control over the
HTML
output and would mean the designers needing to learn how to use
properbly it
as well.
So I want the control to be able to use the HTML/Layout the designers
provide and not generate HTML pending on some properties, what if the
designer suddenly wants to fill out a dropdown box instead of a table ?
There are numerous possibilities and I need to support them all and
providing them with properties so I can generate code for all of these
possibilities is really isnt an option for me.
So back to the original question : How do I access the data between the
control tag ?
Like this :
<control:test>THIS IS THE DATA I WANT!</control:test>
Regards
Nicolai S=F8rensen
Jubii A/S - Programmer
-----Original Message-----
From: Mats Boberg [mailto:Mats.Boberg@n...]
Sent: 27. november 2001 16:34
To: ASP+
Subject: [aspx] SV: Server Control Question
I think the easiest way; is to define your own header, footer, and data
rows that the designer can set attributes on and use and not you
changing data in their design. What if they want to change the layout
add a <td></td> or <tr></td>
-----Ursprungligt meddelande-----
Fr=E5n: Nicolai Skovmose S=F8rensen [mailto:nss@j...]
Skickat: den 27 november 2001 16:11
Till: ASP+
=C4mne: [aspx] Server Control Question
Hi people,
Im building a server control to handle and display data from our content
database. Anyway I need to access the layout the designers provide. And
then
replace their keywords with my data.
They will put the control on their page like this :
<ChannelControl:News>
<table>
<tr><td>bleh</td></tr>
</table>
</ChannelControl:News>
My question is, how do I access the HTML in between the start and end
tag ?
Thanks in advance
Nicolai S=F8rensen
Jubii A/S - Programmer
---
VBug Winter Conference 2001
Open Forum: Dan Appleman will be hosting an open
forum at The .NET Developer's Conference on
29th November 2001. The session will give
developers the chance to discuss and question
Dan on his experience with the .NET environment.
Dan has been programming Visual Basic since the
alpha version 1.0. And with over 10 years
Visual Basic experience is well qualified to
help you on your road to being a .NET Guru.
http://www.vbug.co.uk/redirect.asp?url=3D39&id=3D17
---
You are currently subscribed to
aspx as: mats.boberg@n...
$subst('Email.Unsub')
Read the future with ebooks at B&N
http://service.bfast.com/bfast/click?bfmid=3D2181&sourceid=3D38934667&cat
ego
ryid=3Drn_ebooks
---
VBug Winter Conference 2001
Open Forum: Dan Appleman will be hosting an open
forum at The .NET Developer's Conference on
29th November 2001. The session will give
developers the chance to discuss and question
Dan on his experience with the .NET environment.
Dan has been programming Visual Basic since the
alpha version 1.0. And with over 10 years
Visual Basic experience is well qualified to
help you on your road to being a .NET Guru.
http://www.vbug.co.uk/redirect.asp?url=3D39&id=3D17
---
You are currently subscribed to
aspx as: nss@j...
$subst('Email.Unsub')
Read the future with ebooks at B&N
http://service.bfast.com/bfast/click?bfmid=3D2181&sourceid=3D38934667&cat
ego
ryid
=3Drn_ebooks
---
VBug Winter Conference 2001
Open Forum: Dan Appleman will be hosting an open
forum at The .NET Developer's Conference on
29th November 2001. The session will give
developers the chance to discuss and question
Dan on his experience with the .NET environment.
Dan has been programming Visual Basic since the
alpha version 1.0. And with over 10 years
Visual Basic experience is well qualified to
help you on your road to being a .NET Guru.
http://www.vbug.co.uk/redirect.asp?url=3D39&id=3D17
---
You are currently subscribed to
aspx as: mats.boberg@n...
$subst('Email.Unsub')
Read the future with ebooks at B&N
http://service.bfast.com/bfast/click?bfmid=3D2181&sourceid=3D38934667&cat
ego
ryid=3Drn_ebooks