How would I make a custom control's button's onclick event public?

I'd like to do something programatically in the parent class once a custom control's button is clicked.

Anyone has a link to a tutorial?

3/5/2008 1:07:22 PM 93655 articles. 6 followers. Follow

4 Replies

Similar Articles

[PageSpeed] 59

3/5/2008 1:39:26 PM

thanks but I'm looking for a tutorial for since I'm not too sure how the intricacies of change or simplify that example 

3/5/2008 1:51:54 PM

Thanks, Ed

Microsoft MVP - ASP/ASP.NET

3/5/2008 1:56:48 PM

thanks a lot

I feel mildly dumb now Big Smile

3/6/2008 7:53:33 AM

Similar Artilces:

Modal popup's target control's onclick event does not work :(
Hi all,I am searching for 2 days but I did not find a solution for this.I have a gridview and there are an imagebutton, an animation extender and a modal popup control in it's item template.  Imagebutton is modal popup's and animation extender's targetControl, I want to show modalpopup with animations when user click the imagebutton, it works great until here, but when I want to also run some code in codebehind when user click the imagebutton it is not working, it does not run any code in the onclick event's block.How can I do this can u help me ? 1) Create a dum...

Label control's text doesn't appear to be set (in the page which has a user control )when trying to update the text property in the FormView's ItemUpdated event
Hi There,I have a user control which hosts a formview control, gridview control and a label control. The grid view is usedto show rows in the DB and when clicked to edit each row, a form view opens up in edit mode with that particular row info. So I have nothing in the item template.My first question it mandatory to have smth in the itemtemplate of the form view.I have controls in edititemtemplate and insertitemtemplate.When a particular row is edited, I would like to show a status msg showing that the row has been updated.For this, I use the ItemUpdated event of the formview and try ...

Replace 1's and 0's in a gridview column with Yes's and No's
Is it possible to change the display of a column in a gridview to show a Yes for all 1's and a No for 0's that display in a particular column of a gridview bound to a database?  If so, can someone share the way with me?  I am using ASP.NET 2.0 with VB Code Behind.  Thanks One way you can do is thrrough  CASE in your select statement: Select YesNoColumn= CASE yourColumn WHEN 1 THEN 'Yes' WHEN 0 THEN 'No' ELSE '' END FROM YourtableLimno <Columns>     <asp:TemplateField HeaderText="yourHeader" SortExpression="yourDataField"> ...

It's Linux !? No, it's BSD ! No, no, it's...
kFreeBSD a Debian distro using the FreeBSD kernel ! ObiWan wrote: > kFreeBSD > > > > a Debian distro using the FreeBSD kernel ! Why use a BSD kernel? I hope the reason is more than, just because they can. It's easy to understand why the would want to use Debian packages. :) -- Jimmy Johnson Registered Linux User #380263 >> kFreeBSD >> >> >> ...

how to control a RadioButtonList's Listitem's text show according database's field
Hi my page has a repeater control,in repeater has a RadioButtonList control now i want to let the RadioButtonList has four Listitem,every Listitem's text is a database's field so the listitem can show dynamic according every record how can i work out my problem thanks a lot  hello dearbound your RadioButtonList to database if i m not clear fell free 4 replySatyabrat SinghB.E.(C.Sc.)Web developer Livetek Solution Dont forget to click "Mark as Answer" on the post that helped you. yes.i bound the radiobuttonlist to a dataset but how to display the ...

Help! I cannot access the DataGrid's ItemTemplate's LinkButton's Text Atrribute 's Value!!!!!!!!!!!
I write a datagrid's ItemDataBound method as follows:   private void dgTable_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)  {   if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)   {    if(!isRole("Manager"))    {     LinkButton tmp = (LinkButton)e.Item.FindControl("lbPassed");     if(tmp.Text == "Passed")     {      ((LinkBu...

