 |

|
Ok,so that means even if refer to the name spaces in multiple project also the DLL gets loaded only once.
For example referring to the Microsoft.Practices.EnterpriseLibrary.Data in business layer and data access layer will ensure that DLL having the namespace is loaded only once through out the entire program execution.
Sastry
|
|
|
|

|
Sastry_kunapuli wrote: so that means even if refer to the name spaces in multiple project also the DLL gets loaded only once.
This has nothing to do with the using statement, or with the number of projects that it is used in. A DLL is a code library that is used by an executable program, and is loaded into memory when some code in the executable makes a call to one of its methods. Having a using statement in your source code merely allows the compiler to satisfy references to methods or classes that are not defined within any of the source modules of the project. However, if no direct references are made from the program that contains the using statement, then the associated DLL will not be loaded.
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|

|
So referring the namespace in multiple project/class libraries does not affect the number of times a DLL into memory.
Something like referring to Microsoft.Practices.EnterpriseLibrary.Data in BusinessLayer.DLL and DataAccess.DLL,will ensure that .NET loads the Microsoft.Practices.EnterpriseLibrary.Data.dll only once ?
Sastry
|
|
|
|

|
It doesn't "do" anything, it simply instructs the compiler where to look (in referenced DLL's or in .NET language, "assemblies"). They aren't evaluated during runtime at all, it's only used in the preprocessor during the linking phase of the compilation process.
Like the other poster said, if you don't use the "using" statement, you have to explicitly identify where to find certain functions in the included assemblies. It essentially just saves a lot of typing as stated.
Oddly enough, the "using" statement can also be used to re-assign namespaces and class names. You can use it to "alias" namespaces.
Another "using" keyword is to limit the scope of a variable and do automatic clean-up, like:
using (SolidBrush sb = new SolidBrush(Color.Red))
{
//Use the solid brush here
}
//Here the solid brush no longer exists, and the object is correctly disposed.
|
|
|
|

|
I need insert,delete and update data from SQL database in gridview.Please help me.Thanks
|
|
|
|
|

|
Permission granted! Please, proceed.
...or did you mean to ask a question in there somewhere??
|
|
|
|

|
<asp:FileUpload ID="FileUpload1" runat="server" />
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
// this is a aspx.cs file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
public partial class we : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
DateTime creationTime = File.GetCreationTime(FileUpload1.FileName);
Label1.Text =creationTime.ToString() ;
}
}
//I tried this ..but I got the output 01-01-1601 //05:30:00 for all files. So what should I do?
shah k .j
|
|
|
|

|
I'm not going to split my effort over two identical questions. So pop back over to your original post and answer my latest response.
Alan.
|
|
|
|

|
I am interested in the most efficient way to store values from an object array containing dates, string, double, integer, Boolean, and null values. The values will then be restored back to the array by reading the file at a later date.
BinaryFormatter is very slow and inefficient and looking for another solution.
Need to stay in .NET Framework 3.5
Ken Eldridge
|
|
|
|

|
When I want to write out data quickly and efficiently I tend to implement the ISerializable interface directly on the classes I want to serialise and manage the writing out myself. The reason the BinaryFormatter is so slow is because it's using reflection to work out what to serialize. By specifying this yourself you save the formatter from having to do this which results in a much faster implementation.
|
|
|
|

|
Pete, are you available for paid consulting? If so how can I reach you to discuss project scope?
|
|
|
|

|
I need to pass an array from C#.net application to oracle stored procedure. Can anyone please let me know how to go about it? Also, which OracleType type do I use in C# when passing input parameter to stored procedure?
FYI, am using System.Data.Common.DbConnection in my C#.
|
|
|
|

|
Asking the same question again as you asked yesterday isn't going to get you an answer any faster. People answer the questions on a volunteer only basis, so it's rude to attempt to bump your post like this.
|
|
|
|

|
Did you try to pass it as XML, as suggested yesterday?
Bastard Programmer from Hell
|
|
|
|

|
Yes. I tried it by passing it as XML and works fine.
Thanks a lot.
|
|
|
|

|
I am using System.Data.Common.DbConnection.
How can i pass List<> to oracle stored procedure.
|
|
|
|

|
I haven't used Oracle in quite some time.. but I doubt that it'll know what to do with a List<>.
Pass it either as a table (if Oracle has a table-datatype for your param) or as XML in a single string.
Bastard Programmer from Hell
|
|
|
|

|
I am using System.Data.Common.Dbconnection to connect with my oracle database.
How can i pass List<> as a parameter to Oracle Stored procedure.
|
|
|
|

|
Hey guys,
Here are the complete results from a poll published by Pluralsight last week, asking their users which ORM tool for .NET they think is the best. Although the results are somewhat predictable, it's interesting to take a look at the picture.
Do you use any ORM tool and if so, which one do you prefer? What are the most important features of an Object-Relational Mapper for you?
modified 23 Apr '12 - 6:47.
|
|
|
|

