|
How can i fetch a row of values from dataset, I Prefer to the row type, the one that created by dataset.
What is a advantage and Disadvantage of Dataset and DataReader?
|
|
|
|
|
Saksida Bojan wrote: What is a advantage and Disadvantage of Dataset and DataReader?
"As with many developer decisions, there is no clear-cut choice between using a DataSet or a DataReader."
Hmmm....in my own thinking, it seems clear that DataSets+DataAdapters are a better choice for smaller projects where:
* The development time can be considerably shortened by avoiding creating business object classes and using the nice relaitonal/table-like features of the DataSet
* The underlying tables are very simple, which again ties in with the RAD aspect of DataSets since you can rely on auto-generated Update-, Delete-, and InsertCommands.
On the other hand, when working on larger object oriented systems, a DataReader will generally always perform better than a DataSet. Using try-catch-finally/using (C# only) (like a any good developer), you can always ensure that if there is an error, you close the underlying connection. You also get more flexibility in how your object relationships are represented, but at the cost of having to build those relationships manually.
So it seems pretty clear-cut to me. DataSets are great for RAD and if your application deals with the underlying data in a table-like manner (typed-DataSets abstracts this somewhat into a more object oriented manner). If you want the best performance and most flexibility, DataReaders+custom business objects are the way to go.
SSK.
|
|
|
|
|
If my project voud require more performece, i will update it to DataReader.
It woud be easier to change from DataSet to DataReader once you have all tables.
And what about this question.
How can i fetch a row of values from dataset, I Prefer to the row type, the one that created by dataset?
|
|
|
|
|
Hi,
I need to add entries (key and values) to a EXISTING resource file (resx) programmatically. Can anyone plz help me on this?
Thanks
Carpe diem,
Krg
|
|
|
|
|
Hi to all,
I want to implement blog and forum in my project.
Is there any open source available which in written in asp.net and
vb.net through which i can implement blog in my project.Please
tell me if there any opensource software available and how can
i use it in my project?
Thanks.
Rahul
Rahul.
|
|
|
|
|
rahul.net11 wrote: I want to implement blog and forum in my project.
Is there any open source available which in written in asp.net and
vb.net through which i can implement blog in my project.Please
tell me if there any opensource software available and how can
i use it in my project?
Yes. You might want to look at SubText - I don't know what language it is written in though.
There are also blog and forum modules for DotNetNuke which is open source, so you might want to look at that - They are written in VB.NET to my knowledge.
|
|
|
|
|
Thanx
I seen SubTex but it is written in C# and it support asp.net 2.0 and
same as DotNetNuke. I need an opensource software which is written in
vb.net and support to qwp.net 1.1. Is there any?
Thanks.
Rahul.
|
|
|
|
|
A quick search through google and I found this[^] one.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Thanx
I download the code but the code dosenot contain solution file
Without solution file how can i run the code? I think vb.net code
is in vb.net 2.0.
Thanks.
-- modified at 8:56 Thursday 20th September, 2007
Rahul.
|
|
|
|
|
rahul.net11 wrote: I seen SubTex but it is written in C# and it support asp.net 2.0 and
same as DotNetNuke.
Both have .NET 1.1 equivalents which may not be as advanced as the current .NET 2.0 version.
Why is VB.NET so important?
|
|
|
|
|
|
Hi All,
I have being given an assignment where I have a TreeView inside GridView Control. I want to show GridView control having parent child relation ,show in the form of Treeview.
Somewhat shown in this link:
http://www.treegrid.com/TreeGrid5_0/Html/EJSTreeGrid.html
How to do this???
Thanks in advance...
|
|
|
|
|
Hi
You can also achieve this by taking GridView inside Gridview.
Take One DIV tag in gridview and another GridView in DIV tag.
Take One Image button in Parent gridview and call javascript to make visible true or false to DIV tag on click of this Image Button.
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
Hi Imran,
Thanks for the reply but my requirement is to use treeview control only. Can u please help me with it???
Thanks again...
|
|
|
|
|
Any luck.. Pls mail me if you have any articles.. Thanks..
|
|
|
|
|
|
Hi there,
i have a function which store value of document path, in my web application i have two path for example
1. path one domainname\jp\xyz
2. path two domainname\sg\xyz
the application able to get the location path of number 2 and it function is use to delete that path folder. when the user from the jp domain try the function thro error the document path cannot found?
how can i assist the string a dynamic value? since it taken value from web config
<add key="SG_PostFolder" value="D:\DMStest\Post\">
<add key="JP_PostFolder" value="D:\DMSTest\Post\">
This is the function
public string GetPostLocation(string strDocumentNumber)
{
int intTypeLength =0 ;
string strPostLocation = string.Empty;
try
{
if(strDocumentNumber.Trim().Length == 16)
intTypeLength =1;
else if(strDocumentNumber.Trim().Length == 17)
intTypeLength = 2;
strPostLocation = _postFolder;
}
catch(Exception ex)
{
throw ex;
}
return strPostLocation;
}
any suggestion please
regards
Ybasha
|
|
|
|
|
Only suggestion that i can give try to debugg your application as i am not getting your requirements so debugg t and see what the parameter value is ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
hi sandeep,
Thanks for ur suggestion i already debug and when i use the application for sg domain name the function show me the file in <add key="SG_PostFolder" value="D:\DMStest\Post\"> and it delete the document nos which i pass where as when i use the function from jp domain it thro error the document nos is not found.
i think when am using the jp domain it still read the value from <add key="SG_PostFolder" value="D:\DMStest\Post\"> where is suppose to read the path from <add key="JP_PostFolder" value="D:\DMStest\Post\">
my question is how to assign the dynamic value to a string? hope this is clear.
regards
ybasha
|
|
|
|
|
try to use Server.MapPath("jp/"); relative path don;t give domain name
Might be your file structure is not proper or missing something
Sorry but i am really confused of domain ..
but
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hi friends,
I am using MS.NET 2005.
In my web application i open a child window ,after clicking the submit button in child window i need to close the child window and perform one JS function in the parent window.
is it possible??
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
Yes but the thing is that instead of puting javascript function in page put that in one js file and call that function after unload event of child window what you think
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
thank u
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
Hi,
I have a doubt in my coding how can i achieve this
"
How to display modal popup dialog only if some statement is TRUE ?(means without the help of a button click or something like tht)
"
please anybody help me...
regards
alex.
|
|
|
|
|
How will you be changing the state of your condition?
|
|
|
|