oren's Q&A profile
Windows Live Developer Forums Adding Pushpins via C# .NET
Hey, I'm trying to figure out how to manage a lot of the map stuff via .net. I have a database of lat/long and I want to add them to my map, How would I do this Client : Use XMLHttp to call your code behind page Server : Use a StringBuilder in a loop to build AddPushpin method for each of your points. Then Response.Write it. Clent : use Javascript eval() method to parse the resulting string ...Show All
.NET Development EXE (client PC) don’t show null values
I'm developing a c#.net application using AdabasD ODBC. I've installed the exe in 4 PCs and is all right ... except in one that doesn’t obtain rows from row tables that contains 1 or more null values. Any idea THANKS !! Thanks all! The problem was that this PC didn’t have de Service Pack 2 for win XP, and appearently this make some fixe on the odbc ... I installed it and the problem is resolved!! I hope it helps you too in some moment. ...Show All
SQL Server Report Server Issue Object reference not set to an instance of an object
Hi all, I'm getting this problem 'Object reference not set to an instance of an object.' whenever I try to review a report and I checked the log file and this is what it had w3wp!ui!1!11/14/2006-10:54:20:: Unhandled exception: System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Reporting.WebForms.WebRequestHelper.GetExceptionForMoreInformationNode(XmlNode moreInfo, XmlNamespaceManager namespaces) at Microsoft.Reporting.WebForms.WebRequestHelper.ExceptionFromWebResponse(Exception e) at Microsoft.Reporting.WebForms.ServerReport.ServerUrlRequest(Boolean isAbortable, String url, Stream outputStream, String& mimeType, String& fileNameExtension) at Microsoft.Reporting.WebForms.S ...Show All
.NET Development executing a .exe on the client?
Hi, I'm builing a web application using web services. I want to execute a .exe on the client. How can this be done Right now I'm doing it with ActiveX, but I need the application to work when AxtiveX is disabled in IE. The application will be running on a LAN, not Internet. Thanks! Hi, I don't think it is possible to do this since this would give a major security leak in IE. The best thing you can do is to make sure that your site is in the Trusted Sites Zone. This can be set up at the domain level so it works for everyone. In the Trusted Sites Zone, ActiveX applets are allowed by default. NOTE: All your clients need to have .NET installed in order to make the a ...Show All
Visual Basic Automatic importing of text from txt file.
I'm working on creating a new form for my company in Outlook. It's a simple helpdesk submission form. Each of the computers on the domain have a txt file located directly in the C: drive with the following information in it: Host name: Ip Address: (other information that doesn't matter). I would like to write up something in this form that would either automatically attach this txt file to the ticket as it's being e-mail out, or automatically pull the text out of this file and insert it into a spot on the form. I've been searching for 6 hours now and haven't been able to find what I'm looking for... Anyone know if this is possible Much thanks Jpeg To read the contents of a test file and place them in a textbox on a form. Somethi ...Show All
Visual Studio Message for Empty Crystal Report
In my Web application, I have Crystal Report that generates a report based on parameters selected by user. When a user enters parmeters which return no rows, I get report displaying report header, page header... etc. with no data. Instead of emtpy report, I would like to display a message saying e.g. "No records meet selection criteria". How can I accomplish this thanks Hi, I guess what melody is trying to suggest is that you manually query your database to see if there's a result. You can achieve this by using a Command and Datareader object. Just reply to this thread if you want a full sample. cheers, Paul June A. Domag ...Show All
Architecture How do I allow n possible new fields in a App (CRM)
Hi, We are starting to develop a small CRM as part of our app. I would like to give the user an option to create new fields (specifying the type he wants). How should I proceed to do this In addition to what Diyanil said You also need to consider what functionality do you want to support for those "dynamic" attributes Are they display only how much validation do users expect do you need to be able to add business rules on these fields How dynnamic shoudl these attributes be are they different per record do you need security on top of that etc. Arnon ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Game Levels like Quake?
I found out from another website that there's an add-on (I think) for XNA Game Studio called XNA Magic that is supposed to load game levels made for games like Quake. Should I wait for XNA Magic or similar add-on before trying to create game levels Can I create game levels using XNA Game Studio only and a 3D modeler only Is it possible to create game levels that have two or more texture files I tried out DeleD Lite and found it too hard for me to use. I wish that I can use GMAX to create 3D models for any games. I am VERY MAD at Discreet for discontinuing GMAX. I don't have $2000 for 3D Studio MAX. ...Show All
SQL Server How to fit 16 hours of upgrade work into 2?
How to fit 16 hours of upgrade work into 2 A client of mine is trying to upgrade their SQL Server box. They are on SQL 2000 now and the new box will be SQL 2000 as well. Before you ask, they don’t want to go to SQL 2005 for licensing issues (i.e. cost). The problem I’m having is that in addition to moving the database they need to add an update field (smalldatetime) with an index. Adding the new field and index to each table is taking around 16 hours on the new box. This client is an online retail shop and they are completely dependant on SQL being up. The have given me a 2-3 hour window to make the move. So how do I get the database moved and updated in 2-3 hours This is what I have done so far: Argue ...Show All
Visual Studio 2008 (Pre-release) The WPF Challenge
I have created a WPF competition. On March 12, 2007 the creators of the three "best" WPF applications entered into the contest will win cool prizes and get some public attention for their great work. If you're interested: http://joshsmithonwpf.wordpress.com/2007/02/10/the-wpf-challenge/ The winners of The WPF Challenge can be viewed here: http://joshsmithonwpf.wordpress.com/2007/03/22/the-wpf-challenge-winners/ ...Show All
Smart Device Development Error in deployment application for wce5.0 using vs.net 2005
Hi, due to an upgration of my mobile device OS from wce4.2 to wce.5.0 i have tried to convert an application from vs .net 2003 to vs.net 2005. The build of the application succeded but during the deployment an error occurs.The description of the error is "referenced package not found". In the FILE column of the Error List in visual studio, there is no any file, but the following message appears: "Device Connectivity Component". I have installed Windows Mobile 5.0 SmartPhone SDK and SMDK 1.2. Also, i use ActiveSync 4.1. Is there anybody that can help me Thanks a lot... Let me know if this works. Try renaming C:\Documents and Settings\<user name>\L ...Show All
SQL Server SQL comparison
Hi there! can anyone help me out I need to compare a date from the database and the system date which will be coded in a store procedure in SQL... HELP!!!!! You may like to reconsider the answer given by Ali. DateTimes in NET are stored to a precision of 100 ns or 0.0000001 seconds whilst those stored by SQL Server in the SQL Server datatype DateTime are stored to the nearest 0.003333 seconds. Therefore you should not use a simple equality operator to compare them. Instead you should compare them based on the lowest precision argument, ie round the NET DateTime to the nearest 0.00333 seconds and then compare them. Regards, John Whattam. ...Show All
SQL Server Finding deatail Deadlock info IN SQl Server 2005 Standard Edtion
We are using SQL Server 2005 with SP2.Originally, we seemed to be having a lot of unnecessary lock escalation occurring to the page and table level. I would like to track down all storedprocedure/queries or function that are being casue of deadlock in sql server 2005 with all deadlock input like transactionID ,command ran,loginID etc.But we have to need to find these information on SQL Server 2005 standard edtion. Is there any tool,command or something like this which track down these information blindly in sql server 2005 without effecting system performance seriously. Ahamd Drshen Use SQL Server Profiler with DeadLock Graph Event. Or use stored procedures sp_create_trace and sp_trace_setevent for collecting profile ...Show All
Visual Basic ADO.NET book recommendations
If it is not appropriate to ask about book recommendations on this forum, please let me know and I will withdraw the question. Can anybody recommend what I would consider a good book on VB8 and ADO.NET If it exists, such an animal would have the following qualifications: does NOT simply repeat what is already available from BOL, MSDN, etc., does explain how to programmatically use ADO.NET rather than just demonstrating how to use wizards, does explain when, where, why and how to use DataAdapters, DataSets, TableAdapters, DataTables, etc., does provide real world examples, does also include useful info I haven't noted here. My response has been moved to http://forums.microsoft.com/MSDN/Sh ...Show All
.NET Development Validating very (huge) large Xml files against Xsd Schema
Hello all, I have a very large xml file (about 500.000 lines) that I would like to validate against a xsd. As I expected I'm having performance problems in the validation phase. Even with tools like XmlSpy validation takes a lot of time. What are the best practices for this situation Do you have an equal scenario How do you manage to validate your huge xml instances I'm not looking for code samples (although very welcome!). I'm just trying the gather other's experiences in this matter. Thanks jay Hi try this, its in c# class Class1 { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void ...Show All