|
Hi,
I prefer Entity Framework despite the fact that I have used LINQ to SQL a lot. I prefer Entity because of it's advantages over LINQ. I prefer Microsoft based framework rather than third party frameworks.
Cheers
|
|
|
|

|
I like PetaPoco because it is simple and tweakable.
|
|
|
|

|
hello every body :
I need your help if you can
I want to to add information to reportViewer from a DataGrid.
thanks.
|
|
|
|

|
Hi,
Could you please describe more. I presume you want to send GridView's data to the ReportViewer?
|
|
|
|

|
hi all, i have a an ActiveX object for the downloading my componet to the client machine.Its working fine as.html page,but my problem is when i placed it in to .aspx page its not working. Please suggest me
|
|
|
|

|
Try the ASP.NET forum.
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|

|
Your question makes no sense at all. How do we know what your requirements are? How it will be used in your application? There is no "best", only what works for your requirements and skills.
Failure is not an option; it's the default selection.
|
|
|
|

|
OK,
I have a pair of a kind(key , val).
I need to store them in sorted order by the key value.
I need the option of searching also.
Thanks.
|
|
|
|

|
SortedDictionary<TKey, TValue>
|
|
|
|

|
columbos14927 wrote: What is the best data structure .Net suggest if i want to store a couple of a
kind (int , int) when the first int is the key of the couple?
Dictionary<int, int>
Bastard Programmer from Hell
|
|
|
|

|
If you need fast lookup based on the key value, a Dictionary is highly recommended. It is fast, however it does not preserve order.
If order is most relevant to you, you might opt for a List of KeyValuePair objects. However I can't easily imagine a situation where I would. Alternatively, you could go for a Dictionary plus a List that holds the keys in the order you want them. I do this occasionally.
|
|
|
|

|
Using the KeyValuePair class[^] should help you solve your problem.
|
|
|
|

|
You have stated in another response you want it to be sorted too?
if so, how about the SortedDictionary[^]?
|
|
|
|

|
I'll chime in with the rest - SortedDictionary. I've used it extensively in VS 2008 projects for just this purpose, where I wanted key lookup of values but also wanted to iterate through the list in key order.
"It's not what you don't know that will hurt you the most, it's what you think you know that isn't so." - Unknown
|
|
|
|

|
FRENCH
Je veux créé un "Web Browser" c'est a dir un navigateur intenet en VB (Visual Basic) qui ne serais pas basé sur le Controle Actve X de Intenet Explorer (IE) mais sur celui que je vais créé. Alors je vous demande comment le créé (Mon webrowser control)?
English
I created a "Web Browser" is a dir intenet browser in VB (Visual Basic) that would not be based on the Control Actve X of Intenet Explorer (IE) but the one I will created. So I ask you how created (my webrowser control)?
|
|
|
|

|
What will be the functionality of your browser?
Will the Control do more than just paint the page? (e.g. have buttons, menus, ...)
Will it support HTML4, HTML5, CSS, CSS3, JavaScript, ...?
Why do you want to do this? I could come up with a few reasons, however I'm curious about your reasons.
And why did you ask in French, as your English is clearly better than your French, at least as far as spelling goes?
|
|
|
|

|
Can any one help to limit the internet usage of the computers connected in a LAN network.
|
|
|
|

|
Yeah, it's called a proxy server. Since you haven't asked a more specific question, that's about as specific as the answer is going to get.
|
|
|
|

|
Hi, can anyone tell me which .NET framework is superior to work on?
-- modified 17 Apr '12 - 1:53.
|
|
|
|

|
IMO, its always best to use the latest (ease of use is something that depends on how fast you can learn the new features of the version).
|
|
|
|
|
|

|
All of them. It depends on the app requirements and the lowest common denominator for platform support.
|
|
|
|

|
Dave Kreskowiak wrote: All of them. It depends on the app requirements
That is absolutely correct.
|
|
|
|
|

|
.net 3.5 Version Is Easier to use
|
|
|
|
|

|
The answers given by Abhinav and Dave Kreskowiak are absolutely correct.
I want to add that
.NET 1 and 1.1 are now obsolete.
Even though Visual Studio 2008 and above provide multi targeting feature, there is no support for .NET 1 and .NET 1.1.
The size of .NET 2 is less, around 22.5 MB. With the introduction of generics and other improvements in .NET 2, I think, if there is a concern about the size of deployment, .NET 2 can still be used, if there is no specific requirement for new features available in the later versions.
For some features like, extension methods and LINQ to objects there are certain work arounds to use them in .NET 2 also.
|
|
|
|

|
I am developing an application called mysql query browser in C#.net. I have to mention hardware and software requirements in my SRS.But I dont know how to know what are these and what is the reason behind this....so plz tell me....I am using .net 3.5..thanks...
|
|
|
|
 |