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

Software Development Network >> .NET Development

.NET Development

New Question

Error .Net SqlClient Data Provider when running a SQL Job
How can I load public key for RSA Encryption?
Strange: Session cleared after Directory.Delete
DLL paths
Failure in updating records for webpage when uploaded into IIS.
Round Trip with ILDASM ILASM fails for strong named assemblies
HttpWebrequest Post
[C#2.0] Print a tif image
Pragmatics of using IDbComand for direct manipulation of sql statements vs DataTable,DataSet and DataView.
Code Access Security

Top Answerers

Aistina
MattGsy
FrankSp
Zadoras
Thomas82
Leon94
Chris Pyman
Sparx
Jamie Thomson
waff
Institute on Aging and Social Work
Only Title

Answer Questions

  • Narayan Kulkarni Any way to display images in gridview?

    the image is stored in a column as binary data. Set the content type with Response.ContentType and Stream binary data with Response.BinaryWrite Eg. <asp:imagefield dataimageurlfield="ImageID" dataimageurlformatstring='ViewImage.aspx id={0}'> </asp:imagefield> In viewImage.aspx // Get the record from database and .... Response.ContentType = "image/gif" Response.BinaryWrite( (byte[]) dr["Image"] ); // dr = DataReader Object. HTH Regards Jignesh Desai See if the following helps: http://www.netomatix.com/development/GridViewDisplayBlob.aspx ...Show All

  • SweptSquash why webservice are running on aspnet development server: can we change this

    I have a simple query here: I downloaded a sample webservice from microsoft along with a bat file which creates its virtual library on my IIS. Now when i build this webservice, asp development server(by default) gets started and webservice gets published at some other port(e.g http:localhost:94334:/testwebservice) and place(//debug/precompiled..). Now if i want to use this webservice in my windows application , i press add webreference and search for webservices on my computer , there i can't get this webservice. Can somebody please let me know as to what settings needs to be done so that webservice doesn't start in aspnet development server and instead should be created and run inside the IIS. Thanks and Regards ...Show All

  • aferoce Regex group

    Hi I'm making a little test building a search application using regex and some other stuff. This is one of the groups in my regex pattern: ( <atta>\\d{4}) The problem is i dont want the value to be 4 only, i need it to be able to find it at that spot even if it is 8, 9 or 10 instead. After doing some reading i saw that there is something you can write like {4+} so that is can be atleast 4 or more. But can't get it working, Anyone can help me Hi, I'm not sure what you're trying to do... {4} is a quantifier, which means your group should match exactly four digitals. If you want t match 4-9 digits, use ( <atta>\\d{4,9}) . But.. How I understood you, you want to match&nbs ...Show All

  • Boulderdude FileSystemWatcher Problem

    Hi, I am using FileSystemWatcher to copy sound files from a network path to my local path. I have 4 network paths configured and I start watching a network path in a new thread. Now, for 2 of my paths, I am having no difficulty in copying completed files. But for the other 2 paths, I am not able to distinguish when the file is completly written. The same code works for the first paths, by the way. The first 2 paths are on same machine, say A. The second 2 paths are on other machine, say B. The sound files created on A use some recorder ( i dont know the exact one, since i cant access the machine as a whole, but do have access to the network path, since it is shared for me ). The sound files created on B use some other recorder. Now, wha ...Show All

  • DaveParr XML file edit

    I have a c# program that needs to update an XML element's data. I need to change the value in element lastRun. <program> <lastRun>14.11.2006 10:33:17</lastRun> <logPath>C:\Temp</logPath> </program> ... ... ... Do I need to create a copy of the file to edit it and then save it as the original name Or can I use one of the .NET tools to do this update more quickly I'm pretty new to .NET and using XML, so any help is much appreciated. Thanks. If you need to edit an XML document then you can use the XML DOM implementation in .NET, System.Xml.XmlDocument: XmlDocument xmlDocument = new XmlDocument(); xmlDocument.Load(@"file.xml"); // use XPat ...Show All

  • Sephiroth_ XPath Query Assistance

    Hello, I have some relatively simple XML as follows: < xml version="1.0" > <dss:OPERATION xmlns:dss="XYZCorp/Test.xsd"> <dss:MULTILINK Tag="42"> <dss:LINKS Name="Links"> <dss:COLUMN Name="ID"> <dss:CELL ColumnName="ID" RowName="Row1"> <dss:PROPERTY Name="ObjectName" Type="PROP_TYPE_STRING" Value="Journey_Time_Section_10100" /> </dss:CELL> <dss:CELL ColumnName="ID" RowName="Row2"> <dss:PROPERTY Name="ObjectName" Type="PROP_TYPE_STRING" Value="Journey_Time_Section_10110" /> </dss:CELL> ...Show All

  • David d48701 Connection.Timeout

    First, Thanks for any and all assistance. I have a .NET application written in C# and ASP.NET (VS 2005). The Database is SQL Server 2005. I have several SPs executed from the ASP pages and all seems to work well. However, I have one SP that supplies an error "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding." The SP executes(in QueryAnalyzer) in 32 seconds. The ASP page is timing out. I have the connection String Connect Timeout = 1000 and the ASP Server.Timeout = 1000. I have also verified the Remote Procedure Call in SQL server is set = 600, seconds. I have tuned the SP to only read necessay rows (by date) ~600K for a month. I narrow the results from there to r ...Show All

  • ralfkret Why doesn't System.Array have an indexer?

    I'm probably missing something here, because my all of my searches came up with nothing. It seems only natural for Array to have an indexer. But instead, we have to use Get/Set Value(). Why is that thrace wrote: Allow me to nag some more: why doesn't Array have an indexer that gets and sets an Object How many index parameters would it take, considering that it has to support everything from one dimensional to N-dimensional arrays Interesting idea. How about this: public class Base { private object[] values = { 1, 2, 3 }; public object this[int index] { get { return values[index]; } set { values[index] = value; } } } public class Derived : Base { publ ...Show All

  • shyma Unmanaged to managed callback through wrapper: this works but is it good?

      I implemented callback in mixed mode the following way and it works fine but I wonder if this is the right way to do it. In particular, is this 100% safe I mean could there be some obscure GC/CLR "event" that would make it crash at some point, for instance should not I be using pin pointers It works this way: a delegate is declared in C# and used as argument to the setCallBack() function of a C++ .net wrapper. This function casts this pointer and use it to initialize the callBack pointer value in an unmanaged C++ class (it also keeps its value so the Wrapper can also call the callback). The C++ .net wrapper is shown below: public ref class WrapperClass { public : delegate int CallbackType(); ...Show All

  • nixps Exception in SqlConnection & SqlCommand of ADO.NET 2.0 & VB 2005 Express Form

    Hi all, 1) The following code worked in one Windows Application (named "VB ExpressDB-1") nicely without any problems: Imports System.Data Imports System.Data.SqlClient Public Class Form1 Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim cnn1 As SqlConnection Dim cmd1 As SqlCommand cnn1 = New SqlConnection( "server=.\SQLEXPRESS;Trusted_Connection=yes;database=ssmsExpressDB" ) cmd1 = New SqlCommand( "SELECT * FROM LabTests" , cnn1) Try cnn1.Open() cmd1.CommandText = "SELECT Result FROM LabTests WHERE AnalyteID='23'" cmd1.Connection = cnn1 Me .Label1.Text = "6t ...Show All

  • Andre&amp;#39;s Unable to connect to Remote Server

    Hi, I having this problem that I had a SQL Server 2000 and Visual Studio 2005. But when I revised my program done in VS.NET 2003 using VS 2005 and run, it has this problem saying: Unable to connect to remote server. What does that means I have done the SQL Server 2000 installation for number of PC but when running back this program using VS2005. It shows these error.. Can anyone help mi.. Thanks and Regards.. ...Show All

  • vahdam_mn Convert xls to csv programmatically (and back again)

    Hi all I'm trying to convert an Excel file (xls) to csv and back again, using C#. I'd like to convert the xls file into csv, then use regex to parse and change some things in the csv file, and convert the changed csv file to xsl. Could you help Code snippets will be greatly appreciated. Many thanks in advance. Laurence Many thanks for this.I'll give it a try. One of the solutions (Gemplus) uses a commercial application. I'm still on the lookout for solutions, and I'll try yours. Thanks ComponentOne XLS for .NET is the solution..... I can help with the read part, the best way I found (for free :)) was to use the OledbConnecton to open the excel file. I'm sure ther ...Show All

  • glcjr .NET Framework 2 install hanging on Windows 2003

    I'm trying to install the .NET Framework 2.0 on a Windows Server 2003 SP1 machine. The progress bar on the "Setup is configuring the install. This may take a minute or two." screen gets to 100%, but it just sits there...no hard drive activity and no CPU usage; it never completes. The text in the dd_* log is below. Can someone help point me in the right direction on how to get this installed Thanks, Justin [12/04/06,10:21:58] ========== Logging started ========== [12/04/06,10:21:58] ===================================== [12/04/06,10:21:58] No language specified in ini file default to OS language [12/04/06,10:21:58] Set lang to 1033 [12/04/06,10:21:58] Pending Reboot Table state : Logging start [12/04/06,10:21:58] _____________ ...Show All

  • nkojuharov System.ArgumentException: Invalid value for key 'attachdbfilename'.

    I'm trying to upload the personal website starter kit to a web hosting site, and cannot get the connection string correct. I want to use the personal.mdb in the App_Data folder within my site, which works fine locally, but once uploaded, I get all kinds of errors - depending on how I mess with the string. In no interation can I get the string to work when trying to use the <AttachDBFilename> entry. When just adding the connection string provided by the hosting service to connect to their server, it opens, but obviously none of the website database functionality works. I am assuming that I will be using the SQL engine on the server, and pointing it to my database file. Here is the complete database connection string f ...Show All

  • raayu Remoting large datasets and merging it at client side - out of memory excpetion

    hi, I have a large dataset that is remoted over to a client and merged with the client's dataset. The transfer happens fine. But when I call merge it throws "Out of memory exception". Why is this happening ((DataSet) this .dataSetHash[dataSetName]).Merge( dsTemp, false , MissingSchemaAction.Add); regards, catinat hi, The exception doesnt happen at merge. The server loads the dataset and the exception happens at the client side. Client side: DataSet dsTemp = Server.ReturnDataSet(string [] tableNameList); at the above line of code, we have out of memory exception on the client side. Can anyone throw some light upon this regards, catinat ...Show All

606162636465666768697071727374757677

©2008 Software Development Network

powered by phorum