Hi: It sounds like you do not have a good handle on how the IDE works. OK, so you created a page and in the form element you added a couple of text boxes and a button. Now, you need to get into the Properties Window for that button. Then you can tab around the Properties window until you find the tool bar that has the buttons to view the properties or the events for the button control you are viewing in the Properties Window. you cursor to the events button and click it or hit enter on it. You then get a list of events you can hit enter on, one of them being the Click Event. After you hit enter on the event you want you will be placed into the code behind code, Vb.net or CSharp, for that Click Event. That is where you would code your if statement. You would do an if statement to check the value of the MyButton.Text field and then move whatever you want displayed into the second box into MySecondBox.Text field. Processing will complete after you are done with that subroutine and the response, the updated Texyt Box will be sent back to your Client Internet Explorer? for viewing and further browsing. The key here is to get into the properties window for that button control. You can do it as I described earlier or you can just bring up the Properties window while in the Designer and then tab to the list of conytrols on that page. You can then select the button control from the drop down list, tab back to the Properties table, past it to the tool bar and then cursor to the Events button on that tool bar. I am telling you that building webpages is not as simple, allthough more accessible, than working on a Winforms Application. There is allot of complex concepts like Session State that you need to address once you get past the most simple applications. You should really read some tutorials on the subject if you plan on working in ASP.net. You can get started, perhaps more easily, just using native html and a text Editor like Notepad if you want to do simple things and learn to use html, css and JavaScript to build pages. Using ASP.net is really the next step up and is more of a massive IDE based productivity tool rather than a good learning tool.In fact, 90 percent of what you build in VWD, Visual Studio for the Web, will be automatically converted into native html, css and JavaScript for you before your page is actually run in a browser. There are simple step by step tutorials out there and you should read and walk through them. If you use mine please note that they got a little messed up since they were developed for a single user and taylored on the fly to some things he wanted to explore so they got a little out of sync but all the accessibility, database and UI components as well as binding and some session explanations are valid and worked. Also, there are hot keys that work will for doing things like getting into the Properties Window, Navigating around it and the rest of the IDE and much more about using the VWD IDE with a screen reader.
Later and good luck. Rick USA----- Original Message ----- From: "ishaq muhammad" <sendmailtoishaq@xxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx> Sent: Wednesday, November 24, 2010 5:57 AM Subject: Re: asp.net help required well all, thanks for replying me. I am really new to asp.net and I am not able to understand how to work. For example a I have a page which has two textboxes and a button. I can read the markup html text of the same but how can I write some code behind it if I can not move to its click event? Simply for example if I have to write a conditional statement that if textbox one is blank the user should get a message about it otherwise a greeting should be passed to the name entered in the textbox. what i know, i will not write it in html markup, and it will be written in .cs file only. I know how to do it from c# windows programming but the most biggest problem is how to get the click event of the button here? I already said that I am unable to find these controls on tab, and as suggested by someone I have tried to highlight the text of html code for that controle and then navigated to designer but still I am not placed on the place I want to. Even if I open the file with notepad, only the code for page_load is written there, where is the code for button click, textboxes etc. Please help me how can I do it, its really important for me. Ishaq. On 11/24/10, Varun Khosla <varun.lists@xxxxxxxxx> wrote:
Writing markup by hand is the most accessible to code html in VS. When you are on the designer, press alt_v followed by K to open it. If you have basic understanding of HTMl, you can work with it quite easily. By the way, for javascript stuff, you've to use only markup (no designer for that :-)) As Rick has mentioned, you can use designer to add events, or, because it doesn't work always for me (for unknown reason), I prefer adding events in Page_Init event using the += syntax. If I need to move it into the markup, I simply copy the method name, and add to the control's associated event attribute in the markup. HTH On 11/22/10, RicksPlace <ofbgmail@xxxxxxxxx> wrote:Hi: The designer in the VS, or VWD, IDE is diferent from the one you use when working in CSharp or VB,.net or other file types like xml or sql or even txt. It is not very accessible. For that reason most folks do work with their html and native Form Elements like ListBoxes or TextBoxes etc...in the html Editor. In there you can bring up the ToolBox as you mentionedand drop ASP.net controls or html directly into the Code Editor. You can use Intellisense and you can highlight the first few characters on a llline thenbring up the Designer and then the properties window or any combinition ofthat to get to the Events for that particular control. There are other ways of working on controls you drop into the Code for the page but they are all explained and demonstrated in some tutorials already out there for VWD 2008 and 2005.The process is to add a Webpage to your project, then open the html editorfor the page, drop some controls on the page and set their properties in theproperties window. Then Use any technique to access the events you want toadd to any of those controls and then code the csharp to implement the functionallity you desire. As I mentioned you can be in the either the html editor or the code editor, hit a hot key combinition, I forget it off the top of my head, and have a list of the controls on the page come up in a ListBox. You highlight the control you want to work with, tab to anotherListBox and in that one you have a list of all the possible events for theselected control. Hit enter and that event is added to the Code BehindSubroutuine for that event. That is only one way to do it. You can get ntothe properties window from the designer and then you can tab to a list of events for a selected control and hit enter to do the same. There is anothermethod but I forget it. Anyway, read through the StarTrek Tutorials if you can find them just to get an idea of some of the hot keys and methods thatworked for me while building a couple of Websites. I did them in ASP.net, VWD, and Sql Server Express using VB.net as the language. Rick USA ASP.net IDE Generator and Editor ----- Original Message ----- From: "Jacob Kruger" <jacobk@xxxxxxxxxxxxxx> To: <programmingblind@xxxxxxxxxxxxx> Sent: Monday, November 22, 2010 3:54 AM Subject: Re: asp.net help requiredI would generally work in the page markup, since the intellisense will prompt you with html elements, and markup attributes, etc. and you can mostly also add event attributes like this and then right click there and tell it to go to/generate the code behind etc. - but don't work in this too often, so you might still need to play around with it a bit. Stay well Jacob Kruger Blind Biker Skype: BlindZA '...fate had broken his body, but not his spirit...' ----- Original Message ----- From: "ishaq muhammad" <sendmailtoishaq@xxxxxxxxx> To: <programmingblind@xxxxxxxxxxxxx> Sent: Monday, November 22, 2010 9:34 AM Subject: asp.net help required Hello all, I am a new member of this list. I am 100 percent blind. i was successfully doing some basic application with c# and now I am required to develop a website in asp.net. it’s the first project that i have started developing and I am getting problem. Can someone please tell me how to work with designer window in asp.net? For example, I want to make a simple page with few textboxes and a button. I am able to invoke toolbox by alt+ctrl+x that I was doing in c# windows application as well, but when adding several controls, I am not able to open their code behind windows. In c# windows application, I used to press tab, and jaws used to announce the name of the control, pressing enter on which used to take me in the code window of that control. It’s not happening here. It says nothing when I press tab, shift+tab, enter or any other key in designer window. Even if I press f7 to go in the code window, only the code for page_load is written. I am sure that the controls have been successfully added on the page, because they are visible if I compile and run it on browser. I wonder, where has the code for textboxes, buttons and other control gone? i am so worried, is it not possible for me to work with asp.net? I heard that its doable, how do you do it? I have jaws version 10 with scripts for vs.net, and vs.net 2008. Ishaq. __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind __________ Information from ESET NOD32 Antivirus, version of virus signature database 5637 (20101121) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 5637 (20101121) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind__________ View the list's information and change your settings at //www.freelists.org/list/programmingblind-- Varun __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind
__________ View the list's information and change your settings at //www.freelists.org/list/programmingblind __________View the list's information and change your settings at //www.freelists.org/list/programmingblind