Go Back   CodingForums.com > :: Server side development > ASP.NET

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-06-2009, 10:38 AM   PM User | #1
kaypearl
New to the CF scene

 
Join Date: Apr 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
kaypearl is an unknown quantity at this point
Query data from MySQL using VB.net then update HTML element with this data.

Hey there, I understand that you cannot query data from databases using JavaScript but you can with server-side languages. Well, we're using ASP.net as our server-side language.

The problem I'm having is how to create/update an HTML element containing this MySQL data.

I know how to change HTML elements using JavaScript so is there some way where you can 'connect' the data retrieved in VB.net to JavaScript so I can display it in an HTML element?

I've googled, searched in forums but haven't found anything that worked. So, I'm hoping a direct question will answer this.

Any links would suffice too.
kaypearl is offline   Reply With Quote
Old 04-06-2009, 04:51 PM   PM User | #2
vinyl-junkie
$object->toCD-R(LP);


 
vinyl-junkie's Avatar
 
Join Date: Jun 2003
Posts: 3,054
Thanks: 2
Thanked 22 Times in 22 Posts
vinyl-junkie is on a distinguished road
Welcome to the CodingForums!

Your description of your problem is awfully vague. Please tell us specifically what you're trying to do. Only then can we help you.
__________________
Music Around The World - Collecting tips, trade
and want lists, album reviews, & more
SNAP to it!
vinyl-junkie is offline   Reply With Quote
Old 04-08-2009, 03:46 PM   PM User | #3
kaypearl
New to the CF scene

 
Join Date: Apr 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
kaypearl is an unknown quantity at this point
Hey, thanks for the reply! Sorry it took so long for me to reply.

First of all,

1. We're using VB in ASP.net.
2. The MySQL data we need to display are strings, numbers, dates and images.

Well, what I mean is I'd like to display data from a MySQL table on a web page in an HTML element, let's say a paragraph tag, <p></p> inside a DIV.

We're already able to display that MySQL data in a ASP label, textbox, textfields, etc, since it's easy to do so, you just have to write something like:

Code:
labelName.text = string
Now, what we're having trouble doing is how to put that data in an HTML element not an ASP one.

But I have another question before I start any new coding, just wanted to know advance if ASP labels, textboxes, textfields, etc must be fixed-length.

If it does then it'll be ugly if we don't know the length of the MySQL data.

And sorry for switching back between "I" and "we", I'm in my final year doing our final project in a team of 4.
kaypearl is offline   Reply With Quote
Reply

Bookmarks

Tags
data, javascript, mysql, query, vb.net

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:02 PM.


Advertisement
Log in to turn off these ads.