Software Development Network Logo
  • Microsoft ISV
  • Visual Basic
  • SharePoint Products
  • VS Team System
  • Windows Vista
  • Visual Studio
  • Smart Devicet
  • Visual C++
  • Visual C#
  • Windows Forms
  • Game Technologies
  • IE Development
  • .NET Development
  • SQL Server
  • Visual FoxPro

Software Development Network >> .NET Development

.NET Development

New Question

Lossed bytes in Converting String to Bye Arrays & vice versa?
Tracking Changes to copied file
How do I compile a Web Service
Xslt question
ASP pages that try to access sql 2005 render 404 error
Array
connectionString problem: "G:\Database.mdb" vs. "\\server\g$\Database.mdb". Why doesn't the first work?
DataReader problem (My final straw)
ActiveX control 2005 in web page
Fastest way to call C++ code from C#?

Top Answerers

SonAsylum
MShetty
Bill Calkins
Little
sagittarian
Sunil Virmani
RMan54
furjaw
geneway
tjp1104
East Coast Games
Only Title

Answer Questions

  • gajar string Replace function

    using System; using System.Text.RegularExpressions; namespace ConsoleApplication1 { /// <summary> /// Summary description for Class1. /// </summary> class Class1 { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main(string[] args) { // // TODO: Add code to start application here // string text = "a0+a1X1+a2X2+a4X4+a10X1.X3+a12X2.X3"; string pattern = @"a.\d*"; MatchCollection matches = Regex.Matches(text,pattern); Console.WriteLine(text); Console.WriteLine(); string[] a = new string[mat ...Show All

  • psc161 ODbc Connection String to Excel

    I need use ODBC to access a excel file (.xls) which is password protected. I use ODBC string "Driver=....; DBQ=file1.xls; pwd=pass1", I got message the file can not be decrypted. Please help. Thanks I don't believe there is a direct way to open password protected Excel files via Odbc, even the native driver. See the following article for details. 211378 (http://support.microsoft.com/kb/211378/EN-US/) XL2000: "Could Not Decrypt File" Error with Password Protected File Just from the KB article, if your scenario would allow launching Excel to open the file, there might be a workaround somewhere, but that might also require manual password entry by a user. ...Show All

  • dad26087 UDP Broadcast Problems

    Greetings all! I'm having problems recieving UDP broadcast packets. I've looked over all the code I can find on MSDN and elsewhere but I can't find what I'm doing wrong. I've got a sending thread and a recieving thread using the same socket to send and recieve the packet. Bellow is a copy of the code I made up to test it out: public Form1() { InitializeComponent(); server = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); server.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Broadcast, 1); IPEndPoint localhost = new IPEndPoint(IPAddress.Any, 2305); server.Bind(localhost); Thread t = new Thread(new ThreadStart(Listener)); t.Start(); t = new Thr ...Show All

  • John Kamp Problem with mixing XmlReflectionImporter and XmlSchemaProviderAttribute.

    I have three classes: A, B and C. A and B use the XmlSchemaProviderAttribute to define some specific schema. A uses the XmlReflectionImporter to get B's schema. Class B is nothing special, but has a ref to C. The resulting schema is missing the definition for C however (when dumping the schema's to the console). This seems to be a problem with the XmlReflectionImporter. I suspect this is a bug, could anyone at MS investigate Note that C does appear when C doesn't use the XmlSchemaProviderAttribute. Also C does appear when using it and just requesting XSD to make an xsd of class B. Wout Here's some code to reproduce (used in context of web services where I'm trying to avoid having property setters, just to satisfy the XmlSerializer, it woul ...Show All

  • XCT Adolfo validate IP

    how can check if the given text was a valid IP format   agrt wrote: You could also use System.Net.IPAddress.TryParse. Here's an example: public bool IsAddressValid(string addrString) { IPAddress address; return IPAddress.TryParse(addrString, out address); } Creating the IPAddress may seem excessive if you're just doing validation, but it may perform better than using a regular expression. Your results may vary. hi i have the same problem and have not much expirience with VB 2005. can u please explain this for VB thanks Translated: public function IsAddressValid(byval addrString as string) as Boolean Dim address as IPAddress = nothing return ...Show All

  • MarkNicholson Xpath Expression with XpathNavigator.Select vs XmlDocument.SelectSingleNode

    Hi. I have an xml file with proper namespace and schema. I have an xpath expression that I have tested on the document in xmlspy (xpath 1.0 or 2.0) which returns a single node element. If I load the file into an XmlDocument and apply the expression with SelectSingleNode, I get the proper element value back. If I use XpathNavigator.Select on this file, which I understand, returns a node set, (even though the expression can only match a single node), I get the inner xml of all the nodes in the file (3 values). I am properly using the XmlNamespaceManager in each case. With the Xpath navigator, I have moved to root initially, before doing the select. Does anyone have any ideas why the XpathNavigator is returning strange resu ...Show All

  • Yahya problem of callback function call C# to C++

    Hello, My problem is the following : - I have a DLL in C++ which is called by my application in C#, a callback function pointer is passed to this DLL in order to be called later for progress purpose. - It seems to be OK but when the C++ DLL call back the C# application using the callback function pointer, an error is raised. It seems that the prototype of the callback function is wrong here is my code sample : { // callback prototype public unsafe delegate int PROGRESSCALLBACK( int reader, void* pUserData, int progress, int status ); // C++ DLL function called [DllImport( "ePerso.dll" )] public static extern unsafe int ePersoRead( int iReader, int iBlock, [MarshalAs( UnmanagedType.FunctionPtr )] PROGRESSCALLBACK pFnCallBack, void* p ...Show All

  • KevinBurton Error 1308 when instailling NET Framework 2.0 in XP

    I receive this error message when trying to install Net framework 2.0 to Win XP Error 1308. Source file not found: D:\DOUCU~1\WHB\LOCALS~1\TEMP\IXP000.TMP\eula.1025.text. Normally this happens when the download has become corrupted. Try redownloading the package. This is the location of the downloadable packages: Web download (light weight download manager, which will only download those components that you actually need) http://www.microsoft.com/downloads/details.aspx familyid=10CC340B-F857-4A14-83F5-25634C3BF043&displaylang=en Redist package (contains all of the netfx3.0 components in a single package) X86 -> http://go.microsoft.com/fwlink/ LinkId=70848 X64 -> http:/ ...Show All

  • Strakian return output Inserted.ColName value into a parameter

    The question is how to retrieve an OUTPUT value from an INSERT statement into C# code. The reason this was important is because performance was poor when using a uniqueidentifier as a primary key that had the guid value passed in from C#. There were a lot of index page splits occuring. Performance dramatically increased by using NEWSEQUENTIALID , which required the code changes shown below. Since this was originally posted, my coworker found the answer, which both of us validated in testing. Here is the table and the insert statement: CREATE TABLE Employee(  EmployeeID uniqueidentifier NOT NULL DEFAULT NEWSEQUENTIALID(),  EmployeeName nchar (10) NOT NULL ) insert Employee (EmployeeName) output Inserted.EmployeeID values ( 'Im ...Show All

  • Doug Stoltz visual web developer 2005 express edition Noob please be gentle

    I am trying out visual web developer express for the first time and as soon as I add a master page I get the following error: Server Error in '/' Application. Thanks, now I'm getting this error: Server Error in '/' Application. Open up the solution explorer and you should see a Web.config file, in this config file you want to add 2 things in the <system.web> tag. <compilation debug="true" /> <customErrors mode="Off" /> This should fix your error and allow you to see any errors on your page, just make sure you remove or comment out the tags when you're done debugging. Hope this helps. -Chad ...Show All

  • coolcoder Can I develop an application by having both asp and asp.net together

    I have already developed part of an application in asp , I have to complete remaining thing, whether can I develop remaining part in asp .net , If I do so Whether I will face many problem ,otherwise system will support both asp and asp.net in all scenario. Suresh The migration forum ( http://forums.asp.net/29/ShowForum.aspx ) at forums.asp.net will be better equipped to help you. Thanks. ...Show All

  • Yustme Debug into FCL?

    Is there any way for us to debug into FCL (er, of cource if source code in c# or MSIL is there, that would be much better) I'm asking this because I do think all my code is right (I've used that code for almost 1 year, and only this time it's not working), but it stuns inside FCL, and then tells me "Time Over". Not really, you can debug the native code generated by the JIT compiler. Raw stuff though, no annotation whatsoever. A useful tool to try to figure out what the FCL method might be doing is Reflector . ...Show All

  • The Loiner StreamReader

    Is there any way for a StreamReader to read a URI Very good point I guess I should pay mroe attention to how I phrase my questions. You are exactly right I wanted to know if you could read the resource. Unfortunatly what I need is to be able to do this without using WebRequests or the system.web at all due to restraints placed on the project. I have decided to change the way I am going about the project. Thanks for the imput. Here's the unhelpfully literal answer: static void Main( string [] args) { string myUri = "http://www.interact-sw.co.uk/iangblog/" ; byte [] uriBytes = Encoding .UTF8.GetBytes(myUri); MemoryStream ms = new ...Show All

  • jgt Project failing on 64bit

    I have a c# Vista project, actually started with Expression and so of course uses WinFX, that works fine on Win32. It crashes immediatly on x64 Vista. So I installed VC2005 on the x64 system and it builds fine but crashes immedialty if I try to debug it. "Error while trying to run project. Unable to start program myapp.exe" So I tried going to "configuration manager and setting the processor to X64 and rebuild. I get these warnings: "Referenced assembly PresentaitonCore.dll targets a diffrence processor" "Referenced assembly MSCoreLib.dll targets a diffrence processor" I'm thinking maybe these two dll files are 32 bit only and/or the OS doesn't have an update for them or I need to install a winfx ...Show All

  • cvajre Anyone has a solution about it?

    I have question here.I can access paradox database using c# with oldeconnection which has connectstring as "this.connect.ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+Application.StartupPath +@"\table;Extended Properties=Paradox 5.x;";",but I couldn't 't access a paradox database with password protection.Anyone has idea to solve it thanks in advance! " I'm still looking for a solution. Unfortunately I don't have a password protected Paradox database to work with but I need to resolve the syntax of the SELECT statement first (if possible). I believe that the password needs to be specified in the SQL statement. Below is an example: SELECT * FROM [Paradox 3.x;DATABA ...Show All

545556575859606162636465666768697071

©2008 Software Development Network

powered by phorum