|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Where are the events of the aspx?When creating a web application the default aspx is Form1.aspx. All the
controls I place on the document have, in the Properties window, the Event button which changes the window to the available events for that control. But how do I get the available events for the Form1, like PreRender? How can I make them visible? Thanks, Doru If you right click the file in the Solution Explorer and select View Code it
will display a window that has two dropdown lists at the top, one to select a Control and one to select an Event that the Control has. This file is the CodeBehind file (it usually ends in .aspx.vb or .aspx.cs depending on what language you are using). You can also double-click a Control (and keep in mind that the Page is a control, so double-clicking anywhere is actually double-clicking on a Control) to open this page and select the default even for the Control you double-clicked (for example, the default event for Page is Load, for Button it is Click, etc.). Hopefully this clears things up for you. Show quoteHide quote "Doru Roman" <doruro***@rogers.com> wrote in message news:O9qPHQoLGHA.2704@TK2MSFTNGP15.phx.gbl... > When creating a web application the default aspx is Form1.aspx. All the > controls I place on the document have, in the Properties window, the Event > button which changes the window to the available events for that control. > But how do I get the available events for the Form1, like PreRender? How > can I make them visible? > Thanks, > Doru >
radiobuttonlist.selectedIndex always -1.........
ASP.NET 2.0 Dropdownlist EnableViewState=false SelectedIndexChange Postback problem with web parts GridView ASP 2.0 HELP: Dynamic updateable checkbox list DropDownList: MaxDropDownItems? What's the 'preferred' way to divide a Web page into sections? Login control and validation Trying to set stored procedure parameter for sqldatasource in formview (edit mode) asp.net control to run in web page like just COM |
|||||||||||||||||||||||