Tech
Baba.com
Home
|
Ask a New Question
|
Register
|
LogIn
How to redirect my web page based on query result
I am designing a web page that allows a user to view homes that are in inventory. If there are no homes in stock (ie. the query returns no results) instead of the page displaying - ' no results returned' I would like it to jump to another page.
I have used an SQL Data Source and a Gridview to display the results of the search, but I would like my code to query the database itself and determine if there will be results or not and jump to another page if there are none.
In VBA I would just do a DLookup() to see if I had results, but I am having trouble finding a way to do it in ASP.net.
Tom Conroy
Views: 907 | Community Opinion:
0
Tags..
asp.net
visual basic
web programming
Bookmark this page..
Ask a New Question
Go to Home
Register
or
Login
to Post Your Opinion
Related Questions & Answers:
Difference between client side state management and server side state management?
Are the configuration files in .NET case-sensitive?
How can we zip multiple files in .net
What are the validation controls in ASP.Net
ASP.Net
What are the new features in ASP.net 3.5