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
Solved

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

Posted on 2013-05-20
8
442 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
Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

 
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

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

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

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.…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

808 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