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

Software Development Network >> .NET Development

.NET Development

New Question

SelectNode - create if does not exist
get file from remote machine using WMI
Divide by Zero Error [this.Adapter.Fill(dataTable);]
TCP Listener issues .. Please help..
Using reflection to see objects as a property
Catch SelectedIndexChanged in ComboBox Array
Casting from CLR types to SQL types
Null Values
System.Runtime.InteropServices.COMException (0x80040154)
writing an event with .net 2.0 failed.

Top Answerers

Dirty Steve
IgorB
Matt Stum
EmekaAwagu
LittleSettler
jason d
RANGERAZIZ
mpco
nibs
Neotech
BER Consulting, LLC
Only Title

Answer Questions

  • Giridhar Damodaram How to use generated assembly?

    I have a dotnet dll name test.dll after using sgen I got test.XmlSerializers.dll Now my types in the generated dll are suffixed with “Serializer” keywork i.e If I have testclass I get testclassSerializer type in the generated dll. How can I use these generated types for deserialization Hi Rodrigo, Thank you very much for the response. // Create an instance of the XmlSerializer specifying type. class1Serializer serializer = new class1Serializer (typeof(class1)); generates an error "No overload for method 'class1Serializer' takes '1' arguments" the constructor present in the generated assembly is not accepting the argument (typeof(class1)) if I try class1Serial ...Show All

  • RajeshR Server Error in '/Shobha@Web' Application.

    The conversion of char data type to smalldatetime data type resulted in an out-of-range smalldatetime value. this is the error i am getting when tried to open a published page, which works fine with VS 2005 environment. I have used something like this in the button click event. is there anything wrong here I am newbie to .net. Kindly guide me. Dim Dys(31) As Date Dim DR As Data.SqlClient.SqlDataReader Dim cmd As New Data.SqlClient.SqlCommand Dim cn As New Data.SqlClient.SqlConnection cn.ConnectionString = CWS_Ds.ConnectionString cn.Open() cmd.Connection = cn cmd.CommandText = "select distinct(cdate) from cdates where month(cdate)=" & DDLmnth.SelectedIndex + 1 & ...Show All

  • Matthijs Koopman Behavior of XPath Query to find attribute that had the maximum value

    I have the following Xml: <Books><Book id="10"/><Book id="16" /><Book id="12" /><Book id="18" /></Books> I wanted to get the Book node that had the highest "id" value (<Book id="18" /> node in our case). The following XPath query works perfectly fine. /Books/Book/@id[not (. < ../preceding-sibling::Book/@id) and not(. < ../following-sibling::Book/@id)] I was trying to understand this query and changed it to: /Books/Book/@id [(. > ../preceding-sibling::Book/@id) and (. > ../following-sibling::Book/@id)] Note that I removed the not operator and changed the comparison operator. However, I find that the above query ...Show All

  • James Miles "Work around" the one base-class limit

    Hi all, I would like to add some extra functionality to several existing classes. The implementation of this extra functionality is exactly the same for all the classes. Unlike some other OO languages (like c++), the .NET framework only allows one baseclass to be used, so I cannot put this implementation in a single class, and derrive my new class from the both the original class AND the class with my extra implementation. One way to work around this, is to add one property to each of the derrived classes which contains an instance of a class with my new implmentation. But, I would rather extend my classes directly with the new properties and methods. Is there any way I can accomplish this without have to resolve to copy-paste ...Show All

  • OnFileOpen how to create .xml file using SQL query (SQL Server 2000)

    i'm using a datawarehouse from which i need to pickup huge data and show it using a grid on a web page. my thought is to create an .xml file suing SQL query and then create a dataset from the XML file and then bind it to a datagrid do any one have any better(best) approach for this   I don't see any advantages in creating intermediate XML file What stops you from populating dataset directly from the query with DataAdapter for instance Of course query results can be returned as xml if you append FOR XML AUTO clause to select statement, but I'm not sure how are you going to use it anyway. actually the requirement is like this: 1) Its a mi ...Show All

  • TboneToo How to set a File's Version Info

    Hello, I know the System.Diagnostics.FileVersionInfo class which works fine. Now I need a method to set the FileVersion, not only read. Is there a possibility with plain .Net 2.0 Thanks Sven There's no support for that in the framework. It's not easy to do at all. The only API Microsoft provide for changing native resources (which is how the version info is stored, as a VS_VERSIONINFO resource) is the BeginUpdateResource and related functions. But that still requires you to know the detail on how the information is stored. Hello, thank you for your reply. I would like to change it for existing files. Regards Sven Do yo ...Show All

  • JKountouroglou Optional value type pointer/reference parameter during COM interop

    Hey, I am facing an interesting interop problem that I haven't found a solution for yet. Let's say a COM method takes a pointer to a simple struct: HRESULT Foo(LPBAR pBar); Let's also say that this parameter is optional and the call pInterface->Foo(NULL); is perfectly valid. Now, if the structure BAR is defined in C#: [StructLayout(LayoutKind.Sequential, Pack = 4)] public struct Bar { // ... }; and the COM interop method call is also defined: [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] public void Foo(ref Bar); In this case, there is no way to be able to call Foo(null) in C#, although it would be valid. The question is: how do I let the Marshaler know that it should pass ...Show All

  • LeeroyB problem with converting PDF to Xml

    Joe thanks a lot for your early replay im trying to do this simply open the PDF document and I make it saved into as a .xml format. If the word like “first“ in pdf document ,its displaying like ” rst “. Where ever the fi,ff,ff,<,>, is their that symboles replaced with "box" symbol . here are the some of the examples what i am getting in xml: different -> "di erent" (a) changed into " a " changed into " " hid; 1i h=i hid; 2i h+i hid; 3i h_i h60i so please give me an idea to solve the problem Thanks, Ram krishna It seams that you have problem reading (decrypting) PDF file. You may contact Adobe for help in this or forums related to ...Show All

  • Bidhu P.M. is it possible to interrupt fill method of the data adapter?

    Hi all, is it possible to interrupt fill method of the data adapter Case : Suppose while filling the dataset using data adapter , say i have a button which says "Pause Loading" , it will pause the data loading and whatever data is loaded is saved into the dataset again i have resume loading button which will again rsume loading of the data from the point where adapter has been interrupted is it possible to do in .net without using looping on the dataset becoz i have a lot of data to work with thanks Saurabh Since this is more of a general ado.net question than one specific to the new ado.net CTP, moving to the appropriate forum. There are methods in which yo ...Show All

  • Meliphar Debugging mscorwks

    >What if you did stop inside the runtime >What if we did allow a debugger to stop at a native breakpoint inside the runtime, but just refused to execute the helper-thread and thus >temporarily disable managed-debugging functionality In theory, this would work. In practice, it would be a bad user experience >because: > - you couldn’t get a managed callstack since the helper-thread can’t run. Thus you wouldn’t be able to see what managed function called into the runtime. > - You’d be stranded at the native breakpoint. You could step within the native code, but without the helper running, you could never step back across the native a managed boundary. Except that there is a window in ...Show All

  • Kathy Weise SmtpClient.Send() problem results in "An established connection was aborted by the software in your host machine"

    Hi, I'm having problems with SmtpClient.Send() where I end with an "An established connection was aborted by the software in your host machine" type error. My infrastructure people tell me that I should have access to the Smtp server so things should just work. I've been googling and searching forums but have yet to see a complete answer to what this error is trying to tell me. Oh and I've tried this in both a Web and a WinForm app on .Net framework 2.0 running on a clean install of XP Pro. Any opinions Thanks Scott. This is the code (massaged for security): protected void SendEmail() { MailAddress addressFrom = new MailAddress("sender@domain.com"); MailAddress addressTo = new MailAddress("recipient@domai ...Show All

  • andras99 datetime field sql server 2005 updates incorrectly

    I am using vb 2005 expess edition and sql sever 2005 The problem I have is the LastUpdated field which is a datetime field in the database does not update properly the code I am using is Dim cnSQL As SqlConnection Dim cmSQL As SqlCommand Dim strSQL As String cnSQL = New SqlConnection(ConnectionString) cnSQL.Open() strSQL = "update people set LastUpdated = " & DateTime.Now.Date & " where PersonId = 13" cmSQL = New SqlCommand(strSQL, cnSQL) cmSQL.ExecuteNonQuery() this executes with no errors but the database is updated with the same date each time 01/01/1900 00:00:00 I have tried all combinations of the datetime field values with no effect Can anyone h ...Show All

  • stombiztalker XSLT output incompatible with standard

    Hi Folks, I am trying to convert XML to CSV format output. I was able to convert it by using the following option: output method ="text" But, the output doesn't seem to adhere to the standard. I was referrring to the following link to refer to the CSV format: http://en.wikipedia.org/wiki/Comma-separated_values Please correct me if i am wrong. TIA Sek Anton, that was quite self-explanatory i was spending time understanding every bit of your work! kudos for taking time to post. -Sek You have to implement CSV quoting rules in your stylesheet. For example: < xsl:stylesheet version = " 1.0 " xmlns ...Show All

  • Maramil TableNewRow event doesn't fire

    Any idea why the TableNewRow event doesn't fire in an example such as the following DataTable dt = new DataTable ( "Test" ); dt.TableNewRow += new DataTableNewRowEventHandler (dt_TableNewRow); OleDbCommand cmd = new OleDbCommand ( "SELECT * FROM ... ", _connection); using ( OleDbDataReader r = cmd.ExecuteReader()) dt.Load(r); Kind of annoying, as I'd hoped to use this event to keep track of progress as data trickles in. The query takes about 20 minutes to return all data, due to a slow network connection. I'd really like to be able to keep the user informed as data accumulates. Any other suggestions Please use RowChanged event for DataTable.Load ...Show All

  • Pramy Finding the server

    Hi, I am devaloping a client server application where the client is a pda. The client connects to a wifi access points to gain access to the local network where the server exists. The problem that i don't want specify a specific ip address for the server in the client application. I want it to find the server then use its ip to connect to it with normal tcp connection. I read somthing about UDP multicasting. is this relavent does it have any constraints. is there anyother way ...Thanks. IYou can resolve the server name to an IP using the DNS APIs http://msdn2.microsoft.com/en-us/library/system.net.dns.aspx Mariya but this means that i have to know the host nam ...Show All

111213141516171819202122232425262728

©2008 Software Development Network

powered by phorum