CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting
Microsoft Gold Certified Partner – 3 Months Free and Free Setup



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 7/30/2005 6:26:06 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 33 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
NewASPProgramme
Asp.Net User
Servercontrol client side events7/30/2005 6:26:06 AM

0/0

hi friends...

I develope a server control which has an html button. when this button is clcked, it does some calculations  and calls a javscript function in parent page. The called function is not included in the servercontrol and the implementation should be written by the control-user.
In some servercontrols i noticed that they have a property like 'CliendSideEventHandler'  and a list of possible events. when we select one from the list, its event handler automatically added to the page's HTML. (At Design time) how can i accomplish this? i searched for this in many server control development tutorials but found nothing related to this. do you have any idea about this ? or please refer a site/tutorial that covers this topic.
Thanking,

John.

christiantoivol
Asp.Net User
Re: Servercontrol client side events8/31/2005 7:08:17 AM

0/0

Im not clear what you are trying to accomplish. Sounds like you want to output your javascript.. You can do that by using the Page.RegisterClientScriptBlock() method.. to run OnClick events etc, add the attribute to the appropriate tag.
Christian Toivola

Web Developer

Techknow Consulting Inc.
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro ASP. Net 3. 5 Server Controls and AJAX Components Authors: Rob Cameron, Dale Michalk, Pages: 740, Published: 2008
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008
ASP.NET AJAX Programmer's Reference: With ASP.NET 2.0 Or ASP.NET 3.5 Authors: Shahram Khosravi, Pages: 1522, Published: 2007
Professional ASP.NET 1.1 Authors: Alex Homer, Dave Sussman, Rob Howard, Brian Francis, Karli Watson, Richard Anderson, Pages: 1337, Published: 2004
Real World Asp.Net Best Practices: Best Practices and Fatal Traps Authors: Farhan Muhammad, Matt Milner, Pages: 224, 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 Studio .NET 2003 in 21 Days Authors: Stephen Walther, Jason Beres, Pages: 696, Published: 2003
ASP.NET for Developers Authors: Michael Amundsen, Paul Litwin, Pages: 458, Published: 2001
MCAD Developing and Implementing Web Applications with Microsoft Visual C#(TM) . NET and Microsoft Visual Studio(R) . NET Exam Cram 2 (Exam Cram 70-315): Exam Cram 2, McAd Exam 70-315 Authors: Kirk Hausman, Amit Kalani, Ed Tittel, Pages: 600, Published: 2003
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005

Web:
ASP.NET Server Control Event Model Those controls therefore already use the client-side OnClick event to invoke ... specify a client-side event in the HTML syntax for a Web server control. ...
Client-Side Functionality in a Server Control The simplest case of client-side functionality is seen when a Web server control renders an event handler for a client-side event through the control's ...
Asp.net server control same event handling order on server-side ... Asp.net server control same event handling order on server-side/client-side ... In this case if the user presses 'No' then the server-side event handler ...
Injecting Client-Side Script from an ASP.NET Server Control ... Client-side HTML attributes provide a way to tie a client-side event with a .... NET server control that simply displays a client-side popup dialog box. ...
Client Script for Server control? Talk about Client Script for Server control? ... add client side events you do it in the code behind with Attributes. ...
CodeProject: ASP.NET Server Control - Updown Control 1. Free ... Net custom server control; Author: Softomatix; Section: User Controls; Chapter: Web ... Anybody can help? if a server control can't provide clientside event ...
15 Seconds : Creating a Server Control for JavaScript Testing A standard control defines the properties, methods, and events that are shared by all ASP. .... Client-Side Functionality in a Server Control ...
The Life and Times of a Server Control As any Server Control which can maintain state and do PostBacks must have a client side HTML "ID" attribute in order to use the JavaScript state and event ...
Modal Dialogs with the wwModalDialog Server Control A wwModalDialog server control actually renders a client side class and in order to ... When assigned these buttons are hooked up to the client side event ...
Removing attributes from a server control before client-side ... Removing attributes from a server control before client-side javascript is registered? Last post 01-15-2006 1:40 PM by riley.. 2 replies. ...












circular reference

getting data from daab

no break

problem with insert and access db

dynamic add in

re-use functions?

database connectivity in asp.net

how to design a webform as a container to display other webs?:)

label right-aligned in html table cell?

virtual directories & visual studio

system.data.sqlclient vs. system.data.sql

how to stop calender control navigation

location of virtual directory's folder

question about a datagrid

how to get the chinese parameter posted by querystring?

when to create controls

windows forms - how to assign password text box value ?

context sensitive help icons

[solved] how do i toggle between two .sitemap with only one sitemapdatasource

problem with javascript

visual studio 2003: bind table to dropdown

using collections in a class

programatically send file to ftp server

poor man ide error

question about blank line problem...

datatable access the values - help

double-precision floating-point numbers

load xml response from aspx page into xdocument

what namespace do i need to "using" to use 'e.item' ??

help! first setup of sql server 2005 asp roles

  Privacy | Contact Us
All Times Are GMT