Ask a Question related to ASP Components, Design and Development.
-
Toze #1
ASP.NET 2 user control rendering
I'm developing a user control like a calendar that displays, for each day, a
set of information: the day of the month, if the day is an holiday then a
green circle at the left corner, if the day is locked then a red circle in
the right corner, if the day is weekend then a blue bar at the bottom, etc...
I need to draw this days dynamicaly, using bitmaps.
Actually I'm rendering, for each day, an IMG tag with a SRC attribute like
"day.day?dayWidth=20&dayHeight=20&date=20071201&lo cked=true".
I've created a class that implements IHttpHandler and I've registered that
class in my web.config so it generates my bitmaps for extensions "*.day".
The values I'm passing (and reading in the HttpContext request parameters) -
dayWidth, dayHeight, date, locked - are properties of a c# class that I
defined and has a lot more of properties that I need during the bitmap
creation.
My questions are:
1- Is there another way of dynamically create these bitmaps?
2- Is it possible to pass an instance of my class, instead of writing all
the relevant values in the src attribute?
Thank you
Toze Guest
-
Design Time Rendering User Control?
I've created a user control (not a custom control) consisting of a table with a single row containing three cells, each cell containing a button.... -
Rendering a picture to a user web control
Hi I'm trying to create a user web control which takes a picture as a background and draws a line on it according to user parameters. This web... -
Rendering Custom HTML in user Control
I want to create my own html in user control, Is this possible or do i have to create a custom control for that situation. If it is possible... -
rendering derived control from composite control
I am triing to load a control derived from a datagrid into a composite control so I can wrap some html around the datagrid. it renders the html in... -
Design-time rendering of User Control
Like many others, I would like to replace the default "grey button" display of my user control with something that more closely (better yet exactly)...



Reply With Quote

