|
shreekar wrote: TableAdapter can be used as a replacement for DAAB
Do you mean DataAdapter?
shreekar wrote: Any thoughts on this?
I don't use DataAdapters at all. I find they don't give me the control that I want. They produce overly large and cumbersome DataSets with lots of functionality that I don't need. I use my own solution that dumps data in to Data Transfer Objects [DTOs] (basically a very simple class that contains nothing but fields and properties that relate directly to the columns being returned from the database). It is probably too much to explain in a forum post but I got the idea from the way DotNetNuke deals with the database (Search on DotNetNuke Data Provider for articles on how their implementation works). Each DTO is very lightweight, typesafe and can work with the DAAB.
|
|
|
|
|
Well, I did mean TableAdapters - the new thing introduced with VS 2005 (not a part of .Net 2.0)
The mapping of fields and columns with the properties is the most natural mapping IMHO and the App Logic layer would have that ultimately in one form or another.
My question is - what is the better approach between such mapping and TableAdapters.
Shreekar
|
|
|
|
|
Help me!
Thank you very much
|
|
|
|
|
You can use typed datatypes.
fill then using sql server, and set the report source to them in your crystal report.
Steve
|
|
|
|
|
Initialy i've taken the fileName and i want to take filename's contents the Datas.And i want to directly store in Access Database 2000
How to take the file's condents and one more thing i want to store the file's contents directly in AccessDatabase 2000.so pls some one help me.....
thanking You
somasundaram
|
|
|
|
|
File.GetAllBytes, or something. Then, you need to create a field that can hold the data ( a BLOB? ) and push it in.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I've put the code it won't the execute So pls some one help me vry vry Urgent
Thankig you
somasundaram
|
|
|
|
|
What code ?
Are you using VB2005 ? Have you heard of google ? Why is it that so many people need urgently to know how to do something that's widely documented, but are unable to search for it ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Very sorry,no iam using VB.Net 2003, ok u carry on pls tel me....
I want to join in the website
|
|
|
|
|
OK, then you don't have access to File.ReadAllBytes, I don't believe. The system.IO namespace contains the File object, which you'd use to read the bytes of a file. Then, you just need to google for soemthing like store bytes access VB.NET to get the second half together.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Thank you
Thanking you
somasundaram
|
|
|
|
|
Hello
using vs 2005
I have a datagridview and i would like to loop through and hide rows based on a cell condition. For example, if the user want to hide all the rows that has "Serviced" in the status column.
code so far
<br />
dim i as integer<br />
for i = 0 to ds.tables(0).rows.count - 1<br />
if(serviced = true) then<br />
'hide this row<br />
next i<br />
thanks in advance,
Steve
|
|
|
|
|
Hi Steve
Simply make the RowHeight 0
Eldie
|
|
|
|
|
Sir/Madam,
I am facing the problem in the query implementation in vb.net.Like I have an id that is present in 5 tables(like table1,table2,table3,table4,table5).I have to pick those records from table1 which are not present in tabl15.I mean an id number 1 is present in table1,table2,table3,table4 .but the id number 1 is not present in table5.My final motive is i have to pick all the id like 1.
i am using the query in the following way.
dim str as string = "Select able1.field1,table2.field1,table3.field1,table4.field1
from table1,table2,table3,table4,table5
where
(table1.id<>table5.id and table2.id <> table5.id and table3.id <> table5.id
and table4.id<> table5.id)
it is showing those records that are not present in table5 but present in the remaining tables.
But the problem is , there occured duplicacy.I mean one record is iterating 24 times i the final result.
Please help.
Thanks and Regards
Pankaj
|
|
|
|
|
amaneet wrote: dim str as string = "Select able1.field1,table2.field1,table3.field1,table4.field1
from table1,table2,table3,table4,table5
where
(table1.id<>table5.id and table2.id <> table5.id and table3.id <> table5.id
and table4.id<> table5.id)
it is showing those records that are not present in table5 but present in the remaining tables.
But the problem is , there occured duplicacy.I mean one record is iterating 24 times i the final result.
Maybe you should look up the DISTINCT command and use it in your query.
HTH
Chandra
|
|
|
|
|
|
Every time I press the enter key after updating the value in a textbox I hear a beep and no events are raised. I would like it to raise the 'leave' event so I can change it's color and transfer focus to an other object. I managed to do it by checking for "vbcr" in the "form keypress event" but is there a better way? Why isn't enter key working on my textboxes?
Hope that was clear as mud!!!! LOL
Rob
|
|
|
|
|
You can use Textbox_presskey event. Such as
if keypress =13 then
textbox.background=......
textbox2.focus
end if
|
|
|
|
|
Thanks, nerver noticed that the textbox had a keypress event too!!!! I stay up to late to program I guess..... LOL But it still doesn't solve my problem of why it beeps when I press enter instead of just updating the control.
|
|
|
|
|
I have searched everywhere but can't find out how to do it. I am trying to create a multi-tabbed program and manage sub controls and content in it.
The program I'm designing is a multi-tabbed text editor, (like EditPad), and I want to manage the textbox inside of it so I can save and manipulate the text.
Is there an article on how to do this? I'm starting to think I'm in over head here. Would it be easier to do this in another language?
Thanks!
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
How about a MDI application?
Tosch
|
|
|
|
|
Thanks, but that's not what I'm looking for.
Any other ideas?
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
This is what you might be looking for (Tabbed MDI[^]), though it is in C# (you can convert to vb.net, there are plenty of sites out there that do it if you don't know how). Another option is a control (by Weifen Luo), pre-made which can be found here[^].
Cheers,
Daniel
|
|
|
|
|
The "Tabbed MDI" article is just what I needed.
Thanks a lot!
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
i want to move the text in status bar at the time of form loading
|
|
|
|