Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2013-05-20
8
Medium Priority
?
489 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 2000 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
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

963 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