V
VR
Hi, I'm developing a custom control and as the control is getting it's final
form (and I was starting to getting crazy with that
RenderBeginTab/RenderEndTag) I tryed sth a little bit different as the code
found in MS samples in MSDN, could anyone tell me if is there any problem
using this approach?
Protected Overrides Sub Render(ByVal output As
System.Web.UI.HtmlTextWriter)
output.Write(MyHTML)
End Sub
Private Function MyHTML() As String
Dim strHTML As String
strHTML = "<table border='1'>" & _
"<tr>" & _
"<td valign='top'>" & _
"<select id='ValuesList'>" & _
"<option value='option01'>option01" & _
"</select>" & _
"</td>" & _
"<td rowspan='2'>" & _
"<select id='ValuesSelected' multiple>" & _
"<option value='option01'>option01" & _
"</select>" & _
"</td>" & _
"</tr>" & _
"<tr>" & _
"<td>" & _
"<input type=button value='Adiciona'
id='btnAdiciona'>" & _
"<br>" & _
"<input type=button value='Remove'
id='btnRemove'>" & _
"</td>" & _
"</tr>" & _
"</table>"
Return strHTML
End Function
Thanks a lot,
Victor
form (and I was starting to getting crazy with that
RenderBeginTab/RenderEndTag) I tryed sth a little bit different as the code
found in MS samples in MSDN, could anyone tell me if is there any problem
using this approach?
Protected Overrides Sub Render(ByVal output As
System.Web.UI.HtmlTextWriter)
output.Write(MyHTML)
End Sub
Private Function MyHTML() As String
Dim strHTML As String
strHTML = "<table border='1'>" & _
"<tr>" & _
"<td valign='top'>" & _
"<select id='ValuesList'>" & _
"<option value='option01'>option01" & _
"</select>" & _
"</td>" & _
"<td rowspan='2'>" & _
"<select id='ValuesSelected' multiple>" & _
"<option value='option01'>option01" & _
"</select>" & _
"</td>" & _
"</tr>" & _
"<tr>" & _
"<td>" & _
"<input type=button value='Adiciona'
id='btnAdiciona'>" & _
"<br>" & _
"<input type=button value='Remove'
id='btnRemove'>" & _
"</td>" & _
"</tr>" & _
"</table>"
Return strHTML
End Function
Thanks a lot,
Victor