Answer Questions
Brian.Webb how to assign value to label dynamically
hi, i having a problumn for assign a value to Label dynamically, i am using this code <asp:label id="Label1" runat="server"><%=Variable%></asp:label> Variable i have define publicly on code window, Please send me the solution Its good practice to set object properties in the code behind file. So the code to set it in the page_load event is: Me ...Show All
sammye Checking internet connection
I want to check if internet is available on Lan or not how can i achieve this functionality is this a vb.net code because i need c# related so plz tell me There is a Ping class you can use with System.Net and it has samples in C#, VB and C++. You can use either the MSDN documentation that comes with Visual Studio or you can get it from here http://msdn2.microsoft.com/en-us/library/system.net.networkinformation.ping.aspx ...Show All
Prams ThreadPooling in c#
I have to upload 70 files using ThreadPooling and code i have used is as below.I have set the maxthread size as 10.But it is uploading only 8 files. Please tell me how to make it work.Also if u can please give a sample code.Help will be greatly appreciated. WaitCallback callBack = new WaitCallback ( UploadFileEx0 ); for ( int i = 0 ; i < 70 ; i ++) { if ( true == isThreadAvailable ( true )) { T ...Show All
Marjan Badiei - MSFT the performance of DataTable.Merge() in ADO.NET 2.0
Dear Sirs, I have see ideas at http://msdn.microsoft.com/msdnmag/issues/05/11/DataPoints/default.aspx and I have a question about the performance of DataTable.Merge(). It seems in ADO.NET 2.0 this method executes with increasing time when DataTable has more data rows, while merging about 10 rows each time. The table I used as follow, &n ...Show All
Don SW How do i enable AllowDBNull property with TypedDataSets?
I would like to make certain columns to have the AllowDBNull=false in a typed dataset. I tried setting the nillable property to 0 and also tried false in the DataSet designer, but this does not work when I build. It appears that the MSDataSetGenerator only sets AllowDBNull property if the column is a key. Dont what im doing wrong. Any ideas. Thanks. If you have minOccurs = 1 in the XSD on the correspondi ...Show All
PhillipM Unmanaged host App catching events from managed
I want to host a managed assembly (decrypted from resources) on a C++ application. The first step is done and works. but I have a problem, if a missing assembly is not found when I execute the dynamic loaded assembly the application don't start and no "_com_error" is thrown. I saw a bunch of methods exposed by the interface _AppDomain: add_UnhandledException remove_UnhandledException ... add_AssemblyResolve remove_AssemblyResolve ... H ...Show All
Gerardo Rossi Error 25007.Error occurred while initializing fusion. Setup could not
Hi, I am trying to install .net framework 2.0 on Windows XP OS. I get the following error " Error 25007 . Error occurred while initializing fusion . Setup could not load fusion with LoadLibraryShim(). how do i solve this YES ! This works also for me. I was also trying to install VS2005 SP1 on my machine and than I wasl unable to install FW 2.0 or V ...Show All
Earths How to protect my assembly
Assembly a.dll is used by application b.exe, while we distribute the application b.exe, a.dll is also shipped together. My question is how to prevent a.dll from abusing by other appliations than b.exe. In other words, I like to make sure a.dll can only be used by b.exe. Is there any ways to achieve this Thanks Anything that run on the client is potentially cracked and can be reused, no matter what language or encryption taken. If th ...Show All
J&#233;r&#244;me Bonnet how to authenticate to a webserivce
I have an ASP.NET application (sharepoint portal site) which is running under an application pool with a service account. I need to add a functionality to this application to call a web service on another domain (which is trusted with the domain my application is under). Both asp.net application and web service are using windows authentication. How can I authenticate to the remote webservice can I use the credentials of the user who has logged i ...Show All
MBowen How to know the variable/method is private or public from PE file??
How to know the variable/method is private or public from PE file There is great article about .NET File Format on codeproject by Ntoskrnl. It explain alot about .NET PE file. You can read the article from here http://www.codeproject.com/dotnet/dotnetformat.asp Hi Nose, I assume that you mean visibility of a field, since a variable does not have any visibility associated with it. Check out th ...Show All
Wonder Andile Can not pass the data back from C (unmanaged) to C# (managed) using custom marshaling
I declare a function in C# as follows: [DllImport("D:\tt.dll", EntryPoint = "ModifyPoint")] private static extern int ChangePoint( [In, Out, MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeofPoint3DMarshaler))] Point3D pt,int x, int y, int z); [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] public class Point3D { public int x; public int y; public int z; } in main() Point3D pt = new P ...Show All
Payteq Possibility to query the CLR execution engine ?
Hi, anyone out there who knows if (and if so, how) it is possible in the .NET framework to obtain the list of objects which are actually managed in a running application Thanks. Seems I'm doing a bad job in describing my problem The application I refer to, allows the user to create one or more instantiations of one or more classes provided by the application. Think of a menubar which& ...Show All
Michael Chroman SqlClient.SqlException
Hi, All. I am not sure my question belongs to here. I tried to use DAAB(Data Access Application Block) in my project, and got an unhandled system error on system.data.dll. The code broke on da.fill(ds); line as listed below. I have tested the connection string and the stored proc, and they are all working. What else should I do Thanks! public static DataSet ExecuteDataset(SqlConnection connection, CommandType commandType, string ...Show All
Konstantinos Polychronis The name 'Profile' does not exist in the current context
So, I'm using the .NET 2.0 Profile object to manage custom user data on an internal site for my company. Everything seems to be working flawlessly until I realized I was going to have to add a redundant block of code to every aspx page in order to take advantage of the Profile. At this point I decided to create a custom base page that could be inherited by all of my aspx pages. Seemed like the right idea, until I got the above error: T ...Show All
Matt Morehead XmlCompiledTransform does not support "child table in two nested relations" schemas?
XslTransform.Transform() can generate the following: < A > < B ></ B > < C > < D > < E ></ E > < D > < E ></ E > &nb ...Show All
