-
- How to get number of rows?
by LORDTEK
- 14 Replies
- Last post
by tinboen
- How to get number of rows I have a connection and command. I create a reader object and running read() method. Until now everything is normal.
But I need how many rows returning
Thank you...
-
- How to tell if query comes up with nothing
by Dvlnblk
- 3 Replies
- Last post
by boban.s
- Hey all,
If I do a query to a SQL DB and it does not find a match, say for ID, then how do I know that so I can give the user a No File found message.
Sorry, I know this is fundamental stuff but I used to program ASP and now learning .NET. I think it has something to do with EOD and BOF.
Thanks
-
- Acropolis and GAT compatibility issues
by Dhawal B Kapadia
- 2 Replies
- Last post
by Dhawal B Kapadia
- iif i install acropolis august CTP, MY GAT 1.3 gets screwed up in VS 2008 beta 2....
when i try creating a new GAT project, VS cannot find "Microsoft.VisualStudio.TemplateWizard, Version 8.0.0.0....".
I need Acropolis and GAT both running on my machine.
Can somebody please help me on this
-
- How to pass CredentialCache.DefaultCredential from Client to WebApplication and WebApplication to WebService?
by Sanguanchai
- 0 Replies
- Last post
by Sanguanchai
- This is the scenario. We want to pass original credential from Client to WebService by using CredentialCache.DefaultCredential. I tried to pass as parameter for WebService but it throws exception about DefaultCredential cannot be serialized "System.Net.SystemNetworkCredential is inaccessible due to its protection level. Only public types can be processed.".
Client -> WebApplication
-
- Need to build a VERY simple web service by friday PLEASE HELP!!
by Joe P
- 4 Replies
- Last post
by Joe P
- Hi, I have been asked to build a simple web service by Friday and wondered if someone could help me out with a couple of questions. All I need to do is pass the contents of an XML file to another company's web service. We have told them that they will receive it in the format that we already have the xml file in so I don't need to change it at all. Would I be right in thinking that I could just b
-
- I have two functions, one using parameters and the other creates an update sql, what wrong with parameters?
by Robotuner
- 2 Replies
- Last post
by jgalley
- Hi, I have two functions that updates an ACESS table. One uses parameters, and the other creates an UDATE sql. Why doesn't the one that uses parameters work No error messages are thrown, but the ACCESS table isn't updated when I try to use the function with parameters.
Code Snippet
private void UpdateAlternateData( DataSet dset, Int64 akey)
{
String sql = &q
-
- Current up- and downstream
by DERDEWILL
- 1 Replies
- Last post
by DERDEWILL
- Hi. I want to know how I can get the current up- and downstream (KB/s) of my internet connection. I don't find anything about it, yet. I'll hope that someone of you can help me Best regards, Ben.
-
- NTFS effective permissions
by armaSANEA
- 3 Replies
- Last post
by armaSANEA
- Hi, My question is: How do you get the effective user permission rights on a folder I need to determine if an user has write permission to a folder. Are there any best practices Because I figured iterating over the groups of the user, and this does not seem effective.
-
- problem in client/server application
by bola shokry
- 14 Replies
- Last post
by RizwanSharp
- Hi every one,
I developed a client/server application .
client connect to server correctly if both are under the same router (in the same Lan) , but the problem arised when the client and the server arenot in the same Lan they cant connect together.
I checked the router configration ,it was correctly setup.
please if you have expirense in this problem help me.
Thanks for reading my
-
- How can I detect muliple rows in dataset using XSL ?
by Vaish
- 7 Replies
- Last post
by Vaish
- Hi
I have the follwing dataset(Tbl1 and Tbl2 with two rows).I have xsl file(given below) to restructure the xml file. Tbl2 may have more than one row and the dataset may change time to time(Tbl2 will be 1 or more rows)
If Dataset with 1 row of Tbl2 I can handle xsl file to manage it. But If Dataset with more than 1 row in Tbl2 (please look at the xml file below) How can I write the code(xsl)
-
- A problem in an unmanaged callbacks
by SaloTheSolo
- 1 Replies
- Last post
by nobugz
- I've got a prob in calling callbacks heres my piece of code: //the delegate Public Delegate Sub PriceProcAddr (ByRef PriceUpd As DemoApiStructures.PriceUpdStruct) //the implementing function Public Shared Sub PriceUpdate(ByRef data As PriceUpdStruct) MsgBox("Price Update") End Sub //the delegate caller Dim MPAPU As PriceProcAddr = AddressOf PriceUpdate ptRegisterPriceCallback(C
-
- The handle is invalid at Microsoft.Web.Services.Security.X509.X509Certificate.get_Key() error
by sandeep_kumar08
- 0 Replies
- Last post
by sandeep_kumar08
- Hey i am calling a web service(third party) and i am getting this error
"The handle is invalid at Microsoft.Web.Services.Security.X509.X509Certificate.get_Key() at Microsoft.Web.Services.Security.X509SecurityToken.get_SignatureKey() at Microsoft.Web.Services.Security.Signature..ctor(SecurityToken token)"
and this particular error is coming in this part of code
priv
-
- UDP Speed problem ... with small packets
by cdemez
- 2 Replies
- Last post
by cdemez
- Hi everybody, I'm workin on a soft called RUDP (Reliable UDP) in C# but I have a low level question... surely you can answer it. I have do a benchmark on local (client and server are on the same machine). 1 - I send UDP packet of 32 Kb -> Speed : 100 Mb / s 2 - I send UDP packet of 2 Kb -> Speed : 10 Mb / s I would like to know why the second test is so slow... the "sendto" is in
-
- ISerializable members not called - help!
by TrevorW
- 1 Replies
- Last post
by Sowmy Srinivasan
- I have a class where I inherited from ISerializable and IDeserializationCallback
It is only half serializing: members are missing.
It seems that the parent object is NOT getting the GetObjectData method, nor the special constructor called. Oddly, child members are.
I try to debug the parent and the methods/constructors are never called. I even tried throwing exceptions and NOT
-
- Best Practice DAL
by SuperRobot5000
- 1 Replies
- Last post
by Bashmohandes
- Hey All! I was wondering if any of you guys have used or would consider using SubSonic ( http://www.codeplex.com/actionpack ) ======================================================================= About Subsonic: SubSonic is a toolset that helps a website build itself. At it's core it's: * A Data Access Layer (DAL) builder that requires no code on your part, it builds itself at compile-time wi
-
- Caching in .Net Windows Application
by Deepak.M
- 1 Replies
- Last post
by Nayan Paregi
- Hi,
I'm using c# .net windows application. I need to cache the data on the local machine.
Even if I close the application and reopens it, I should able to get that information.
Is there any solution to cache the information locally on the disk and retrieve that
Thanks & Regards,
Deepak.
-
- Web Service that returns Serialized Generic List
by dccMike
- 5 Replies
- Last post
by John Saunders
- Hi,
I have a web service creates a generic list collection of objects; eg:
--------------------------------
[Serializable]
public class DogCollection : List< Dog >
{
}
--------------------------------
Once my web service has created the collection, I would like to pass it back as xml. I am trying to find a sample that serializes a generic list and retur
-
- Vista troubles.
by AlexBB
- 14 Replies
- Last post
by AlexBB
- Had to install a Vista out of necessity. I lost Internet connection on my WinXP partition where all my development work was done, tried to restore it for a few days with no result, and decided to become "progressive" once and for all.
Vista seems to be a wonderful OS. I was surprised how easy the installation turned out to be. It is very estetically pleasing. Then the trouble bega
-
- How to save setting to reference *.dll file
by TaeKung
- 1 Replies
- Last post
by nobugz
- Ex.
In test.dll file
Public Class Class1
Public str As String = "Help Me"
End Class
I have *.exe with a reference to the test.dll.
Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load
Dim o As New test.Class1
o.ProTect = "Thank You"
End Sub
-
- data saving\access
by kevdog114
- 3 Replies
- Last post
by Derek Smyth
- Where is the forum for the following question:
Is there any way that i can save large amounts of data(text strings) easily. I know how to use text files but There is not really an easy way of using them for many strings of data(even thought it is possible.
-
- Xml file created via XmlDocument - last part is all binary zeros
by omgtifbs
- 8 Replies
- Last post
by Sergey Dubinets - MSFT
- Hi,
I create XML files via the XmlDocument class, and I noticed that one of the files has all binary zeros in the last 20% of it or so. It ends abruptly in the middle of a node after which the file is binary-zero-padded. Should this be theoretically possible for an XML file created via XmlDocument Is there a possible exception that could be thrown by the XmlDocument class while it's in the
-
- Please Help! - Populating a dropdownlist with data from a web service
by JAW73
- 4 Replies
- Last post
by JAW73
- Hey Guys,
I didn't think that this would be a problem until I got into it and I cannot seem to find any examples out there.
What I want is pretty straight forward: I just want to bind a dropdownlist to data coming from a web service. I have no problem bind the data to a gridview but the dropdownlist is causing a fuss. Please see my code below and any help would be GREATLY appreciated!
-
- Replace Text in a File
by seanperry
- 5 Replies
- Last post
by TilakGopi
- Hi All,
I am sort of stuck and I have been looking for a solution at this problem... It sounds simple but its not... Please help me.. Let me try to explain this..
I have a file with hundreds of line in it and starts like this
-- Start Date : 20050308_162107 -- End Date: 20050308_162107 Insert command Delete Command ... ...
Please note on the 2nd line --End Date: 20050308_162107 could a
-
- Embed Word Viewer into web page in c#
by Tony Bishop
- 4 Replies
- Last post
by Martin Xie - MSFT
- Hi,
I need some pointers on how to allow mail merged docx files to be shown in a web page and be editable and printable. I have been able to get the system to merge data and then open in a local copy of Office 2007, but some of our agents do no have office, so I need to build the document within a web page.
Any advice is much appreciated
-
- Why the Calendar object sometime is read-only ?
by CSVAX
- 7 Replies
- Last post
by CSVAX
- Hi All,
I have the following codes to convert the 2 digit year to 4 digit year:
DateTimeFormatInfo DTF = new DateTimeFormatInfo();
DTF.Calendar.TwoDigitYearMax = System.DateTime.Today.Year;
return DTF.Calendar.ToFourDigitYear(twoDigitYear);
Sometime, the 2nd line will throw out an error as:
Instance is read-only. at System.Globalization.GregorianCalendar.set_