using web controls

S

serkan ulucan

hi,

I want to learn that whether we can arrange a text and an image as
following, by using controls?

Note that image source and text source are defined seperately in databasa. I
want to update content independently.(when updating image database only
image change, and when updating text database only text change)

imageimageimage texttexttexttexttexttext
im im text text
im im text text
im IMAGE im text TEXT text
im im text text
im im text text
imageimageimage text text
text text
textetexttexttexttexttextext text
text text
text TEXT text
text text
text text
texttexttexttexttexttexttexttttexttexttexttexttext
 
J

John Cross [MSFT]

Hi Serkan.
I think your goal is to both cache the information separately in addition to format the display of the information via separate controls .
You can create two user controls - one for the image and another one for the text.
The two user controls can be placed on the main page directly (side by side). Then you can set each control to cache appropriately - since you're using a database you probably just want to use a duration based on how often the database will be updated for the respective image or text.
You can acheive the formatting you want while still have separate controls cached by letting the main page control formatting of both user controls - excepting the image user control can specify its left alignment.
Here is a simplified scenario:
Main page:
<p><uc1:ImageUserControl id="ImageUserControl1" runat="server"></uc1:ImageUserControl><uc1:TextUserControl id="TextUserControl1" runat="server"></uc1:TextUserControl></p>
Image User control:
<img src="foo.jpg" align="left" />

This posting is provided "AS IS" with no warranties, and confers no rights.

----- serkan ulucan wrote: -----

hi,

I want to learn that whether we can arrange a text and an image as
following, by using controls?

Note that image source and text source are defined seperately in databasa. I
want to update content independently.(when updating image database only
image change, and when updating text database only text change)

imageimageimage texttexttexttexttexttext
im im text text
im im text text
im IMAGE im text TEXT text
im im text text
im im text text
imageimageimage text text
text text
textetexttexttexttexttextext text
text text
text TEXT text
text text
text text
texttexttexttexttexttexttexttttexttexttexttexttext
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,263
Messages
2,571,062
Members
48,769
Latest member
Clifft

Latest Threads

Top