Hi, I look like to call mongoose API from C# https://code.google.com/p/mongoose/[^]. Could anyone help me in creating an interop or pointing me to an existing one Thanks in Advance
Tiger456
Posts
-
Calling mongoose API from .NET -
Stored Procedure to find emailsShameel, Simple join will not work here. I need the output based on logic mentioned. It a priority based search. I am looking for best and optimized way to do it.
-
Stored Procedure to find emailsPriority ways email finding I have following tables in project Customer => Customer details => Coloums are Customer Name, Customer Type (Gold, Silver, Platinum) Contact => Can have multiple contacts to a customer => Coloums are Customer Id, Name, email, Designation (D1 to D10). we need to create an SP (MS SQL 2005 ) which returns priority 1 and priority 2 emails of customer (Customer Id will be passed as input) based on following criteria . When Customer Type is "Gold" Customer, choose email based on following Designation 1. D1, D3, 2 D4, D6 3, D5, D7, D8
Logic :
a). if D1 exist select D1 and move to set 2,
D1 NOT exist select D3 and Move to set 2
D3 NOT exist move to set 2
b) if D4 exist select D4 and move to set 3,
D4 NOT exist select D6 and Move to set 3
D6 NOT exist move to set 3
Note : if we got an email in first step and this step retun two emails. No need to iterate step 3
c) reapeat above logic with step 3 designations sequentiallyContinue searching until we get 2 mails.
For "Silver" Customer choose email based on following designation 1. D1, D2, 2 D6, D7 3, D8, D9, D10 For "Platinum" Customer choose email based on following designation 1. D1, D2, 2 D8, D9 3, D3, D4, D10 I am not sure i explained logic very well. Is there any algorith for this type of logic.
-
Linq in 3.0 FrameworkSo with .NET Framework 2.0 its not possible ?
-
Linq in 3.0 FrameworkThanks for the response. But using this method will force the client machine to have .NET 3.5 Framework to run appication right ?
-
Linq in 3.0 FrameworkIn my smart client application (3.0 Framework) i would like to use Linq. Whe i tried below code.
string[] names = { "Burke", "Connor", "Frank",
"Everett", "Albert", "George",
"Harris", "David" };IEnumerable<string> expr = from s in names where s.Length == 5 orderby s select s.ToUpper(); foreach (string item in expr) { Console.WriteLine(item); }
This code is throwing an error message
Could not find an implementation of the query pattern for source type 'string[]'. 'Where' not found. Are you missing a reference to 'System.Core.dll' or a using directive for 'System.Linq'?
i have used System.Linq directive in code but unable to add 'System.Core.dll' becuse as it disable. As per the requirement we need to stick on with 3.0 Framework. Any other way to do it. -
Creating an Enterprise level project with Asp.net MVCAs i am new to MVC, I would like to have expert opinion on following questions 1. Is it a good idea to develop an Enterprise level application with Asp.net MVC 3 (yes will use the latest ). 2. What should be the architecture for the projects. What will be the diffrent type of modules. Type of data passed between them etc.. 3. Is there any such open source project that we can reference/follow to build our projects 4. Which are the best open source modules available that we can use to make things easy. Thanks in advance.
-
Regarding MVC ViewHi Mark, Thanks for your reply. I just stepped into MVC 1 day before for a project that needs quick completion. In the mean time i am trying to learn it in-depth. Yes i am little bit confused on the approach on Radio button list scenario in MVC not on how view and controller works. I like the approach in below link. http://robtennyson.us/post/2009/03/08/ASPNET-MVC-Default-Model-Binder-with-Lists.aspx[^] But haven't had got a clear idea on gathered these information on a jquery(on button click) and pass to controller as ajax call. In the controller Add newly selected item .. and delete old item View -- JQuery -- Controller Hope you got my scenario
-
Regarding MVC ViewHi, As i am newbie to asp.net mvc i would like to know the best practices to solve below scenario. In a user profile page i have list of interest. These data is populated from "Interest" table. Which should be displayed as below. Name : [ Text box ] ....
Interest:
Interest 1 O Yes O NO
Interest 2 O Yes O NO
Interest 3 O Yes O NO
Interest 4 O Yes O NO..... Where Yes/No is option button, Where user can select interest. While submitting these values need to be stored in "User_Interest" table. where values in other controls are stored values in "User" table. Technologies using : MVC,Jquery, Linq My Questions are: 1. How to use same view for Create/Edit 2. How to identify and save selected interests 3. How to set previously selected Interest while editing. 4. best way to create view model. If you can point me similar examples that would be great. Thanks in advance
-
WCF Deployment IssueHi, We have created a wcf service that runs on https. It works pretty cool on devlopment and test server. When we configured the service on production (https enabled) there was issue in generating wsdl because its using the machine name rather than the domain . we fixed the issue using the soloution found here http://gavinmckay.wordpress.com/2009/03/24/howto-fix-wcf-host-name-on-iis/[^] But now the url name is fixed. On clicking the
"https://something.com/Service.svc?wsdl"
is showing the same content on"https://something.com/Service.svc"
page not the wsdl. on runningsvcutil.exe https://something.com/Service.svc
is showing below errorDiscovering https://something.com/Service.svc System.InvalidOperationException: The document at the url https://something.com/Service.svc was not recognized as a known document type. The error message from each known type may help you fix the problem: - Report from 'DISCO Document' is 'Discovery document at the URL https://something.com/Service.svc?disco could not be found.'. - The document format is not recognized. - Report from 'https://something.com/Service.svc' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'. - Report from 'WSDL Document' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'. - Report from 'XML Schema' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'. at System.Web.Services.Discovery.DiscoveryClientProtocol.DiscoverAny(String url) Report from 'https://something.com/Service.svc' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'. - Report from 'WSDL Document' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'. - Report from 'XML Schema' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'. at System.Web.Services.Discovery.DiscoveryClientProtocol.DiscoverAny(String url) at WcfStorm.DynamicProxy.ServiceClientProxyFactory.(Option`1 ) at WcfStorm.DynamicProxy.ServiceClientProxyFactory.DiscoverEndpoint(Option`1 cfgOption) at WcfStorm.Model.WcfServiceModel.(ServiceClientProxyFactory ) at WcfStorm.Lib.Common.BgWorker`2.O
-
Active directory Group Enabled or NotHow to get the List of groups in active directory and check its Enabled or not
-
GET enabled WCF serviceHi, How to access a WCF service using GET method and POST XML data. Its would be great if you can get solutions to the below steps. 1. Accessing a Webservice using URL. 2. There should be a method in the service which accept xml data send using POST method 3. Retrive XML method send from client 4. Return back a result XML in response stream XML Data / POST Client ==================> Server <================= Retuns XML data back 5. What would be the signature for the method as the data is send as XML 6. Accessing URL should be in the Form http://something.com/MyService/ Thanks in Advance
-
Route Flash Event to WPF CodeHi We have a WPF application which runs on kiosk. On idle time (when no customer at kiosk) kiosk will a play flash. There is button at the right bottom of flash. When the user click on that button We need to map/route this button click event to a method in WPF page in which the flash is playing. Way we have designed forms for playing flash: First we placed a
WebBrowser
control inside a "UserControl
" which inherits fromSystem.Windows.Forms
namespace. In runtime a flash file is assigned to this control and loaded into a "WindowsFormsHost
" control placed inside anXAML
page Thanks in Advance -
IDWedge ID Scanner Reading Sample applicationhttp://www.tokenworks.com/products/IDWedge.htm[^] Hi is there any sample application in .NET is present to read card swipe information from these devices. i thinks this device works as keyboard buffered magnetic swipe reader. It would be great if any one can help
-
Win32 Printing Status CheckI am using below code to check printing status but it always returns 0. It would be great if you can help me . i think there is some problem in the way i am using GetPrinter method
[DllImport("winspool.Drv", EntryPoint = "OpenPrinterA", SetLastError = true, CharSet = CharSet.Ansi, ExactSpelling = true, CallingConvention = CallingConvention.StdCall)]
private static extern bool OpenPrinter([MarshalAs(UnmanagedType.LPStr)] string szPrinter, out IntPtr hPrinter, Int32 pDefault);/// <summary> /// Close Win32 printer /// </summary> /// <param name="printer"></param> /// <returns></returns> \[DllImport("winspool.Drv", EntryPoint = "ClosePrinter", SetLastError = true, ExactSpelling = true, CallingConvention = CallingConvention.StdCall)\] public static extern bool ClosePrinter(IntPtr printer); \[DllImport("winspool.Drv", EntryPoint = "GetPrinterDataA", CharSet = CharSet.Unicode, SetLastError = true, ExactSpelling = true)\] public static extern uint GetPrinterData( \[In\] IntPtr hPrinter, \[In, MarshalAs(UnmanagedType.LPWStr)\] string pValueName, \[Out, Optional\] uint pType, \[Out, Optional\] IntPtr pData, uint nSize, \[Out\] uint pcbNeeded ); \[DllImport("winspool.Drv", EntryPoint = "GetPrinterA", SetLastError = true, ExactSpelling = true, CallingConvention = CallingConvention.StdCall)\] public static extern bool GetPrinter( IntPtr hPrinter, int dwLevel /\* changed type from Int32 \*/, IntPtr pPrinter, int dwBuf /\* chagned from Int32\*/, out int dwNeeded /\* changed from Int32\*/ );
[StructLayout(LayoutKind.Sequ
ential)]
internal struct PRINTER_INFO
{
public IntPtr pServerName;
public IntPtr pPrinterName;
public In -
How to do Constructor Overloading in WCF Service classThanks for your reply. i want to add this to an existing code. just adding it to constructor. Could you help me to copy the only needed code and copy update my code. I haven't got the exact idea of the above one ..
-
How to do Constructor Overloading in WCF Service classIs there any way to call overloaded constructor in WCF. This is the way i did it . 1. Created an overloaded constructor in service
[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession, ConcurrencyMode = ConcurrencyMode.Multiple)]
public class CustomerService : ICustomerService
{
private string _UserName = string.Empty;public CustomerService (string userName) { \_UserName = userName; }
}
2. Added Service reference using Visual studio "
Service Reference
" option 3.CustomerServiceClient pxy = new CustomerServiceClient("sam"); // Error
This overloaded constructor is not exposed over here . Not sure wheather i am following the right way. it would be great if you people can direct me to the solution.
-
MSMQ with WCFIs using MSMQ with WCF is a wise idea. What are the benefits we can achieve by doing that. It would you can point me some samples
modified on Tuesday, November 24, 2009 10:44 PM
-
MSMQWe need to use MSMQ in one of my project. Is there any Library(Similar to enter prise library DAAB) available that will make the task easy and manageable. Also it would be great if you can point me to some MSMQ starter kits or real life sample applications that uses MSMQ Thanks in advance
-
Kiosk ApplicationYes thats true. Project manager is not a good technical person and he is not aware of WPF concepts. He committed deadline thinking that there is nothing new in this technology. He will stick on this comments . So we have to do something from our side.