Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
U

User 2970611

@User 2970611
About
Posts
36
Topics
17
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • WCF Service not working with WPF when deployed
    U User 2970611

    Hi I have a WPF Application that uses WCF Web Service to get and set data via. When the application is run in Visual Studio 2010 the application works perfectly, even when I actually install the application on my development machine via my msi it works. However, when I deploy the application on the network it will not work. When I try start the application I get the following error messages: 1) Error 500 internal server error 2) Or I get a timeout error. It says that the address has exceeded the alloted timeout period. I have tried increasing the timeout period, and even the message size, but it has not made any difference. I am completely perplex as to why it working in development, but not when deployed. Does anyone have any idea?

    WCF and WF csharp sysadmin visual-studio wpf wcf

  • How to enable wpf controls through data binding on a selected item from a combo box
    U User 2970611

    I am looking for a way where a control can be enable when an item from a combo box is selected. Is there a simple way through data binding when a user selects an item from a combo box that it then enables another control to be used?

    WPF wpf csharp wcf tutorial question

  • Regular Expression to check for Oracle reserved words and special characters & sql injection attacks
    U User 2970611

    We have already done this, but what we are doing is creating a query tool that runs against a query database that is copy of the main database. The users queries run against some views, because the users can create any number of combination of queries against these views it is not possible to binding or any of the usual stuff. Therefore, we have to be as flexible as possible. We control what they can select on and join on with the views but we cannot control their constraints such "name Like "Bob". Therefore, it is imperative for me to have away of stopping "Bob; 'DROP TABLE'" type situations.

    C# database oracle regex help question

  • Regular Expression to check for Oracle reserved words and special characters & sql injection attacks
    U User 2970611

    It is WPF or windows presentation foundation in c# with an Oracle 10g database not php and mysql

    C# database oracle regex help question

  • Regular Expression to check for Oracle reserved words and special characters & sql injection attacks
    U User 2970611

    We are in a way undertaking a parameterised queries. I am actually building a query tool in wpf and restricting what sort of queries a user can run. All I am trying to do is where a user sets a constraint, such name like = 'Bob', that they cannot enter a reserved word or use it to launch an attack. This is why I am looking for a regular expression!

    C# database oracle regex help question

  • Regular Expression to check for Oracle reserved words and special characters & sql injection attacks
    U User 2970611

    Hi I have searched the internet and I have been able to find a regular expression that stops users from inputting into a text box words that Oracle uses as reserved words, or characters that it considers special to it unless they are enclosed in quotes along with a regular expression that detects sql injection attacks. Can anyone help?

    C# database oracle regex help question

  • How to draw a plus sign and triangles for buttons in WPF?
    U User 2970611

    I am looking to use the shape functionality in WPF in order to apply two triangles one pointing up and the other pointing down along with the plus sign to some buttons. Having a look there doesn't seem to be an easy to do this. Does anyone have an example where this can be easily done? Thank

    WPF tutorial csharp wpf question

  • Problem with DataGrid Rows in WPF
    U User 2970611

    I have a datagrid where I have two buttons on each row - one for moving a row up and one for moving a row down. Each button has a command for allowing the user to move the selected row in either direction. The problem that I am facing is that it not working. I think the problem that I may have is that the other controls (combo boxes) on the rows are bound to data sources through the MVVM model where I am manipulating the rows on the code behind of the XAML thinking this would be the logical place in which to do it. The code I have for one of the buttons is below: private void MoveRowDown(object sender, ExecutedRoutedEventArgs e) { int currentRowIndex = dg1.ItemContainerGenerator.IndexFromContainer(dg1.ItemContainerGenerator.ContainerFromItem(dg1.SelectedItem)); if (currentRowIndex >= 0) { this.GetRow(currentRowIndex + 1).IsSelected = true; } } private DataGridRow GetRow(int index) { DataGridRow row = (DataGridRow)dg1.ItemContainerGenerator.ContainerFromIndex(index); if (row == null) { dg1.UpdateLayout(); dg1.ScrollIntoView(selectedAttributes.Items[index]); row = (DataGridRow)dg1.ItemContainerGenerator.ContainerFromIndex(index); } return row; }

    WPF wpf csharp database architecture help

  • How to keep two Combo Boxes in sync with WPF [modified]
    U User 2970611

    Hi I have a four combo boxes, along with one text box and all 5 controls. The principle is that if the user selects an item from the first combo box, this selected item then gets reflected in the text box and the four other combo boxes. Whilst this action is working, if the user then selects a new item from the first combo box, say the next item down in the list, the new item is not showing in the other controls. The previous item is still there and hasn't been refreshed. Checking the class object, when first used, the object is being set with the value, but when selecting a new value from the combo box, this new value is not being passed on or up dates the object. I am using INotifyPropertyChanged! I have set IsSyncronizeWithCurrentItem ="true" on all of the combo boxes, but this isn't working. How do you very simply, keep all these controls in sync? Code is being built using MVVM design pattern.

    modified on Monday, June 27, 2011 3:53 PM

    WPF wpf architecture csharp design regex

  • How to delete a row from a datagrid based upon a value from another in WPF
    U User 2970611

    How would this work in MVVM? As the application has been built using this design pattern.

    WPF csharp wpf architecture design regex

  • How to delete a row from a datagrid based upon a value from another in WPF
    U User 2970611

    How would this work in MVVM? As the application has been built using this design pattern.

    WPF csharp wpf architecture design regex

  • How to delete a row from a datagrid based upon a value from another in WPF
    U User 2970611

    I am new to WPF, but I would like to know if someone can show me how to delete a row in one datagrid based upon a selection from another. The application uses C# and MVVM design pattern. Can anyone help? Thanks

    WPF csharp wpf architecture design regex

  • Problem with WPF and removing a row from a datagrid
    U User 2970611

    I am very new to WPF and I have taken over a WPF project from someone else. Problem I have is removing a rows from two datagrids. To expand on this, the UI works as follows; there are 3 datagrid; the first column (a Combobox) on each of the three datagrids are bound to the same data source. However, the columns on the other two datagrids (also comboboxes) their values depends upon whatever the user selects as their selected item in the first combobox, and this works in the viewmodel layer. All of this works fine, but problem comes with removing rows. The issue I have is this, if I remove a row in the first datagrid, and lets say this row has the value of "X", this gets deleted. If this value appears in a row in other two datagrids, the column in the other two datagrids gets removed but not the row themselves. So, my question is, how do remove a row or rows from a datagrid based upon a value from another datagrid? Thanks

    WPF help question csharp wpf design

  • Problem with Web Services Performance on IIS 6
    U User 2970611

    Hi I have a problem with WCF Web Services on IIS 6, where on start of the IIS web server following either a IIS reset, or start of the server itself, the performance of calling a web service is poor on first call. Whilst I know from googling this is a common problem, and it is recommended to use a console application to call a method on the web service method before users start using it. This I have done, but when I open the web application and then call a web service method via the web application it still took 14 seconds. When I closed the browser, and did it again, the call took 5 seconds, and subsequent calls via the same browser window took a second. Why I am still getting a delay when calling the web service for the first time via the application? Is there a way to speed this up? I some more questions relating to WCF Perforamce: 1. Does disabling NetBios over TCP create any security vunerabilities? 2. Using application pool recycling on the website holding web services does this hold any old data when the process is recycled? 3. What is the correct way of setting up application pool recycling on IIS 6 on the website holding web services which used on a web farm with a load balancer? Thanks for your help in advance

    WCF and WF wcf performance help question csharp

  • How do you speed up WCF on first call?
    U User 2970611

    Hi I have a WCF Web Service that takes up to 54 Seconds to respond on first call. Looking at the article on Code Project, I have switched off NetBois, and carried out other suggestions in the article, but I am still experiencing the same times. Any suggestions, anyone? Thanks

    WCF and WF csharp wcf performance question

  • Problem with Service Trace Viewer
    U User 2970611

    Hi I am debugging a web service problem, i.e. my web service is slow at first and faster there afterwards, however, I am having trouble getting logs that can be generated using MS Service Trace Viewer. Now I know that the mark up I have added to app.config is working because I have run this in a dummy application in Visual Studio, but when I add the markup to the app.config and then run the application through the browser I don't see any log in the C:/Drive. Can anyone please advise me how I can solve this? Is there another attribute I need to add to listener for adding a filepath? Thanks

    WCF and WF csharp html visual-studio debugging help

  • Problem with Web Server Performance
    U User 2970611

    Hi I have a Active X Control that calls a C# Com Server, which itself makes Web Service calls. The code itself is fine and data comes back without error. However, when the browser is opened for the first time as a new session and the user navigates to the page where the Active X is the performance is shockingly slow. Running in debug mode, the opening of the Active X is quick but when it reaches the code to call the COM Server and then executes this line of code it takes 23 seconds for the data to come back. This problem only every happens when opening a new browser window/session. If you use the same window and call the Active X again, then the code only takes a few seconds. So, my question is whether there is any way of instantiating the objects needed for web service calls right at the point when the page is first loaded where the Active X is found rather than instantiating when the call is made via the Active X? Is this possible? Or is there another way of speeding things up?

    WCF and WF help question csharp com sysadmin

  • How correctly set User Properties to MS Outlook Mail Item in MFC
    U User 2970611

    Hi I have tried your suggestion and that did work! However, because one of parameters is a bool what is the correct syntax for passing a bool? Would it be COleVariantBool varOptionalBool (VT_TRUE, VT_ERROR); ? Further, when the line for saving the properties is called InvokeHelper(0xf048, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); It gives an unhandled exception again. Looking at the MS Office VBA for this, properties don't save method, and it appears to me that when you add and set the properties this carries out the saving. Have I got this wrong? Is there something else I need to do? Thanks

    C / C++ / MFC help com question c++

  • How correctly set User Properties to MS Outlook Mail Item in MFC
    U User 2970611

    No, I think - tatic BYTE params[] = VTS_BSTR VTS_I4 VTS_VARIANT VTS_VARIANT; is correct because I have seen this in http://repositorium.googlecode.com/svn/trunk/AbstractSpoon/OutlookImpExp/Source/msoutl.cpp What should CString be?

    C / C++ / MFC help com question c++

  • How correctly set User Properties to MS Outlook Mail Item in MFC
    U User 2970611

    Hi I have a problem with an MFC Project that opens an email template, and sets some user properties on the mail item. The code I have been given with is as follows: SetProperties() { LPDISPATCH userProps; outlookmailitem->InvokeHelper(0xf816, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&userProps, NULL); COleDispatchDriver* outlookUser = new COleDispatchDriver(userProps); LPDISPATCH userProp1; static BYTE params[] = VTS_BSTR VTS_I4 VTS_VARIANT VTS_VARIANT; CString propertyName = _T("Email Marking"); outlookUser->InvokeHelper(0x66, DISPATCH_METHOD, VT_DISPATCH, (void*)&userProp1, params, propertyName, 1); //falls here! COleDispatchDriver* outlookUserProp = new COleDispatchDriver(userProp1); static BYTE params2[] = VTS_VARIANT; VARIANT va1; va1.vt = VT_BSTR; va1.bstrVal = emailMarking.AllocSysString(); outlookUserProp->InvokeHelper(0x0, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, params2, &va1); delete(outlookUserProp); Where I have added "//falls here!" is where it fails, and I think this is parameter issue, again. I cannot tell you what the error message I am getting because all that VS2010 is giving me is unhandled exception. Looking at MSDN for VBA - http://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook.userproperties.add.aspx#Y19 - it is final two parameters to me that Outlook is expecting, add to folders and display format. What I am trying to achieve is to ensure that the add to folder is set to false, and for the final one, I would like to set this to text if possible. How can set theses in MFC? What is the correct syntax? Do they need to set in this way or could Outlook set theses with the parameters being passed? Thanks

    C / C++ / MFC help com question c++
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups