triggers

set button datacontext to multiple elements

I've got a button that I need to be disabled when validation errors occur in my window. The items on which these errors can occur are all textboxes. I've bound my Button's datacontext as such: DataContext="{Binding ElementName=txtEmail}" Now with this, I can set the button style to disabled when validation errors occur in the email...

jQuery, Forms, Browser Refreshes

I have a large form with some fields values dependent on previous elements. I use jquery's .trigger event to trigger the dependent field's update functions. When I refresh the page (click reload or click back), the previous values selected are still there, but the dependent fields are not reflecting the other element's values. How can I ...

Jquery event triggering twice for no reason

I'm having a problem with a simple form where i'm attempting to fire an ajax request when someone types something. After debugging I'm left with an alert when the event is fired but it shows up twice, irrespective of the browser. (Ignore the 'rel' attribute in the input tags, that's for something else, unless you think its the rel attrib...

WPF ComboBox ControlTemplate Background IsMouseOver

I have the following style defined which is being applied (as text changes to red) but I cannot seem to get the Background property to work. Can anyone tell me what is wrong with this? <Style x:Key="CompanyComboItemContainerStyle" TargetType="ComboBoxItem"> <Setter Property="SnapsToDevicePixels" Value="true"/> <Sette...

SQL Server 2005 triggers

I created a trigger on a table for updates. If any update happens, I want to store the old value in separate table. I am trying to get the old value from "inserted" table, but this table is not populated with old values after update. Here is the sample code: CREATE TRIGGER [dbo].[Logs_Update] ON [dbo].[Logs] AFTER UPDATE AS DE...

WPF Style Triggers: can I apply the one style for a variety of Properties?

It seems like there has to be a way to do this: I am applying an ItemContainerStyle in my Listbox, based on two property triggers. As you can see, I'm using the exact same set of trigger enter/exit actions, simply applied on two different properties. Is there something equivalent to a <Trigger Property="prop1" OR Property="prop2"> ???...

what is the difference between triggers, assertions and checks (in database)

Can anybody explain (or suggest a site or paper) the exact difference between triggers, assertions and checks, and also describe where I should use them? EDIT: I mean in database, not in any other system or language. ...

Silverlight 4.0: MultiDataTrigger

Is there a way just like multidatatrigger behavior of WPF also implemented in Silverlight 4.0? OR Another workaround which behaves like multidatatrigger? ...

jQuery , Trigger change event on newly created elements

Hi Guys, I have a button in a form that when clicked adds another set of form fields, In these form fields there are 2 drop downs where the contents of the 2nd dropdown rely on what is selected in the first dropdown... What i want to do is when the new form field button is clicked for the new items to be added and then the change eve...

Database triggers / referential integrity and in-memory caching

Do you see database triggers / referential integrity rules being used in a way that changes actual data in the database (changing row w in table x causes a change in row y in table z)? If yes, How does this tie-in with the increasing popularity of in-memory caching (memcache and friends)? After all, these actions occur inside the databa...

avoid update panel trigger by child control

Hi, By default the postback of child controls will trigger update panels' update. How can I avoid the same? Thanks in advance ! ...

How to trigger on bound item in WPF?

I want to activate a trigger if the bound items property ID is equal to a property in my custom control. But i can't use bindings in my triggers! How would i do this? ...

How to automatically reflect the new Updates (on Database) to User Pages

I am trying to create a new Notice Alert using PHP and Javascript. Suppose that a 100 users are currently logged into to the Online Notice Board Application and any One user posts a new notice. I want an immediate alert signal on all the users screen. I know, that the simplest way of doing it is to constantly Ping the server but I don't...

Can you create a trigger on a field within a table?

Is it possible to create a trigger on a field within a table being updated? So if I have: TableA Field1 Field2 .... I want to update a certain value when Field1 is changed. In this instance, I want to update Field2 when Field1 is updated, but don't want to have that change cause another trigger invocation, etc... ...

jQuery: Triggering a click on an img not working

I'm testing in Chrome. I have a bunch of 'add item' icons on screen that the user can click in order to add that one item to the database. I also have a button at the botton of that list, which should add the whole list of items. It seems to me that the easiest way to do this is to trigger the 'click' event for all these icons (the re...

C# How can I trigger an event at a specific time of day?

Hello everybody. I'm working on a program that will need to delete a folder (and then re-instantiate it) at a certain hour of the day, and this hour will be given by the user. The hour will most likely be during the night, because that's when nobody is accessing the folder (it's outside working hours). Is there a way to trigger that ev...

Java framework "suggestion" for persisting the results from an Oracle 9i stored procedure using Apache Tomcat

I am developing a Java servlet which calls an Oracle stored procedure. The stored procedure is likely to "grow" over time, and I have concerns the amount of time taken to "display the results on a web page". While I am at the implementation stage, I would like some suggestions of a Persistence framework which will work on Apache Tomcat...

How to exclude tags folder from triggering build in Teamcity?

Hello, I recently installed Teamcity 5.0.3. I am trying to setup automated build for a .NET 2.0 VS2005 project. I use NAnt and MSBuild task to perform the build. The project structure is a typical SVN structure svn://localhost/ITools is my repository and the project structure is VisualTrack trunk branches tags I created a new ...

Multiple rows update trigger

If I have a statement that updates multiple rows, only the trigger will fire only on the first or last row that is being updated (not sure which one). I need to make a trigger that fires for ALL the records that are being updated into a particular table ...

Using OUTPUT/INTO within instead of insert trigger invalidates 'inserted' table

I have a problem using a table with an instead of insert trigger. The table I created contains an identity column. I need to use an instead of insert trigger on this table. I also need to see the value of the newly inserted identity from within my trigger which requires the use of OUTPUT/INTO within the trigger. The problem is then t...