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: 8/5/2003 12:34:19 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 17 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
pjmcb
Asp.Net User
User control help8/5/2003 12:34:19 PM

0/0

I have built a user control that dconsists of a drop-down list, with forward and back buttons, to enable the user to navigate through a large resultset without always having to pull down the drop-down list.

All works well.

However, I would like to add some functionality to this control. Specifically, I would like the user to be able to use the arrow buttons to navigate forward and backward through the list by using the forward and back arrow buttons on their keyboard.

I have a javacript which will allow them to do this. However, I need some help implementing with the following:

1) As it is a user control, I need to know how to access the ID of the forward and back buttons (the buttons on my control, NOT the ones on the keyboard).

2) In order for this script to work, it will need to be defined at the page level, on the body tag. How do I accomplish this through the control?

3) The Body tag of the parent document will almost certainly have other events defined for it (just so you know that there may be some possibility of conflict).

4) The user control may be nested inside another user control before being consumed by a page.

I would appreciate any help anyone can offer in terms of implementing this functionality.

Thanks in advance.


-pjm

I never gave a damn about the meterman until I was the man who had to read the meter.
Andy Smith
Asp.Net User
Re: User control help8/5/2003 8:53:08 PM

0/0

1) myButton.ClientID
2) Page.RegisterClientScriptBlock, .RegisterStartupScript, .RegisterArrayDeclaration
use RegisterClientScriptBlock for the generic script library
use RegisterArrayDeclaration to emit the ClientID's of the buttons
use RegisterStartupScript to emit an Init call into the library.
3) irrelevant with #2
4) irrelevant with #1

pjmcb
Asp.Net User
Re: User control help8/7/2003 8:31:53 PM

0/0

Thanks, Andy.

Oner question, though? How do I associate an event with the BODY onkeypress event? If I have a function in my library (say, myKeyPressFunction), how do I make sure that whenever a key is pressed on the page, it gates called?


-pjm

I never gave a damn about the meterman until I was the man who had to read the meter.
Andy Smith
Asp.Net User
Re: User control help8/8/2003 1:47:04 AM

0/0

register a startup script that does something like this:

document.body.onkeypress = myKeyPressFunction;
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Visual Studio Tools for Office: Using Visual Basic 2005 with Excel, Word, Outlook, and InfoPath Authors: Eric Carter, Eric Lippert, Pages: 992, Published: 2006
Universal Access in HCI: Towards an Information Society for All Authors: Constantine Stephanidis, Pages: 1133, Published: 2001
Online Help Systems: Design and Implementation Authors: Greg Kearsley, Pages: 115, Published: 1988
The Human-computer Interaction Handbook: Fundamentals, Evolving Technologies, and Emerging Applications Authors: Julie A. Jacko, Andrew Sears, Pages: 1277, Published: 2003
Information Technology and Organisational Change Authors: Ken Eason, Pages: 247, Published: 1988
Access 2003 Bible Authors: Cary N. Prague, Michael R. Irwin, Jennifer Reardon, Pages: 1464, Published: 2003
Consuming Public Services Authors: Nicholas Deakin, Anthony Wright, Pages: 222, Published: 1990

