CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 11/6/2003 11:07:03 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 56 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
angiras
Asp.Net User
how to fire an event (radiobuttonList) ?11/6/2003 11:07:03 AM

0/0


When I use this RadioButtonList into a Page no events are fired ? why ?
Public Class Options : Inherits RadioButtonList


Sub New()
MyBase.New()
AddHandler Me.Init, AddressOf Me.Init_Control
End Sub

Private Sub Init_Control(ByVal sender As Object, ByVal ea As EventArgs)
'let say the control has ListItems
AddHandler MyBase.SelectedIndexChanged, AddressOf Me.OptionsEvent
MyBase.AutoPostBack = True
End Sub

Private Sub OptionsEvent(ByVal sender As Object, ByVal e As EventArgs)
Response.Redirect("?Char=" + Me.SelectedItem.Value.ToString)
End Sub

End Class
and I hope in the Net 2.0 it will be easier to get events just as backgroundcolors ....


thanks for helping


angiras
joteke
Asp.Net User
Re: how to fire an event (radiobuttonList) ?11/6/2003 3:39:50 PM

0/0

Instead of wiring up to Init event, try overriding OnInit method.


Protected Overrides Sub OnInit(e As EventArgs)
MyBase.OnInit(e)
'Your code goes here
End Sub

Thanks,

Teemu Keiski
Finland, EU
angiras
Asp.Net User
same11/6/2003 3:47:01 PM

0/0

same thing it doesn't fire at all

for a button no peoblem

Public Class Bouton : Inherits ywc.Button

Public Sub New()
MyBase.New()
AddHandler Me.Init, AddressOf Me.Init_Control
End Sub

Private Sub Init_Control(ByVal sender As Object, ByVal ea As EventArgs)
MyBase.Text = "Handler"
MyBase.CommandName = "OK"
AddHandler MyBase.Command, AddressOf Boutons_command
End Sub

Private Sub Boutons_command(ByVal sender As Object, ByVal cea As CommandEventArgs)
Response.Redirect("?Handler=" + cea.CommandName)
End Sub

End Class

this code works perfectly
angiras
rythm
Asp.Net User
Re: how to fire an event (radiobuttonList) ?11/10/2003 5:36:47 PM

0/0

Is the AutoPostback property Set to "True"?
angiras
Asp.Net User
Re: how to fire an event (radiobuttonList) ?11/10/2003 5:54:43 PM

0/0

it work , I have just removed the name tage from the HtmlForm tag and the .net javascript _dopostback use the name and not the id !! (getelementbyid)

this stupid .net xhtml incompaibility !!! ..... they are no names tag in xhtml w3

because of net framework one is obliged to use a very loose xhtml transitional .....
angiras
5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro WPF: Windows Presentation Foundation in .NET 3.0 Authors: Matthew MacDonald, Pages: 980, Published: 2007
Pro WPF in C# 2008: Windows Presentation Foundation With . Net 3. 5 Authors: Matthew MacDonald, Pages: 1040, Published: 2008
Pro WPF with VB 2008: Windows Presentation Foundation With . Net 3. 5 Authors: Matthew MacDonald, Pages: 1000, Published: 2008
Visual Basic.Net by Example Authors: Gabriel Oancea, Robert P. Donald, Pages: 976, Published: 2002
A Practical Guide to Curl Authors: Kevin Hanegan, Pages: 398, Published: 2003
Beginning ASP.NET 2.0 in VB 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1063, Published: 2006
Sams Teach Yourself Visual Studio .NET 2003 in 21 Days Authors: Stephen Walther, Jason Beres, Pages: 696, Published: 2003
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005
Sams Teach Yourself Visual Basic .NET Web Programming in 21 Days Authors: Peter Aitken, Phil Syme, Pages: 544, Published: 2001
Microsoft Visual C# .NET 2003 Developer's Cookbook: Developer's Cookbook Authors: Mark Schmidt, Simon Robinson, Pages: 787, Published: 2003

Web:
Checkboxlist inside Repeater - doesn't fire click event for ... Checkboxlist inside Repeater - doesn't fire click event for Checkboxlist. Get answers to your questions in our .NET ASP forum.
Checkboxlist inside Repeater - doesn't fire click event for ... Talk about Checkboxlist inside Repeater - doesn't fire click event for Checkboxlist.
How to fire radiobutton click event on the client side? - ASP.NET ... How to fire radiobutton click event on the client side? Last post 08-26-2003 11: 00 PM by AzFlasher. 4 replies. Sort Posts: ...
[#SDK-15918] RadioButton no longer fires change event when ... In this case, the RadioButton that was previously selected is not being changed through user-interaction and fires no change event (but does fire a ...
RadioButtonList Control, asp:RadioButtonList Control How to use RadioButtonList control in asp.net? Working with RadioButtonList ... Green 4th RadioButton List, This will fire OnSelectedIndexChanged event ...
Radio Button List ---> onclick event. You can never know when the ... I think this is what happens in the Radio Button List: IF CLICK ON TEXT LABEL FIRE ONCLICK EVENT TELL CIRCLE TO GET FILLED IF CLICK ON CIRCLE (get filled) ...
SelectedIndexChanged event won't fire again for RadioButtonList ... SelectedIndexChanged event won't fire again for RadioButtonList control if that option is pre-selected. Last post 04-23-2007 10:10 AM by ...
Java Programming - how to fire event for Check box wich is setted ... It works and now i want to fire an event when uset click on this check boxeses. please can enyone help me. public void setBranchCheckBoxes(){ ...
Adobe Forums - RadioButtonList - Riddle - URGENT You should only have the script running in one spot ...the change event of the RadioButtonList. As the list is changed the event will fire ...
RadioButton does not fire event in ASP.NET Talk about RadioButton does not fire event in ASP.NET.




Search This Site:










any future plans for a user customizable “my page” page?

dealing with embedded quotes in database fields

cannt find sqladapter in my vs2005 !!! [^o)]

how to enable sso on web applications accross subdomains using active directory

language

wierd problem updating database.

clubsite.css?

multiple composite controls on a page and event firing unexpectedly

security roles appear on "add" page

need help please!

can i include a vbscript file in my aspx page?

looking for article management system

password too long??

can someone please help? access = modules failed to load .

modulesettings, link-module, pnloptions

why are the webcontrols no longer supported?

preventing account lockout

dnn installation... problem with image

forms authentication for a multiproject solution

client certificate????

excluding replacement .config files from deployment?

security trimming and treeview site navigation in windows mode authentication

critical error surveys

windows authentication dnn 3.2

redirect user to a page with 'http basic authentication'

solpartmenu not compatible in mac os

user.identity.name doesn't work on server

menu click event handling problem on master page...

how to change the color of a tree node?

using dotnetnuke as an application framework

 
All Times Are GMT