4 Replies - 922 Views - Last Post: 27 August 2012 - 07:00 PM Rate Topic: -----

#1 rbflowers  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 48
  • Joined: 10-February 12

pull data from .sdf into html

Posted 27 August 2012 - 12:42 PM

Hi,

I've created a .sdf database for my visual studio project, but have no idea how I can start populating fields in my html with information from this database.

There's a page where a user can input what he is listing, how much he wants, and the location and that will automatically populate in the database.

In my html, I'd like to be able to do something like this:

<div id="what"> listing[0] or whatever the database call is </div>
<div id="cost"> database call for cost</div>
etc

Thanks,
Bram

Is This A Good Question/Topic? 0
  • +

Replies To: pull data from .sdf into html

#2 macosxnerd101  Icon User is offline

  • Self-Trained Economist
  • member icon




Reputation: 10596
  • View blog
  • Posts: 39,258
  • Joined: 27-December 08

Re: pull data from .sdf into html

Posted 27 August 2012 - 12:58 PM

Since you're using Visual Studio, it sounds like you're working with .NET. Have you looked at ASP.NET yet?
Was This Post Helpful? 0
  • +
  • -

#3 rbflowers  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 48
  • Joined: 10-February 12

Re: pull data from .sdf into html

Posted 27 August 2012 - 01:01 PM

ya, it's an asp.net application, but all the information is displayed in .cshtml files.
Was This Post Helpful? 0
  • +
  • -

#4 macosxnerd101  Icon User is offline

  • Self-Trained Economist
  • member icon




Reputation: 10596
  • View blog
  • Posts: 39,258
  • Joined: 27-December 08

Re: pull data from .sdf into html

Posted 27 August 2012 - 01:25 PM

I'm not exactly familiar with the ASP.NET technology. I'll move this over there for better visibility.
Was This Post Helpful? 0
  • +
  • -

#5 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1524
  • View blog
  • Posts: 5,960
  • Joined: 21-March 08

Re: pull data from .sdf into html

Posted 27 August 2012 - 07:00 PM

Is there a specific reason you are using .cshtml vs. .aspx pages?

Since you are using .cshtml pages, you will want to look up Razor.

http://www.asp.net/w...he-razor-syntax
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1