Cancelling change in ColumnChanging event The Changing event allows you to change the value before it is saved to the table. The Changed event occurs after the value has already been saved. Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
In C#, what is the difference between System.String and System.string (lowercase) nothing really. Well, the blue one is the keyword (like this, new, for, int etc......) as for the Green color, its a class definition - to access a class, create an instance of or access its static members. Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
changing he GUID of an application Is there a way to regenerate the GUID of a VB .Net application w/o writing code (e.g. w/in Visual Studio tools).
I have a Shell that I use initially to build similar applications. I make a copy of the Shell to start with but it contains the same GUID.
I know I can change the GUID manually by going to the project's property and I can keep track of the GUIDs I use.
Is there another way Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
Is this a bug? Hi there,
I'm dealing with an almost identical problem posted here last year: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=632312&SiteID=1
Can someone confirm if the following is a bug. Thanks.
/////////////////////////////////////////////////// DataSet ds1 = new DataSet(); DataTable dt1 = new DataTable(); dt1.Columns.Add("ID", typeof(int)); DataRow dr1 = dt1.NewRow(); dr1[0] = 1; dt1.Rows.Add(dr1); DataRow dr2 = dt1.NewRow(); dr2[0] = 2; dt1.Rows.Add(dr2); ds1.Tables.Add(dt1); ds1.AcceptChanges(); DataSet ds2 = ds1.Copy(); ds2.Tables[0].Rows[0].Delete(); // Delete ID 1 DataSet ds3 = ds2.GetChanges(); ds1.Merge(ds3); /////////////////////////////////////////////////// After the merge, "ds1" contains the original (unaltered) rows plus one extra (deleted) row with ID 1. Why isn't the original row with ID 1 being deleted instead Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
How will the client come to know about the WSE settings used by service at server ?? Hi Anita,
WCF publishes all the service metadata (Security, Transport, Service WSDL, etc) in a specific URL using the protocol WS-MetadataExchange.
WCF also provides a tool svcutil.exe, which knows how to read that information from an specific URL and create the necessary classes (proxy classes) and configuration files to consume the service.
Regards,
Pablo. Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
Customize the Microsoft Office Communicator & how to send mail 1. Can you please tell how to customize Microsoft Office Communicator using C#.NET
i.e. how to add one button, how to open the chat window through a web application
i.e I expect to modify the interface of Office communicator. Can I modify the interface.
2. How to connect LCS 2005 using C#.NET Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
How Can i have a Class Like Rows Class The Rows in a DataTable is a collection. Here's a very simple Collection class :
Code Block
public class MyCollection : System.Collections. CollectionBase
{
public void Add( object o)
{
this .List.Add(o);
}
public void Remove( int index)
{
// Check to see if there is an object at the supplied index.
// If no object exists, a messagebox is shown and the operation
// is cancelled.
if (index > Count - 1 || index < 0)
{
System.Windows.Forms. MessageBox .Show( "Index not valid!" );
}
else
{
List.RemoveAt(index);
}
}
public object Item( int Index)
{
// The appropriate item is retrieved from the List object and
// (explicitly cast if you're using other than objects, such as a Widget type)
// then returned to the caller.
// return (Widget) List[Index];
return List[Index];
}
} Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
string as out parameter I have managed to do next. In C++ client i have done next:
Instead of LPWSTR* pCustomString i added this LPWSTR* pCustomString = new LPWSTR[1]; This is pointer to one member array of LPWSTR.
In C# i added next below count = 55;
customString = Marshal.StringToHGlobalAuto Method("teststring");
I have managed to pass values without exception.
Trouble now is that i need to pass array of strings, not just one string as pointer, since idl requires that.
Has anyone had something like this Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
Unique Machine Identifier Can anyone suggest a mechanism for gettting a reasonably unique machine identifier. I.e. a value that is reasonably unique on a machine by machine basis. I looked at using a Security Identifier, but these seem only to be unique for a particular system. Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
IComparer Hi I am having trouble with one or two lines of code below.
These lines are commented...... hope you wont mind helping ,
thanks...
using System;
using system.collections;
using System.Collections.Generic;
using System.Text;
namespace ch11ex05
{
class PersonCompareName : IComparer
{
//what is this line doing..
// I know IComparer expose the single method Compare,
/// which return integer.... but not sure what the line below is doing
//
public static IComparer Default = new PersonCompareName ();
public int Compare( object x, object y)
{
if (x is person && y is person )
{
return Comparer.Default.Compare((( person )x).Name, (( person )y).Name);
}
else
{
throw new ArgumentException ( "one or both objects to compare are not person objects. " );
}
}
}
} Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
C# log component Thanks SThotakura2,
SThotakura2 wrote:
Did you consider Logging Application Block It has so many things like logging to text file, database, email....
Please check the following link
http://msdn2.microsoft.com/en-us/library/aa480464.aspx
Cheers
From the introduction of the component, it over-satisfies the requirements. I just want simple log function to a local file, and it should be thread/process safe when they accessing the same file.
I am wondering whether the Logging Application Block will degrade the performance since it provides so many functions I only need basic ones :-)
regards,
George Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
Interop to VB DLL fails to load I had a feeling it might be something like that, but I didn't know where that registry information was at. I'll take a look there and mess around. Thanks. Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
Accessing a password protected file. DavidThi808 wrote:
Hi;
If access is allowed for users on the same domain that works great - I have that. But what about:
Access is limited to a local user on that server
It is on another domain and access is limited to users of that domain (and there is no trust relationship between domains)
It's on a linux/solaris/AS-400 share and you need a uname/pw for that system.
It is on a non-domain server and the share is available to "everyone." (This seems like an easy one except we do not want to impersonate as that will also allow access to files of the impersnated user and we may not want that.)
- thanks - dave Ahh, okay. I was assuming at least one local/domain user would have access to the "share". Impersonation should work for point 1. The other 3, you might be out of luck, without creating at least one drive with something like NetUseAdd. One thing to try is use URI format when accessing the share ( file://servername/sharename/directoryname/filename.ext ) and try using WebRequest, the use the WebRequest.Credentials... e.g.:
// Create a request for the URL.
WebRequest request = WebRequest.Create( "file://servername/sharename/directoryname/filename.ext" );
// If required by the server, set the credentials.
request.Credentials = new NetworkCredentials( "username" , " p@ssw0rd ") ;
// Get the response.
WebResponse response = request.GetResponse();
// Get the stream containing content returned by the server.
Stream dataStream = response.GetResponseStream();
// Open the stream using a StreamReader for easy access.
StreamReader reader = new StreamReader(dataStream);
// Read the content.
string responseFromServer = reader.ReadToEnd(); I've never tried that; and, to be quite honest, would be very surprised if it does what you want. It's worth a try though. Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
I have a 32 bit vb.net service running on 64bit.. No. That answer is incorrect.
There are cases where in interop signatures you need to use an appropriately sized data type, frequently a IntPtr which will be correctly sized for both 32-bit and 64-bit platforms.
Do you have any more information about the failure Have you attached a debugger to see if an exception of some kind is being thrown
-josh Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
What is .Net framework 3.5 licence? try finding the "eula" file Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
How to pass the datatype of map, struct from interop dll to Vb.Net application. Hi All,
I have interop dll in which there is one method which returns maps - as
interop dll method ; getInfoofFile (
LPSAFEARRAY *varlistOfFilesFoldersToImport // In
LPVOID pMapOfFileNameOrItemIDRevDwProps // Out
)
I am calling this method from Vb.net 2005 , so how to get the out paramater in vb.net application.
Thanks in adavance,
Rups Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
pronlem installing .net framework 2.0 can't install .net 2.0 due to error: error 25007 can't load an object fusion with function LoadLibraryShim (): invalid descriptor
version of package: 2.0.50727.42
tryed to troubleshoot this problem using several msdn articles but that didn't work Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
<C:\DOCUME~1\32329\LOCALS~1\Temp\IXP000.TMP\bootstrap.exe>. Reason: C:\WINDOWS\system32\advpack.dll yea i have the same problem with bootstrap.exe. every time i try to install msn live i get:
bootstrap has caused an error in bootstrap.exe. Bootstrap will now close. then it wont install what can i do
i run window ME Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
Reading Non-Microsoft files Hi Rhubarb,
OpenOffice stores all data in XML format. That xml file is zipped and given approppriate extension, like *.sxc for spreadsheet file. You can try to unzip file and load data into Dataset or XmlDataDocument and then use it in your application. Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
Fire Page_Unload Event on a Button Click Hello Asp.net Guru's:
I want to fire Page_unload Event on a button click.so it goes to the previous page.what Arguments i give for "Sender" and "e". why i can not use ' Me .cmdClose_Click' on page_unload
I appreciate your response Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
build a xml file into a binary (dll or exe) I have a xml file and part of my code need to use this file as an input to executes another program. For some security reason, I don't like to release this xml file with my binary. So is there a way to build the xml file into a binary and at runtime I can generate this file dynamically and pass it to the program Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
Convert Int32 to Unknown Enum According to article:
I may be able to resolve the name via the value when using a "normal" enum, but what should I do, if the Enum is a flagged enum I just can't resolve the name ... Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
How to animate in the console? By the way, I just noticed that this won't work as copied out of the post. The forum has collapsed the number of spaces in the Console.Write(" ") statement that I used to clear the line. Just make sure there are five spaces in there and it will work. There might be a better way to clear the line, and of course the real trick in anything like this is how to keep updating it while you are actually doing work, instead of just simulating it inline like I did. Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
Run Time APP DB Changing Hi, djmikke
Application settings in .NET 2.0 has two types, based on scope, i.e. application-scoped settings and user-scoped settings.
Application-scoped settings provide information associated with the application, so users cannot change them at run time. User-scoped settings can be used for information such as remembering the last position of a form or a font preference. Users can change these values at run time.
For more information, see: ¡°Client Settings FAQ¡±
http://blogs.msdn.com/rprabhu/articles/433979.aspx
Thanks Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
Displaying a Query in a TextBox..help You know, I may have misunderstood what you were asking initially. Did you want to know how to set the parameters Because I see that you tried to add them, but then you never used them. So, you had this:
command = New OleDbCommand("SELECT * FROM Customers " & _ "WHERE Names = popo", conn) command.Parameters.Add("Names", OleDbType.VarChar, 15) command.Parameters.Add("Area", OleDbType.VarChar, 15)
Were you initally asking about this kind of syntax
command = New OleDbCommand("SELECT * FROM Customers " & _ "WHERE Names = AND Area = ", conn) command.Parameters.Add("Names", OleDbType.VarChar, 15, NameBox.Text) command.Parameters.Add("Area", OleDbType.VarChar, 15, AreaBox.Text) Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
How to use IDataAdapter ?? You have to pass variable of SqlDataAdapter type to the code and assign it like (assuming MySqlAdapterVariable is of SqlDataAdapter type)
IDataAdapter adapter = MySqlAdapterVariable;
Then you could call Fill method Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
Configuring access datasource HELP!!! If you want to just get some data from a buch of text files, maybe a better approach might be to go after the text directly rather than via access.
Are all the text files in a particular directory or set of directories
Can you provide the layout of one of the files, and the information you are after
It should be faily easy to get a quick example running. Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
Eventid missing in Framework 2.0 I don't quite know how to explain the disparent values. One thing I will point out though is that you'll ultimately be getting back an int so you should truncate the InstanceID (which is a long) to an int before doing the binary operation. Maybe this will resolve your issue.
Michael Taylor - 2/17/07 http://p3net.mvps.org Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
Select options from a dynamic web programatically You don't want to post the entire contents of the page, but only a short string describing all of the elements of the <form> node thats being submitted. The general format is:
[name]=[value]&[name]=[value]&...
For instance:
__EVENTTARGET=drpservice&__VIEWSTATE=...&drpservice=051
-dave Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
problem loading .csv file Hello,
The application I'm building is supposed to read data from .csv file and then put it in Sql Server. I'm trying to connect to csv file like this:
OdbcConnection conodbc = new OdbcConnection ( "name1.csv" ); also like this
OleDbConnection conole = new OleDbConnection ( "name1.csv" );
but in both cases i get same error
{"Format of the initialization string does not conform to specification starting at index 0."}
how can i solve this Is there some other way to load csv file
Thanks Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
SerialPort class in non-overlapped mode No, You forget the start bit and the stop bit. There are at least 10 bits to transmit for each byte. If you also use parity, there are 11 bits.
Sorry, I don't know anything about p/Invoke. Tag: .NET Framework Networking and Communication how to dial a phone number in a ASP .NET application? .NET Development
Emerson Correa
Hello:
Does anybody know how to dial a phone number in an ASP.NET application