Hyperlink's, ImageURL's, and OnError's
I created an ASP:Hyperlink and set the ImageURL attribute so the link will be the image.If the image is missing, I would like it to display a 'missing image' pic that I have.  I know you can use the OnError attribute of the <img> tag to run some javascript to change it.Unfortunately I can't find a way to access the Hyperlink's Image that is inside it, so I can add an Attribute so the resulting <img> tag will have an OnError attribute inside of it.Any help?If my Hyperlink is called 'foo'....would I do...  ((Image) foo.Controls[0]).Attributes.Add(&...

how to let ButtonColumn control button's visible's property in DataGrid
Hi I has a ButtonColumn in a DataGrid,and a button in the page, In the page_load() event i wrote: if (Not IsPostBack) then   button1.visible=false end if and the ButtonColumn CommandName="delete" in the DataGrid1_delete() event i wrote   button1.visible=true But when i press the "delete" ButtonColumn ,the button1 can not be visible,i don;t why How can when i press "delete" ButtonColumn,the Button1 can be visible Thanks a lot.       yugiant:How can when i press "delete" ButtonColumn,the Button1 can be visibl...

button's onclick event doesn't fire
in one page, there are many formviews, in one of those formviews, one button in edittemplate, when i click on that button , onclick event of button doesnot fire, i can not find what s the problem, plz help me thanks VISHAL PAREKHVISHAL PAREKH are you using asp buttons or html??  thanks jomish asp button , and one more thing is except this formview's button, all other buttons of other formview's works perfect VISHAL PAREKHVISHAL PAREKH Hey Vishal, 1st you have to find button inside formview, using findcontrol propery of formview.Anuj Patel~~~~~~~~~~~~~~...

It's *NOT* public ... but ... it's working!
Gang... The damn thing works! <grin> I have my system setup with just ONE resolver: []. With the new network collapse logic DISABLED, as expected about 500 "resolvers" are found... and the thing takes forever to run. With the new network collapse logic ENABLED, It finds just 2 "resolvers" in exactly five "rounds". It reports '2' after the first round, then four rounds of '0' new resolvers found, then the test completes. The "2" resolvers it finds, in the case of the Level3 network, are located in im...

DataSet's DataTable's and TableAdapter's Oh My!
Here is my situation.  I am using VB as my programming language.I am creating a part of a website that will be the admin section.  I want the admin to be able to add/edit data in a set of tables that normal users can't.  There are 20 lookup tables that I use in the website that I want the admin to be able to manage (i.e. add, edit, delete, insert).  I don't want to create 20 separate web pages (one for each table).  I have one page that has links to all the tables.  Each link has a "table" querystring variable associated with it.  When the...

Guru's..?? Any do's and/or dont's for Zfd4 and Citrix..?
We've got a nw6/sp5 network with GW 6.5, bm3.7 and zfd 4.01 up'n'running.. Now we're adding a citrix server ( win2003) to the mix, will supply a couple off app's to users over the internal VPN in another city. Probably we'll skip the AD phase since we can not see any app and/or user with the need for AD. So,, any special considorations..? tip's'tricks..? known issues...? t.i.a... On Mon, 16 Aug 2004 15:57:10 GMT, Emerson wrote: > So,, any special considorations..? tip's'tricks..? known issues...? biggest one... zfd4.x d...

Who's show is SN? Steve's or Leo's?
I don't want to start anything (honestly)! Just want to ask a simple question. Does the Security Now podcast belong to Steve Gibson or Leo Laporte? Maybe I'm in a world all to myself, but when I listen to the excellent SN podcasts, I want to hear STEVE, not Leo. But especially in the past few shows, it seems Leo will repeatedly interrupt Steve in the middle of a sentence that I want to hear the rest of. I consider this very rude of Leo. Steve is making a point that I (we) want to hear, then looses his train of thought after Leo barges in and asks something. It...

How to set a Master Page's control's property through content page on a postback event?
Hi all, i m using a master page in my application. i have a panel on master page and a tab container with three tab panels on content page. i want to set/change  the visibility of the panel control when the tab is changed on the content page. By default the panel is invisible. To implement this i executed the following steps: 1. Set AutoPostBack of tacontainer to true 2. Wrote an event handler for ActiveTabIndexChanged event of the tab container 3 Wrote the following code on Tab changed event   if (TabContainerEmpPerformance.ActiveTabIndex == 1) { ...

Web resources about - How would I make a custom control's button's onclick event public? -

Resources last updated: 12/28/2015 5:20:36 AM