473,320 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

RenderBeginTag

Hi,

I am creating a custom control and I am changing the begin tag from
<spanto <div>:

Public Overloads Overrides Sub RenderBeginTag(ByVal writer As
HtmlTextWriter)

writer.Write("<div>")

End Sub

The problem is I want the control properties to the <divtag.

For example, when I place the control in a web page:
MyControl.Id = "myControl"
MyControl.CssClass = "myControl"
MyControl.BackColor = White

I want those properties to be applied to the <div>. Like the div would
be a panel.

Any idea?

Thanks,
Miguel

Dec 28 '06 #1
0 917

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: dx | last post by:
I'm extremely frustrated with ASP.NET...again! To me this should be as simple as setting oCheckBox.Checked = True.. yet for some reason it isn't. I have a user control (ascx) that that has a...
3
by: MatsL | last post by:
Hi, This is seriously driving me crazy, could anyone explain to me why neither of these doesn't produce XHTML compliant output (it is being called in Render() btw): output.WriteLine("<img...
0
by: arlie_maija | last post by:
Hey - I'm writing a control that contains a DataGrid, and I'm unable to get the update event to fire. When I click the update link, the edit event fires. heres the details... my control...
3
by: shapper | last post by:
Hello, I have been creating custom controls based on Asp.Net 2.0 controls using CreateChildControls. When I look at the HTML source it looks like Asp.Net wraps all the child controls with a...
0
by: shapper | last post by:
Hello, I want to create an ordered list where each list item can have various controls: <ol> <li>textbox, label, ...</li> ... </ol>
5
by: ravitunk | last post by:
hello all....i have the following code in my ASP.net(C#) page to send an email... MailMessage mm = new MailMessage(); StringWriter sw = new StringWriter(); HtmlTextWriter ht...
2
by: shapper | last post by:
Hello, I created a custom control that inherits CompositeControl: Public Class MySection Inherits CompositeControl ... Protected Overrides Sub CreateChildControls() ......
3
by: =?Utf-8?B?Q3JhaWcgR2xlbmNyb3Nz?= | last post by:
I have created a Composite Control in C# 2005 for ASP. It has 3 buttons, a calendar control and some drop down lists. It compiles correctly and I can use it on a test web site but I cannot...
7
by: Jack Hack | last post by:
I am deveoping a web part for deployment on a MOSS 2007 intranet using VB.net. I have a dataset containing ID,name. My template field needs to display a photo (photo filename is the ID number),name...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.