Solved

What should i replace my access listbox with on ASPX page?

Posted on 2013-05-20
8
401 Views
Last Modified: 2013-05-20
Imaged below is how my i did my access database.

When you typed in a model (that there were many of) it would populate a list box with all those models and let the user select one to display it.

listbox
Well, now im trying to figure out how to implement this on my ASPX page. Im using Visual Studio 2010

I have looked at listbox's and realized they dont use columns. Then i tried a listview but i couldn't get the format i was wanting.

What is best for this?
0
Comment
Question by:bignadad
  • 4
  • 3
8 Comments
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 39183004
The asp.net GridView webcontrol would seem to meet your requirements.
0
 
LVL 2

Author Comment

by:bignadad
ID: 39183009
Can a gridview be only displayed when search button is clicked? AND be on top of everything else?

Also i assume the rows in gridvew are clickable?
0
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 500 total points
ID: 39183030
Yes you can control the visibility of the gridview using its visible property and therefore only make it visible once you have populated it with the search results.
Not sure what you mean by on top of everything else?

You can make rows clickable but it takes some work, this article will help you out :

http://www.codeproject.com/Articles/15677/Clickable-and-Double-Clickable-Rows-with-GridView
0
 
LVL 21
ID: 39183051
Can a gridview be only displayed when search button is clicked? AND be on top of everything else?
Sure. ASP.net is very dynamic. I do a lot with Access. I wish Access was as dynamic as ASP>NET.  

.NET is so different that Access. You basically have to forget everything you know about hoe to do stuff with Access an learn the >NET way.  It is hard to do at first. Once I made the transition in thinking to the .NET way it was much easier going.  

The Gridview is commonly used in .NET apps doe many things. Access does not have a built in grid control.  >NET does not has a sub form like in Access.   I use a grid control as like you would use a for sub form in Access.  I also use a Grid control in Access in place of a list box.

For some screenshots of how a grid control can be used in ASP>NET see this: http://www.syncfusion.com/products/aspnet/grid

EDIT: Oops ... took to long to answer. Got a phone call to see if I surviced the Tornadoes in Oklahoma City today.  It was just a few miles away!
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 2

Author Comment

by:bignadad
ID: 39183074
im trying to set my gridview to overlap all my textbox's and labels but cant.

im tried using relative layout and z-index but its not working.

is it possible?
0
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 39183105
Look at using the asp.net panel control, put your textboxes and labels on one panel and the gridview on another, then you can use the panels visible property to control the visibility of the panels.

http://asp-net-example.blogspot.co.uk/2009/04/how-to-show-hide-visible-panel.html
0
 
LVL 2

Author Comment

by:bignadad
ID: 39183108
Nevermind. I got it.

Needed a div container
0
 
LVL 2

Author Comment

by:bignadad
ID: 39183111
Thank you both for your feedback. helped a lot!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now