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: 1412 | Community Opinion:
0
Tags..
asp.net
visual basic
web programming
Bookmark this page..
Ask a New Question
Go to Home
What do you think? Add your opinion/answer
*Name
Please enter your name.
*your opinion/answer:
Please enter your opinion.
Related Questions & Answers:
New features in .Net framework 3.5?
Indexes in SQL SEVER and Index types?
Difference between DataSet and DataReader?
Difference between client side state management and server side state management?
How to automate .NET application documentation
What is meant by app domain asp.net?