Click here to Skip to main content
15,920,956 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to validate character of text box Pin
Braulio Dez31-Oct-07 0:48
Braulio Dez31-Oct-07 0:48 
GeneralRe: how to validate character of text box Pin
Piyush Vardhan Singh31-Oct-07 1:11
Piyush Vardhan Singh31-Oct-07 1:11 
QuestionI need to display color when i mouseover on the MenuItem(ASP.Net)..Please help me Pin
PeriyasamyRamachandran30-Oct-07 23:23
PeriyasamyRamachandran30-Oct-07 23:23 
AnswerRe: I need to display color when i mouseover on the MenuItem(ASP.Net)..Please help me Pin
sivarajanb31-Oct-07 1:43
sivarajanb31-Oct-07 1:43 
GeneralRe: I need to display color when i mouseover on the MenuItem(ASP.Net)..Please help me Pin
PeriyasamyRamachandran31-Oct-07 1:59
PeriyasamyRamachandran31-Oct-07 1:59 
GeneralRe: I need to display color when i mouseover on the MenuItem(ASP.Net)..Please help me Pin
Arif patel31-Oct-07 3:14
Arif patel31-Oct-07 3:14 
QuestionASP.NET and delegates Pin
roninnexus30-Oct-07 23:10
roninnexus30-Oct-07 23:10 
AnswerRe: ASP.NET and delegates Pin
Christian Graus30-Oct-07 23:14
protectorChristian Graus30-Oct-07 23:14 
GeneralRe: ASP.NET and delegates Pin
roninnexus31-Oct-07 1:56
roninnexus31-Oct-07 1:56 
Questionhow to read txt file using java script Pin
jagadeeshkumar198430-Oct-07 23:05
jagadeeshkumar198430-Oct-07 23:05 
AnswerRe: how to read txt file using java script Pin
Christian Graus30-Oct-07 23:12
protectorChristian Graus30-Oct-07 23:12 
AnswerRe: how to read txt file using java script Pin
Sandeep Akhare30-Oct-07 23:15
Sandeep Akhare30-Oct-07 23:15 
GeneralRe: how to read txt file using java script Pin
Arif patel31-Oct-07 3:23
Arif patel31-Oct-07 3:23 
GeneralRe: how to read txt file using java script Pin
Sandeep Akhare31-Oct-07 3:58
Sandeep Akhare31-Oct-07 3:58 
AnswerRe: how to read txt file using java script Pin
Arif patel31-Oct-07 4:13
Arif patel31-Oct-07 4:13 
Questionuser control event dosen't fire up Pin
sivarajanb30-Oct-07 22:58
sivarajanb30-Oct-07 22:58 
i want to know which item is clicked in the repeater control. i think the event dosen't fire when i click the repeater control.I don't know where i made mistake.the following is the user control page and asp.net page.

'=------------ WebUserControl1.ascx.vb

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Repeater1.DataBind()
End Sub

Private tbtxt As New ArrayList

Public Property tbtxt1() As ArrayList
Get
Return tbtxt
End Get
Set(ByVal Value As ArrayList)
tbtxt = Value
End Set
End Property

Public Property backcolor() As Color
Get
Return ViewState("backcolor")
End Get
Set(ByVal Value As Color)
ViewState("backcolor") = Value
End Set
End Property
Public Property selbackcolor() As Color
Get
Return ViewState("selbackcolor")
End Get
Set(ByVal Value As Color)
ViewState("selbackcolor") = Value
End Set
End Property
Public ReadOnly Property currenttabindex() As Integer
Get
Return viewstate("currenttabindex")
End Get
End Property
'private repeater1.
Private Function setbackcolor(ByVal obj As Object) As Color
Dim itm As RepeaterItem = obj
If itm.ItemIndex = currenttabindex Then
Return backcolor
Else
Return selbackcolor
End If

End Function
Public Class selectionchangedeventargs
Inherits EventArgs
Public tabposition As Integer
End Class
Public Delegate Sub SelectionChangedEventHandler(ByVal sender As Object, ByVal e As selectionchangedeventargs)

Public Event selectionchanged As SelectionChangedEventHandler


Public Sub selecttab(ByVal indx As Integer)
viewstate("currenttabindex") = indx
panel1.BackColor = selbackcolor

Repeater1.DataBind()

Dim ev As selectionchangedeventargs
ev.tabposition = currenttabindex
RaiseEvent selectionchanged(Me, ev)
End Sub
Private Sub Repeater1_ItemCommand(ByVal source As System.Object, ByVal e As System.Web.UI.WebControls.RepeaterCommandEventArgs) Handles Repeater1.ItemCommand
selecttab(e.Item.ItemIndex)
End Sub

'--------------------webform2.aspx.vb
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here

Dim lst As New ArrayList
lst.Add("one")
lst.Add("two")
lst.Add("three")
lst.Add("four")
lst.Add("five")

Dim us As WebUserControl1 = FindControl("tstrip")
us.tbtxt1 = lst
AddHandler us.selectionchanged, AddressOf selectionchanged


End Sub

Private Sub selectionchanged(ByVal sender As Object, ByVal e As WebUserControl1.selectionchangedeventargs)
Label1.Text = e.tabposition.ToString
End Sub

'---------------------------

please help me to solve this.

by
siva
AnswerRe: user control event dosen't fire up Pin
Sandeep Akhare30-Oct-07 23:11
Sandeep Akhare30-Oct-07 23:11 
AnswerRe: user control event dosen't fire up Pin
Imran Khan Pathan30-Oct-07 23:13
Imran Khan Pathan30-Oct-07 23:13 
GeneralRe: user control event dosen't fire up Pin
sivarajanb30-Oct-07 23:25
sivarajanb30-Oct-07 23:25 
QuestionDataGrid problem in asp.net Pin
ShuklaGirish30-Oct-07 22:50
ShuklaGirish30-Oct-07 22:50 
AnswerRe: DataGrid problem in asp.net Pin
Big Ralph30-Oct-07 23:05
Big Ralph30-Oct-07 23:05 
QuestionLocalize time out error message of asynchronous postback in ASP.NET AJAX Pin
Urs Enzler30-Oct-07 22:46
Urs Enzler30-Oct-07 22:46 
AnswerRe: Ajax Pin
Christian Graus30-Oct-07 23:13
protectorChristian Graus30-Oct-07 23:13 
GeneralRe: Ajax Pin
Michael Schubert30-Oct-07 23:26
Michael Schubert30-Oct-07 23:26 
QuestionHow can I run a .exe file on the client side with asp.net 2.0 Pin
Big Ralph30-Oct-07 22:37
Big Ralph30-Oct-07 22:37 

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.