Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9056333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T14:10:48+00:00 2026-06-16T14:10:48+00:00

Im designing a web site and trying some new concepts. instead of just coding

  • 0

Im designing a web site and trying some new concepts. instead of just coding everything onto a web page, i am populating different areas of the page using a database. for example on a news page, i have a drop down to select the story, then I have different areas of the page pull in the headline, story, picture and date which are all stored in the database. everything is working good. the only thing I want to do is clean up the code a little. Id like for all the connection strings and select statements to be stored in a method on a script or something. and preferably on a HTML page, not an aspx page.

I have a decent amount of knowledge with basic HTML, and some experience programming with Visual Basic.net and SQL. I am using Visual studio 2012, putting all of this on an ASPX page.

here is an axample of what i have written and working. this displays the headline of the story based off of the value selected in the “NewsDropDown” Drop list.

   <%--  displays the headline  --%>
   <asp:FormView ID="NewsHeadlineText" runat="server" 
      DataSourceID="NewsHeadline" class="hdr" 
      meta:resourcekey="NewsHeadlineTextResource1" >
      <ItemTemplate>
          &nbsp;<asp:Label ID="HeadlineLabel" runat="server" 
              Text='<%# Bind("Headline") %>' meta:resourcekey="HeadlineLabelResource1" />
          <br />
      </ItemTemplate>
  </asp:FormView>

  <asp:SqlDataSource ID="NewsHeadline" runat="server" 
      ConnectionString="<%$ ConnectionStrings:VBallTalksDBConnectionString %>" 
      ProviderName="<%$ ConnectionStrings:VBallTalksDBConnectionString.ProviderName %>" 
      SelectCommand="SELECT [Headline] FROM [News] WHERE ([Headline] = ?)">
      <SelectParameters>
          <asp:ControlParameter ControlID="NewsDropDown" Name="Headline" 
              PropertyName="SelectedValue" Type="String" />
      </SelectParameters>
  </asp:SqlDataSource>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T14:10:50+00:00Added an answer on June 16, 2026 at 2:10 pm

    You can use jQuery’s AJAX or a regular AJAX for querying your script that touches the DB in ASP and return the results of the processing in JSON. That way when it comes back you can continue to populate the sections of your website in the programming language of your choice. In PHP with MySQL using AJAX/Javascript and HTML5/CSS3 I have done this in the past with much success, let me know if you have an static mockup in JSFiddle (http://jsfiddle.net/) or JSBin if you decide to use Javascript to address your needs

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to web designing. I started to designing a sample page but I
I am very new to web designing and my site is almost about to
I'm re-designing a Web site and I have a problem with the existing data
I'm designing a C# application Presentation ( web site + flex apps ) Business
I'm new to databases and web development but I'm trying my best to learn
I am trying to get into some more advanced web development techniques and have
I'm designing a web site where I've got a blog post and have the
I am designing the database for social web site. should I consider using UUID
I am designing a web site in which users solve puzzles as quickly as
We are in the process of designing a web site were users can fill

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.