Web:
User Control help - GameDev.Net Discussion Forums Gamedev.net is the leading resource for game developers, featuring daily news updates, over 1500 featured articles and tutorials, and the most active game ...
MSDN Windows Presentation Foundation (WPF) XAMLWriter.Save exposes ... Save exposes my usercontrol, help! One easy fix is not to use duplicate name. I tried this suggestion Duy but it doesnt fix my issue. Any more suggestions? ...
User control help - ASP.NET Forums I have a javacript which will allow them to do this. However, I need some help implementing with the following: 1) As it is a user control, ...
access a usercontrol controls from another usercontrol - Dev Shed AddHandler topaneleval.buttonclick, AddressOf toevalcontrol.listener End Sub -- It didn't work. I had complied the codes in both user controls.. Help. ...
cPanel User Manual We recommend that you update your browser to a version that supports frames. To view the Help system without frames click on thishyperlink.
User Control Help - ASP Message Board User Control Help ASP.NET. ... Reload this Page User Control Help ... Make sure you are registering the user control on the ASPX page. ...
trying to get data from user control - HELP! Talk about trying to get data from user control - HELP!
iPhone style UserControl - HELP! - Visual Basic 6 Solutions ... Subject: iPhone style UserControl - HELP! ... I have the very crude beginnings of a usercontrol that is meant to ...
CodeProject: Multiple File Upload User Control. Free source code ... This article describes how to create a file upload user control with events ... But unfortunately i cann't help you as i've not any experience with ASP . ...
Instancing problem with user control - Help Needed Urgently Instancing problem with user control - Help Needed Urgently. microsoft.public.vb .general.discussion. Author. 22 Dec 2006 6:03 AM ...

Videos:
Windows Vista TWEAK - Disable User Account Control Visit http://PCWizKidsTechTalk.com for more tips ===========================================Are you getting UAC User Account Control popups asking yo...
Dj help,Replace the pitch in a technics sl1200 http://www.djtutor.com/repairs http://www.i-dj.co.uk/messageboard/index.php?s=802e100e25b411baf088408c008aec44&act=ST&f=12&t=26363&st=0&#entry173930...
Black and White 2 User Review This is a review of the PC Game: Black & White 2 Find more video product reviews in the Electronics or Video Games categories at www.expotv.com Vid...
How to Turn off/on Access User Control (UAC) - Windows Vista User Account Control (UAC) is a feature in Windows that can help prevent unauthorized changes to your computer. UAC does this by asking you for permi...
Windows XP User Review Windows XP Find more video product reviews in the Computers or Software categories at www.expotv.com Videopinions are Expo TV members showing and t...
Application-Specific Remote Control for the Help Desk http://www.bomgar.com/ - Bomgar enables help desk customers to share specific applications with their remote support rep. At the beginning of the hel...
Developing Win Apps w/ Visual Studio.NET Level 4 The Developing Win Apps w/ Visual Studio.NET Level 4 is part of KeyStone Learning Systems library of more than 1,200 CD-ROM and video-based informati...
How To: OE-Cake Controls I may update this at a later time if i remember good info or find a new control. Slow shader mode: If you are getting bad FPS, set your desktop colo...
Managing Programs, from the Windows Vista First Look Series CBT Nuggets Windows Vista First Look Series Free Video: Managing Programs Note: Google Video currently does not support the full video quality of our...
slideshow fra Gaderummet SUPPORT THE STREET SPACE WITH A COIN Our home- and day care center Gaderummet - sociopsychologically too homeless and outcast young tempted - soge'...




Search This Site:










can't get news_edit to insert rows via stored procedure

personalize once, shared across pages

button click navigation and value retaining in page?

adapting dnn framework for winforms application?

how to find <a ../> link in the master page

could not load type 'mynamespace.global'

dnn 2.12 registration text question

find and replace

<% # %>

retrieving specific line

can i make a class contains xpathdocument serializable? thanks

is it legal or not?

setting up code for smtp connections to dev and prod server

paths on localhost with vs 2005

webpart is not displaying

how do you hide text in skin when the user is not logged in?

dnn case studies... how do you use dnn?

how to maintain data in the class modules with c#

weird!! ajax asp.net web site uses 3 connections!

publishing a master page to make to view all the users of contentlibrary sharepoint

cint() or int32.parse or convert.integer

need help for using inherits

why would you code in c# when vb.net is so much simpler

sending an e-mail

how to secure the password?

delete confirmation messsage - button1.attributes.add()

ajax control extender - no javascript intellisense support

how to host classfields startup on your own server.

reducing required fields on registration process

how to create a class and use it

 
All Times Are GMT