Re: Events not available in aspx.net?

  • From: "Christy Schulte" <christy@xxxxxxxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Mon, 17 May 2010 17:10:34 -0500

  Thanks

  I'd prefer to use the ctrl-f2 method, but for some reason, that list doesn't 
show my button. Really annoying. The convoluted moving to the design window and 
going into properties there does work, though.


  ----- Original Message ----- 
  From: RicksPlace 
  To: programmingblind@xxxxxxxxxxxxx 
  Sent: Monday, May 17, 2010 4:53 PM
  Subject: Re: Events not available in aspx.net?


  Hi: You are right. The Properties Window when brought up from the html editor 
does not have the events button. You can get at it in several other ways. 
First, you can just bring up the Forms Designer, tab to any control or right 
mouse click any control on the form or even just the form itself. Then the 
Properties window will come up and this version has the events button. Now, 
when it comes up you tab to the DropDown box that lists all the objects 
associated with your page. Then you cursor down the list until you see your 
button and hit enter on it to select it. Tab back to the list of properties for 
the button and verify it is now selected. Tab back to the tool bar and right 
cursor to the events button and hit it then select one of the events like the 
click event by hitting enter on it. You will be placed in the code editor 
subroutine for that event. Another method would be to follow one of the prior 
posts about putting your cursor on the opening html tag i think <asp:... for 
the control or even highlighting the first few characters then hitting f7 until 
you get to the forms designer. Then either hit f4 or under the view menu select 
properties. That might automatically select the button and have it selected 
when you open the forms designer to get to the properties window. Another way 
is to hit the ctrl+f2 key combo from within the code editor for the page, I 
think it works from in the html editor as well, then 2 dropdown boxes will come 
up. The first box has a list of all objects associated with the page and you 
cursor to the button. Then tab to the next combo box, cursor to the event for 
the button and hit enter on it. The subroutine stub for the click event, or 
whatever you select, will be added to the code for the page. If anyone has 
another method post it up but I usually use these methods. There is one more 
but I forget off hand and these are the simplest and quickest I know of.
  Rick USA
    ----- Original Message ----- 
    From: Christy Schulte 
    To: programmingblind@xxxxxxxxxxxxx 
    Sent: Monday, May 17, 2010 3:49 PM
    Subject: Events not available in aspx.net?


    Well, I'm making some progress. I've done as some of you have suggested and 
am working in the html editor, not messing with the forms designer at all. 
HOwever, now I've discovered another problem.

    I've added a button to a page, and the button shows up when I run the 
program. I even get a navigation sound when I press enter on the button. 
However, I see no way to select an event to code for it. Placing my cursor on 
the tag and pressing f4 brings me into the property window, but the events tab 
is not active or invisible. Pressing f2 gives me a list of objects like form1, 
window, client script, etc. But none of my controls are in the list, including 
my button which is called btnAdd. Any hints?



------------------------------------------------------------------------------



  No virus found in this incoming message.
  Checked by AVG - www.avg.com 
  Version: 8.5.437 / Virus Database: 271.1.1/2879 - Release Date: 05/17/10 
06:26:00

Other related posts: