Jump to content
SingaporeBikes.com Telegram Now LIVE! Join NOW for the Last Reviews, News, Promotions & Offers in Singapore! ×
  • Join SingaporeBikes.com today! Where Singapore Bikers Unite!

    Thank you for visiting SingaporeBikes.com - the largest website in Singapore dedicated to all things related to motorcycles and biking in general.

    Join us today as a member to enjoy all the features of the website for FREE such as:

    Registering is free and takes less than 30 seconds! Join us today to share information, discuss about your modifications, and ask questions about your bike in general.

    Thank you for being a part of SingaporeBikes.com!

Recommended Posts

  • Replies 33
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Bro, posing your troubled queries in this way can make us better understand what your problem is...

 

  1. The category of the problem
    ASP.net ("VB Script" scripting flavour)
     
  2. What were you trying to acheive?:
    Trying to populate a drop-down list (DDL) based on a SQL database (??)
     
  3. What is the problem that is troubling you?:
    When i run my website with that DDL embedded into it, it comes up empty!!... someone please help!!
     
  4. What are you attempting to do (before the problem occured)

     
  5. The details of the problem (or the portion of the code you suspect is problematic)

     
  6. Troubleshooting steps attempted:
    i've tried using sql queries and it works, but not when I did step #2 above
     

 

(One more thing, I can't say there are a lot of server-side scripting biker folks here that can help you -- not much that I know of. So keep ya fingers crossed; Good luck)

Co-Moderator for IT -inerary forum

Biker nerd • Windows • Apple Mac • Android user

 

"Kick up your sidestand bro, let's ride..."

Posted

cn.Open()

 

cmd.ExecuteNonQuery()

 

Dim da As New SqlDataAdapter(cmd)Dim ds As New DataSet

da.Fill(ds, "dvdForm")

 

 

 

Return ds

cn.Close()

 

 

Boss no idea what you're trying to do but...

 

if u wanna use DataAdapater you no need to bother with connection state

 

just Da.Fill(ds)

 

and i need to point out some other mistakes you have...

 

cmd.ExecuteNonQuery()

 

Da.Fill(ds,"dvdForm")

 

 

cmd.CommandText = "select content from dvdForm where manifestNo = '" + manifestNo + "'"

 

2ndl if ur manifestNo is a number you put single quote, its no longer a number it becomes a string.. hope it helps

Walk a thousand miles.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • DAIS_ShellBAU2024_Motorcycle_SingaporeBikesBanner_300x250.jpg

     
×
×
  • Create New...