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.0Simple DB Q (I hope)Simple DB Q (I hope)
Previous
 
Next
New Post
10/31/2006 12:55 PM
 
Afternoon all, I'm working on one of my very first modules and have stumbled on an early stumbling block (to coin a phrase).

I'm testing out what can be done with modules and have worked through the great examples on adefwebserver.  However, I'm a little stuck.  Rather than go full on DAL+ I'm doing my experiments with direct communication to the DB, using the 'SuperSimple' module as my starting point.

Reading data is great, but now I'd like to insert some data.  I'm constructing my SQL string OK but when I come to run it against the DB my (very new) .net skills are coming unstuck.

The datagrid read is done thus:

With Me.GridViewResults
            .DataSource = CType(DataProvider.Instance().ExecuteSQL(mySqlString.ToString), IDataReader)
            .DataBind()
        End With

And I'd like to be able to INSERT a row using a similar mechanism, my insert statement is contained within a stringbuilder called sqlstring.  I'm drawing together the data from a number of text boxes and then manually creating the string.  (I know I should be using SPs but... it's my first semi serious module)

Help would be much appreciated, then I can crack on with making my modules do what they really should be doing!

Thanks very much in advance!

-- Chris
 
New Post
11/2/2006 9:17 PM
 

Fuji Nguyen
FREE Visitor Hit Counter
Visit opensource.indyneinc.com for detail.
 
New Post
11/3/2006 5:13 AM
 
Thanks mcsenow,

I'd not stumbled across these resources before but I'll take a look.

-- Chris
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Simple DB Q (I hope)Simple DB Q (I hope)


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