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: 689 | 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:
New features in .Net framework 3.5?
.Net framework & ASP.Net Web application Development Introduction
Dynamic web pages life cycle in Web Application?
What is the purpose of IIS ? ASp.Net Interview
what is the use of web.config in asp.net?
how to solve cross browser problem