Click here to Skip to main content
16,005,281 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Datagrid Pin
BalasahebK27-Jun-06 1:41
BalasahebK27-Jun-06 1:41 
QuestionSaving a jpg file--PLZ HELP Pin
Jeeva Mary Varghese27-Jun-06 0:35
Jeeva Mary Varghese27-Jun-06 0:35 
AnswerRe: Saving a jpg file--PLZ HELP Pin
Guffa27-Jun-06 7:24
Guffa27-Jun-06 7:24 
GeneralRe: Saving a jpg file--PLZ HELP Pin
Jeeva Mary Varghese27-Jun-06 21:15
Jeeva Mary Varghese27-Jun-06 21:15 
QuestionDATE DIFFERENCE Pin
Parvai27-Jun-06 0:29
Parvai27-Jun-06 0:29 
AnswerRe: DATE DIFFERENCE Pin
J4amieC27-Jun-06 0:40
J4amieC27-Jun-06 0:40 
AnswerRe: DATE DIFFERENCE Pin
Tirthadip27-Jun-06 20:32
Tirthadip27-Jun-06 20:32 
QuestionHow to raiseEvent of ITemplate interface Pin
BalasahebK27-Jun-06 0:28
BalasahebK27-Jun-06 0:28 
Hello Everybody,

I need help from all of u, pls help me for following code.
I have given number for each line, only for ref. When u copy the code, pls remove the numbers given and do modification.

The original code is in C# that converted into VB.net using converter.This code is perfectly working in C# without any error and waring Now I'm facing problem.

Now problem is, the line number 20 need raiseEvent, I don't know how to raise event in vb.net

Pls concentrate on line 20. Pls let me know how to declare and raise event.


1 Public Class CreateItemTemplateRadioButton
2 Implements ITemplate
3 Dim strText As String
4 Dim strRadioButtonName As String
5 Dim Visibility As Boolean = True
6 Dim blChecked As Boolean = False
7 Public Sub New(ByVal RadioButtonName As String, ByVal Text As String, ByVal AutoCheck As Boolean)
8 Me.strText = Text
9 Me.strRadioButtonName = RadioButtonName
10 Me.blChecked = AutoCheck
11 End Sub
12 Public Sub New(ByVal RadioButtonName As String, ByVal Text As String, ByVal AutoCheck As Boolean, ByVal Visibility As Boolean)
13 Me.strText = Text
14 Me.strRadioButtonName = RadioButtonName
15 Me.Visibility = Visibility
16 Me.blChecked = AutoCheck
17 End Sub
18 Public Sub InstantiateIn(ByVal objcontainer As System.Web.UI.Control) Implements System.Web.UI.ITemplate.InstantiateIn
19 Dim rad As HtmlInputRadioButton = New HtmlInputRadioButton
20 rad.DataBinding += New EventHandler(rad_DataBinding)
21 objContainer.Controls.Add(rad)

22 End Sub

23 Private Sub rad_DataBinding(ByVal sender As Object, ByVal e As EventArgs)
24 Dim rad As HtmlInputRadioButton = CType(sender, HtmlInputRadioButton)
25 rad.Value = strText
26 rad.Checked = blChecked
27 rad.Visible = Visibility
28 End Sub

29 End Class

Balasaheb
Software Developer
Platform: Asp.net,vb.net
Database: SQL Server 2000
AnswerRe: How to raiseEvent of ITemplate interface Pin
minhpc_bk27-Jun-06 4:46
minhpc_bk27-Jun-06 4:46 
GeneralRe: How to raiseEvent of ITemplate interface Pin
BalasahebK27-Jun-06 18:31
BalasahebK27-Jun-06 18:31 
QuestionSend Email Pin
Socheat.Net26-Jun-06 23:54
Socheat.Net26-Jun-06 23:54 
AnswerRe: Send Email Pin
Sushant Duggal27-Jun-06 0:03
Sushant Duggal27-Jun-06 0:03 
GeneralRe: Send Email Pin
Socheat.Net27-Jun-06 21:24
Socheat.Net27-Jun-06 21:24 
Questiontreeview in asp.net and c# Pin
ritu432126-Jun-06 23:51
ritu432126-Jun-06 23:51 
AnswerRe: treeview in asp.net and c# Pin
minhpc_bk27-Jun-06 4:47
minhpc_bk27-Jun-06 4:47 
GeneralRe: treeview in asp.net and c# Pin
ritu432127-Jun-06 20:02
ritu432127-Jun-06 20:02 
Questionhyperlink in code behind [modified] Pin
mehnazash26-Jun-06 23:34
mehnazash26-Jun-06 23:34 
AnswerRe: hyperlink in code behind Pin
Sushant Duggal26-Jun-06 23:57
Sushant Duggal26-Jun-06 23:57 
GeneralRe: hyperlink in code behind Pin
mehnazash27-Jun-06 1:03
mehnazash27-Jun-06 1:03 
GeneralRe: hyperlink in code behind Pin
Paddy Boyd27-Jun-06 1:11
Paddy Boyd27-Jun-06 1:11 
GeneralThanks everyone Pin
mehnazash27-Jun-06 1:55
mehnazash27-Jun-06 1:55 
QuestionUpdating the Datasource with Data Adapter Pin
kumar.m26-Jun-06 19:34
kumar.m26-Jun-06 19:34 
QuestionInkPicture ASP.NET Tablet PC Pin
oskardiazdeleon26-Jun-06 16:49
oskardiazdeleon26-Jun-06 16:49 
Questioncreating customizable datagrid reading an xml file Pin
sishya26-Jun-06 15:59
sishya26-Jun-06 15:59 
QuestionConverting title of calendar control to hyperlink Pin
jebby22526-Jun-06 15:30
jebby22526-Jun-06 15:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.