|
Why use ADO.Net when you can over complicate things and write your own classes? I love making things harder then they need to be.
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
Actually sorry for being rude. But, telling me to not use classes to represent data make no sense. And I said to please not give me answers related to ADO.NET.
Im interested in a more advanced and true oop representation of data that you are not used to.
And I can make my classes using generics just as fast as you can. Maybe even faster using Generics.
So please read the question next time.
Nick
-- modified at 15:55 Wednesday 26th July, 2006
|
|
|
|
|
You can use Typed Datasets (as a DAL) then make a classes for business logic that your presentation layer will actually talk to. With the right attributes you can make it so you can set methods as datasources for GridViews and the such. Here are some good overviews:
and
|
|
|
|
|
Well it ate the anchor tags... thats odd.
http://msdn.microsoft.com/asp.net/reference/data/default.aspx?pull=/library/en-us/dnaspnettut/html/aspnet_tutorial01_dataaccesslayer_cs.asp
http://msdn.microsoft.com/asp.net/reference/data/default.aspx?pull=/library/en-us/dnaspnettut/html/aspnet_tutorial02_businesslogiclayer_cs.asp
|
|
|
|
|
thats ok DataSets suck
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
Angry person, aren't you...
Have you had a look at the object data source in .net 2.0? As far as i know, any class that implements IEnumerable can be bound to a .net control like a gridview - it's very simple.
|
|
|
|
|
Actually. I was just annoyed that people who dont know what thier talking about give me answers that are wrong anyways. And it had nothing to do with the question.
But, for the Views(gridview, formview, and detailview) Dino Esposito briefly mentioned in one of his books that you have to extend more than the IEnumerable interfaces. That only works with the data grid.
I just need a list of the interfaces it requires
Thanks,
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
It works with Gridview. Might i suggest maybe trying it?
|
|
|
|
|
Actually you have to use the IDataBinding interface to get the full capabilities
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
Hi,
I just finished my ASPNET web application. It is a e-commerce based application developed using ASPNET and Microsoft SQL server. I am finding lot of issues with the performance.
How can I improve the performance of my application. Where are the possibilities to improve the application speed.
Thanks
-Sudhakar
|
|
|
|
|
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/scalenetchapt06.asp[^]
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
Unable to create webproject ‘WebApplication1’. Unable to create the web location ‘c:\inetpub\wwwroot\WebApplication1’. Access is denied.
|
|
|
|
|
check the security on that directory?
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
How many types of assemblies are there and what are there in asp.net?
|
|
|
|
|
Hi,
In .NET the assemblies are
1)Static Assemblies
-Private assemblies->private assemblies are created where you build the components into DLL that can be applied to one application.
-Shared Assemblies->Shared aseemblies are shared by multiple application.They are stroed in Global Assembly Cache.The GAC is located in the Assembly directory in WinNT.
2)Dynamis Assemblies->Created by using System.Reflection namespace
3)Satellite Assemblies->used Localization and Globalization
When you wish to localize the application (make the application customizable for different languages and cultures), it can be written in culture-neutral code (code that uses resources from an assembly rather than hard-coding the resources in the program) and distribute the localized modules in separate assemblies called satellite assemblies.
To create the satellite assemblies, you will use the al.exe utility (Assembly Linker) to link your resource file to an assembly, as shown in this example:
al /t:library /embed:strings.en.resources /culture:en /out:MyApp.resources.dll
The /t option will direct al to build a library,
and the /embed option identifies the file to be linked.
Hope this helps
-- modified at 13:55 Wednesday 26th July, 2006
|
|
|
|
|
Hi,
I have the small doubt.When reading about @Import directive,By default, only certain namespaces are automatically imported into an ASP.NET page. If you want to refer to a class that isn't a member of one of the default namespaces, then you must explicitly import the namespace of the class or you must use the fully qualified name of the class.
I think we can achieve this functionality by specifing the namespace with USING like
Using System.Data;
Then what is the difference between USING and @Import or Both are same.
Thanks in advance
|
|
|
|
|
The @Import directive allow to add reference to a namespace in the web page .aspx, when it gets compiled the @Import directive is translated to the using in C# or Imports in VB.NET depending on the language you choose for the web page.
|
|
|
|
|
Greetings,
I have a doubt... In my page i have a three controls a menu control, multiview control, a view controls inside the multiview.When the user clicks in the menu control the view index changes to another with postback.
I dont want the postback.... i need to manage the MenuControl with Callback but i don't know manipulate the menu control with JScript?
Someone could tell me where I find info about that?
Thanks,
|
|
|
|
|
Hi , i want to add a checkbox to my gridview just ike in the hotmail gridview see that checkbox ? i want exactly to dothe same thing
when checking that checkbox i want to select the line that thiss checkbox belong to
i added a field into my table with a bit type and i got the checkbox but it is disabled & i can't check it
can you help me please ?
try to be good if you can't be the best
|
|
|
|
|
|
thnx man i already saw it but thank you very much ?
what i want is why did he used that code ?
<br />
<asp:TemplateField HeaderText="Select"><br />
<ItemTemplate><br />
<asp:CheckBox ID="chkSelect" runat="server" /><br />
</ItemTemplate><br />
<HeaderTemplate><br />
</HeaderTemplate><br />
</asp:TemplateField> instead of using a checkboxfield ?
i tried to use a checkbox field but it gave a disabled fields so i want to know when can we use it if we can't use it right now ?
plus i want to know how to tell to the application that when i select the first checkbox i want to select the row which have the textbox checked
thank you
try to be good if you can't be the best
|
|
|
|
|
Hi
I'm having a bit of difficulty with some text encoding, the problem is that i have set up all posts so that "ISO-8859-1" is used so that when a user adds the pound symbol "£" in a text area field then character is encoded to "£" and if the user includes "&" in the text area then the character is encoded to "&", this is nessasay so that users can use the "£" symbol. The problem is that text area field has a character length validatoin check on it and if the user includes the "£" or "&" characters in the text then the characters are counted as 5 and 4 characters respectiveley instead of 1. I have tried to convert the string from the text area from "ISO-8859-1" to unicode so that "£" is changed to "£" using the code below but this does not seem to work.
String aString = jobDescriptionTextArea.Value;
Encoding latinEuropeanEncoding = System.Text.Encoding.GetEncoding("iso-8859-1");
Encoding uniCode = Encoding.Unicode;
byte[] latinBytes = latinEuropeanEncoding.GetBytes(aString);
byte[] unicodeBytes = Encoding.Convert(latinEuropeanEncoding, uniCode, latinBytes);
char[] unicodeCharArray = new char[uniCode.GetCharCount(unicodeBytes, 0, unicodeBytes.Length)];
uniCode.GetChars(unicodeBytes, 0, unicodeBytes.Length, unicodeCharArray, 0);
String outputString = new String(unicodeCharArray);
Response.Write("converted string >" + outputString + "< ");
Any suggestions?
Cheers
|
|
|
|
|
I am new to ASP.NET.
I am using cache in the place of session.Since the data stored is large,i am using catche.
Now i protect this cached data from other users and other application from accessing it.
suggest me the way to do.
All ur valuable suggestion are expected
thanking u all in advance
Arumugam
afdsf dsfasdf asdfsaf dsfsafsafsffafaf sdfaff
|
|
|
|
|
Use Session[] instead of cache.
Al
|
|
|
|
|
I have to assign dataset,so i am using catch instead of Session
afdsf dsfasdf asdfsaf dsfsafsafsffafaf sdfaff
|
|
|
|