Solved

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

Posted on 2013-05-20
8
473 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
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
 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

624 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