Thanks
>> If its not the special case why dont you use just <table><tr><td> .? Not sure what you mean here. Regards Peter Maddin Applications Development Officer PathWest Laboratory Medicine WA Phone : +618 6396 4285 (Monday, Wednesday,Friday) Phone : +618 9346 4372 (Tuesday, Thursday) Mobile: 0423 540 825 E-Mail : [email protected]; [email protected] The contents of this e-mail transmission outside of the WAGHS network are intended solely for the named recipient's), may be confidential, and may be privileged or otherwise protected from disclosure in the public interest. The use, reproduction, disclosure or distribution of the contents of this e-mail transmission by any person other than the named recipient(s) is prohibited. If you are not a named recipient please notify the sender immediately. From: [email protected] [mailto:[email protected]] On Behalf Of Muhammad Niaz Rana Sent: Wednesday, 11 April 2012 7:46 PM To: ozDotNet Subject: Re: Control events in ContentPlaceHolder Peter, you are right this is designer issue, First of all if you want to wireup event for OnClientClick, there will no dropdown even in VS 2010, there will be just textbox to enter client side method of JS. If its not the special case why dont you use just <table><tr><td> .? Resharper can help you lot. Regards, -MN On Wed, Apr 11, 2012 at 3:40 PM, Peter Maddin <[email protected]> wrote: Thanks for the reply. I am using the content not the master page. I moved the button out from the table and could then select and double click on it to generate my event handler. I then cut and pasted it back into the table. I am pretty rusty with asp.net, but this seems a little silly to have to do this to get things to be recognized in the designer. Regards Peter Maddin Applications Development Officer PathWest Laboratory Medicine WA Phone : +618 6396 4285 <tel:%2B618%206396%204285> (Monday, Wednesday,Friday) Phone : +618 9346 4372 <tel:%2B618%209346%204372> (Tuesday, Thursday) Mobile: 0423 540 825 E-Mail : [email protected]; [email protected] The contents of this e-mail transmission outside of the WAGHS network are intended solely for the named recipient's), may be confidential, and may be privileged or otherwise protected from disclosure in the public interest. The use, reproduction, disclosure or distribution of the contents of this e-mail transmission by any person other than the named recipient(s) is prohibited. If you are not a named recipient please notify the sender immediately. From: [email protected] [mailto:[email protected]] On Behalf Of David Loo Sent: Wednesday, 11 April 2012 4:54 PM To: [email protected] Subject: RE: Control events in ContentPlaceHolder Hi Peter, Are you trying to access the properties of that control from the master page or the inherited page from the master? David Loo MCPD, MCTS, MCP http://www.davidloo.com (m) 0405132886 _____ From: [email protected] To: [email protected] Subject: Control events in ContentPlaceHolder Date: Wed, 11 Apr 2012 16:28:16 +0800 I am using a web form using a master page. I have a couple of tables containing controls. However in the designer I cannot get to the individual controls only container controls. I have to go to the html source and click on a control in the html source to get to its properties. How do I assign an event handler to something as simple as a button (I know the most obvious answer is move up to asp.net mvc4 but please bear with me here, I need to walk before I run) With the really old asp.net everything was so simple (and limited). If I have <asp:TableCell runat="server" Width="10%"> <asp:Button ID="btnDemographicSearch" runat="server" Text="Search" /> </asp:TableCell> I seem to have to wire up everything manually. I do get an OnClientClick property but its just empty. No drop down list to select an existing event handler. Double clicking does not generate an event handler stub. Seems to have gone backwards (at least to my simple way of thinking) Regards Peter Maddin Applications Development Officer PathWest Laboratory Medicine WA Phone : +618 6396 4285 <tel:%2B618%206396%204285> (Monday, Wednesday,Friday) Phone : +618 9346 4372 <tel:%2B618%209346%204372> (Tuesday, Thursday) Mobile: 0423 540 825 E-Mail : [email protected]; [email protected] The contents of this e-mail transmission outside of the WAGHS network are intended solely for the named recipient's), may be confidential, and may be privileged or otherwise protected from disclosure in the public interest. The use, reproduction, disclosure or distribution of the contents of this e-mail transmission by any person other than the named recipient(s) is prohibited. If you are not a named recipient please notify the sender immediately. -- Regards, Muhammad Niaz
