Atulpatel's Q&A profile
.NET Development Force XML escape characters
I have to generate XML for some outside people. They want all escapable characters escaped. I am using Xml Serialisation because it is returned by a web service. .NET will only escape &<>, but not " or '. How can I force the escaping of all escapable characters Thanks guys for your help and your intentions. However, neither of your answers have solved my problem. I am using XmlSerializer to serialize an object into Xml. The people who will be consuming this Xml insist that all five of the characters specifically mentioned in the Xml specification are escaped. These characters are: & = & < = < > = > " = " ' = ' ...Show All
SQL Server Delte from 3 table in one procedure
HI I have 3 table in table 1 i have a ID i use in table 2 and in table 2 i have a ID i use en table 3 In table one i have a datetime field What i want is to delete all from this 3 table when the datetime value are more than one hour old. I can delete old from the table one by: delete from tableName where datettimeField < dateadd ( hour , - 1 , getdate ()) But how do i delete all the records from table 2 and table 3 off course where the ID in table one are the same as in table 2 and the ID in table 2 are the same as in table3 Hope someone can help LN Hi Thank again I have done it in the rules for the diagram But i have another problem with the same delete This is allr ...Show All
Visual C# static class/method not recognized within namespace
From what I've read, C#'s static modifier should work just like Java. So, I created a utilities class which has a public static method to do some things. The utilities class is declared within the same namespace as my form class (just in a separate file), but if I attempt to access the method in the utilities class from the form class, the compiler complains that the name of the utility method or the class (if I attempt to use the FQN of the method) does not exist in the current context. If I attempt to add a "using MyNamespace.Utilities" statement at the top (which I fully expect to be redundant) the compiler also complains that the "Utilities" type or name does not exist in "MyNamespace". Any suggestions are most welcome! According to wr ...Show All
Visual C++ MFC ?
Hai, To Create a time critical application, which method should i follow Using MFC in shared DLL or Using MFC in static library Can anyone help .. Thanks in advance. ...Show All
Windows Live Developer Forums Connection Refused
I am using the webservice on the website listed below. It quit working recently and now I get this error: System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- End of inner exception stack trace --- at Sy ...Show All
SQL Server SQl Server CE database connection issue
Hi, I have created my sql mobile database in c drive ( c:\SQlMobile\sqlmobile.sdf).now when i try to connect it with following code, it gives "The path is not valid. Check the directory for the database" error. i have tried all path options but no one is working.please help me. ( i am using visual studio 2005 and SQl server mobile) code: SqlCeConnection ssceconn = new SqlCeConnection ( "Data Source=c:\\SQlMobile\\sqlmobile.sdf;Password=XYZ11!@#" ); ssceconn.Open(); MessageBox .Show( "Ok" ); ssceconn.Close(); Emulator is a device, emulated one anyway. It's a separate entity from the desktop, has it’s own simulated CPU, memory and file system not to ...Show All
Smart Device Development Error while debuging
Hello All, I am new to Smart Device Development, I have installed Windows Mobile 5.0 Pocket PC SDK on my machine and trying in create simple HelloWorld application but it not working . I gote following error while debuging Error 1 - Deployment and/or registration failed with error: 0x8973190e. Error writing file '%csidl_program_files%\helloworld\mscorlib.dll'. Error 0x80070070: There is not enough space on the disk. File - Device Connectivity Component please help me. I am using Visual Studio 2005 One More thing, I don't have 'Smart Device' like interface when I open WinForm in design view for placing controls. Thanks If you create WinCE application than you'll see WinForm style skin. This is because WinCE based devices ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do I cancel my subscription to XNA?
Okay, I purchased XNA from the Xbox Live Marketplace thinking that the launcher thats under memberships was all I needed. Now, I think it was all I needed, but I can't connect to anything to make anything. So, I want to cancel the subscription, but I can't seem to find any links or anything to cancel. Well, it says "Note that your subscription will automatically renew to a 4-month subscription at the then current price, unless you change your renewal or cancel before your subscription ends. For pricing details and information about changing or canceling your subscription, go to http://msdn.com/xna/creators". I went to http://msdn.com/xna/creators and can't find where to cancel at. ...Show All
.NET Development Slow painting of ListView
I simple add ListView to the form and set ListView's back color. Draging the window over my listview, listview painted very slowly and i can saw the white regions on listview. How i can solve this problem public partial class Form1 : Form { MyListView p = new MyListView(); public Form1() { this.WindowState = System.Windows.Forms.FormWindowState.Maximized; InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { p.Parent = this; p.Dock = DockStyle.Fill; ImageList iList = new ImageList(); iList.ImageSize = new Size(32, 32); p.LargeImageList = iList; p.View = View.LargeIcon; for (int i = 0; i < 100; i++) { ...Show All
Windows Forms master-detail form. CHILD records in DATAGRIDVIEW doesn't clear on adding new PARENT record
Hi all, I have implemented a master-detail form in VB 2005 with: detailsview(to dsplay parent records) datagridview (to display child records) Everything works fine.......INSERT/DELETE/UPDATE, except one prb. When i ADD a new PARENT record, the DATAGRIDVIEW doesn't clear and the old CHILD records still remain in the DATGIRDVIEW . I want to clear the DATAGRID everytime a new parent record is created. How do i do this Alex Hi hrubesh, On my form, the master-detail relationships are working (INSERTING/DELETING/UPDATING) correctly. I have absolutely no prb with them. The only issue is when adding new records. When i click the ADD button from toolbar of PARENTBIND ...Show All
Visual Basic SetWindowText API in vb.net set the text to an empty string
Hi I have written a windows control in vb.net hosted on internet explorer. I want to change the title of the browser dynamically so I retrive the handle of the browser and pass it along with a text to the SetWindowText function. The issue is that the the title is getting and empty text. I also see that the application disappears from the task manager and the text on the program window in the task bar also disappears. As a test I created a small windows application and I get the same results. Below is the example: Public Class Form1 Inherits System.Windows.Forms.Form Public Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" ( ByVal hwnd As Long , ByVal lpString As S ...Show All
SQL Server Indestructible stored procedure
I want to describe step by step what I want to do, what I am actually doing and what comes out of it in SQLEXPRESS. I managed to create a few stored procedures. Now I changed my mind on one of them. The idea I tried did not work, period. I want to modify it. The Object Explorer offers me this chance. I go to my database: hist_O for simplicity sake, click Programmability-->Stored Procedures--My Stored Procedure and then say: MODIFY. I see (much hated already) my stored procedure in the lookup window on the right. Its name is CreateTableO . It is not what it is suposed to be and I want to change the content. A sensible way to go about it is perhaps to click Ctrl+Shift+M . I do it and get a parameters window. I see Specify Values For Te ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to silently ignore missing textures?
I need to silently ignore missing textures files from my models. I think this should be done by overriding the BuildTexture in the MaterialProcessor. How can I do this Thanks, [ContentProcessor] class MyModelProcessor : ModelProcessor { protected override MaterialContent ConvertMaterial(MaterialContent material, ContentProcessorContext context) { return context.Convert<MaterialContent, MaterialContent>(material, "MyMaterialProcessor"); } } [ContentProcessor] class MyMaterialProcessor : MaterialProcessor { protected override ExternalReference<TextureContent> BuildTexture(string textureName, ExternalReference<TextureCont ...Show All
.NET Development Domain Login keeps popping up
Excuse me if I am in the wrong forum. Please direct me to the correct one if I am. Anyways, when accessing a web application that my team has developed, the domain login screen appears every so often. There doesn't seem to be any ryhme or reason for this. The particulars are: Win 2K3 Server IIS 6.0 w/ anonymous access enabled .Net 1.1 Any idea Thanks!. Bart Hi, The right forum for you would be http://forums.asp.net About your problem: Please check your web.config file for authorization element, if you keep it as simple as following, it will work fine, < authorization > < allow users ="*" /> </ authorization > If ...Show All
Visual Studio SVN ==> VSS
Hi, I have the unfortunate job of updating our Source control from SVN(bad) to VSS(good). I have a number of questions regarding this: 1) Should I go for VSS 6.0 or VSS 2005. 2) Is there some sort of converter that can take my SVN repository and transfer it to VSS or do I need to do it manually I will add that the main reason that we are moving to VSS is that most of our developers are un-experienced programmers and need the simplest tool available. Appreciate the help, Greenman :-) I too would like to know your reasons for migrating from svn to vss. I am currently Investigating which source controll to go with and thus far in my searching thru forums it seems that most po ...Show All
