473,378 Members | 1,382 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Click event of ext button is not firing

I have an asp.net page.On which i have a link.
When user clicks the link a new ext window opens up. on which a ext button is there.When the user clicks the button it is not working.
Code to call is
Expand|Select|Wrap|Line Numbers
  1. <ext:Button ID="btnAddIconURL" runat="server" Text="Add Icon URL" Icon="Add">
  2.   <DirectEvents>
  3.     <click OnEvent="Save">
  4.     </click>
  5.   </DirectEvents>
  6. </ext:Button>
Save is a function in code behind.
Apr 10 '12 #1
1 3795
Monomachus
127 Expert 100+
As I see in your code, you actually don't need the
Expand|Select|Wrap|Line Numbers
  1. <DirectEvents>
section because you would need it only if you'd need a confirmation popup OnEvent Save.

So what you would need instead is the property OnDirectClick.

Expand|Select|Wrap|Line Numbers
  1. <ext:Button ID="btnAddIconURL" runat="server" Text="Add Icon URL" Icon="Add" OnDirectClick="Save">
I got it all from this demo page.
http://examples.ext.net/#/Events/DirectEvents/Overview/
There is a button Source Code there.
Apr 10 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Andrea Williams | last post by:
I have several buttons in a form. One particular button has the Property 'CauseValidation' set to true the rest are set to false. I also have an event set up on the button. When the button is...
2
by: ~~~ .NET Ed ~~~ | last post by:
I have a problem (don't we all?). I have a web form with multiple modules, some of these modules have an ASP.NET (server run) button. OK, now I have UserControlX which has one such button (say...
2
by: Heather R | last post by:
I am writing a windows service that has a notifyicon component. The component displays accordingly, but for some reason, I cannot get the click or double click event to fire. It seems like none of...
0
by: Demetri | last post by:
I have created a web control that can be rendered as either a linkbutton or a button. It is a ConfirmButton control that allows a developer to force a user to confirm if they intended to click it...
4
by: Winista | last post by:
I have a page with bunch of user controls and standard controls on the page. And then I have a Button control on the page which is used to save the data on server side. All was working fine and...
1
by: guy | last post by:
ASP.NET 2 i have 3 virtually identical pages, each of which has a button. on one page only the click event for the button no longer fires. i have added another button, and also an image button,...
3
by: nejcyt | last post by:
Hello all! I have trouble deleting completely some div elements when using oldDiv.parentNode.removeChild(oldDiv) Actually, the background image of the div element disappears but the click...
6
by: Mel | last post by:
I have a website that allows the user to generate a new quote. When they are finished creating the quote, it brings them to the final page (called the Goodbye.aspx page) which just states the...
0
by: ADN | last post by:
Hi, I am currently extending the GridView control and would like to add a button to the GridView so that it will automatically render one button at the top of the grid. I have a click event for...
1
by: ADN | last post by:
Hi, I am currently extending the GridView control and would like to add a button to the GridView so that it will automatically render one button at the top of the grid. I have a click event for...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.