Solved

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

Posted on 2013-05-20
8
429 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

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…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

786 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