Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Creating the moduleCreating the module
Previous
 
Next
New Post
4/19/2007 3:02 PM
 

Hello everybody,

I'm totally frustrated!

Let's say we have a table "Xs" with 3 columns:

"ModuleId" int,
"XId" int identity (1,1),
"Xxxxxx" char (20),
"Xyyyy"  char (20)

- in database and some stored procedures like "GetXs":

select * from Xs

Go

and "AddXs":
@ModuleId int, @Xxxxx char (20), @Xyyyy char (20)

as

insert into {objectQualifier}Xs (ModuleId, Xxxxx, Xyyyy)

values (@ModuleId, @Xxxxx, @Xyyyy)

select SCOPE_IDENTITY ()

DAL functions and BLL functions work correctly and when I'm trying to add new data from my webApplication I get good result as I chek it from SQL tab (select * from Xs) by signing as host. But when I'm tryng to get the data I get nothing, I mean that IDataReader object is empty somehow . I investigated that SqlHelper.ExecuteReader in my sqlProvider.GetXs connects to the database and try to populate the data, because it get the names of the fields in good way, but it do not get any rows for these fields. It looks like the table of  Xs is empty (?!).., although I have add the data.

Any ideas where the mistake could be?

 
New Post
4/19/2007 9:21 PM
 

Ummm -

GetXs -  I assume is actually something like

@Xid int
AS
Select * FROM Xs WHERE Xid = @Xid

Westa

 
New Post
4/20/2007 12:28 AM
 

Well yes, if I would like to get the exact Xs, I need the condition.. But what if want to get all of Xs.. the WHERE clause do not fit here and no need for parameter.

Or I do not understand something?

 
New Post
4/20/2007 11:00 AM
 

If you are not filling the information ensure that the field names match...the property names in your information objects.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
4/21/2007 11:09 AM
 

Well, acctually I've already checked that. But as I think the mistake is somewhere in DAL.

The IDataReader object which is returned by SqlDataProvider (Function GetXs) has the values as follows:

IDataReader dr = CType(SqlHelper.ExecuteReader(ConnectionString, DatabaseOwner & ObjectQualifier & "GetXs"), IDataReader)

dr.GetName (0) - "ModuleId"
dr.GetName (1) - "LabasId"
dr.GetName (2) - "Xxxxx"
dr.GetName (3) - "Xyyyy"

dr.GetValue (0) - "Invalid attempt to read when no data is present"
........

As I said, If I try to select data from SQL tab in Host section, I get everything that I need.


 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Creating the moduleCreating the module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out