473,386 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

stored procedures

Isz
Hello,

I have an ASP .NET application that uses a SQL stored procedure to page results back to the application. I'm doing this because I am using the Repeater control for it's customization. My question is how do I handle the case where no results are returned? I'm checking the return value and I'm checking to see if there is a table in the DataSet collection as well as checking to see whether there are any rows in that table. No matter what I do, IE returns a page cannot be displayed error message, even though I have turned off "Show friendly error messages" in IE.

Anyone have any thoughts?
Thanks

---
Posted using Wimdows.net NntpNews Component - Posted from .NET's Largest Community Website: http://www.dotnetjunkies.com/newsgroups/
Nov 18 '05 #1
3 924
Hi

First try to disable customErrors. Check Web.config in
your project, change mode for customErrors to Off
like:
<!--<customErrors mode="RemoteOnly" />-->
<customErrors mode="Off"/>
Then you should be able to see the real error message.

Bin Song, MCP
-----Original Message-----
Hello,

I have an ASP .NET application that uses a SQL stored procedure to page results back to the application. I'm
doing this because I am using the Repeater control for
it's customization. My question is how do I handle the
case where no results are returned? I'm checking the
return value and I'm checking to see if there is a table
in the DataSet collection as well as checking to see
whether there are any rows in that table. No matter what
I do, IE returns a page cannot be displayed error message,
even though I have turned off "Show friendly error
messages" in IE.
Anyone have any thoughts?
Thanks

---
Posted using Wimdows.net NntpNews Component - Posted from .NET's Largest Community Website:
http://www.dotnetjunkies.com/newsgroups/.

Nov 18 '05 #2
Isz
I have customErrors off. I still get the same thing

Here is my Web.Config

<configuration
<system.web
<customErrors mode="Off"/
<compilation debug="true"/
</system.web
</configuration>

---
Posted using Wimdows.net NntpNews Component - Posted from .NET's Largest Community Website: http://www.dotnetjunkies.com/newsgroups/
Nov 18 '05 #3
Hi Isz,

Thanks for using the newsgroups.

The problem shouldn't have to do with the empty DataSet. If the DataSet is
empty then nothing will be displayed by the Repeater.

There's something else wrong with the site.

Some things you could look into...
* Do other pages for the site work properly?
* Can you step through the code for the offending page all the way to the
end?
* You may want to do a search on support.microsoft.com for the exact error
message that's being returned from your web site.

Hope this helps,
-bliz

--
Jim Blizzard, MCSD .NET
Community Developer Evangelist | http://www.microsoft.com/communities

This posting is provided AS IS, without warranty and confers no rights.

"Isz" <fencerf@-NOSPAM-yahoo.com> wrote in message
news:Oy**************@TK2MSFTNGP11.phx.gbl...
| Hello,
|
| I have an ASP .NET application that uses a SQL stored procedure to page
results back to the application. I'm doing this because I am using the
Repeater control for it's customization. My question is how do I handle the
case where no results are returned? I'm checking the return value and I'm
checking to see if there is a table in the DataSet collection as well as
checking to see whether there are any rows in that table. No matter what I
do, IE returns a page cannot be displayed error message, even though I have
turned off "Show friendly error messages" in IE.
|
| Anyone have any thoughts?
| Thanks
|
| ---
| Posted using Wimdows.net NntpNews Component - Posted from .NET's Largest
Community Website: http://www.dotnetjunkies.com/newsgroups/
Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: jrefactors | last post by:
I want to know the differences between SQL Server 2000 stored procedures and oracle stored procedures? Do they have different syntax? The concept should be the same that the stored procedures...
2
by: scott | last post by:
Hi, Just wondering what sort of problems and advantages people have found using stored procedures. I have an app developed in VB6 & VB.NET and our developers are starting to re-write some of the...
2
by: Kent Lewandowski | last post by:
hi all, Recently I wrote some stored procedures using java jdbc code (admittedly my first stab) and then tried to implement the same within java packages (for code reuse). I encountered...
5
by: Rhino | last post by:
I am trying to determine the behaviour of stored procedures in DB2 V8.2.x in Windows/Unix/Linux and how I can control that behaviour. Some documentation in the manuals is confusing the issue...
5
by: Tim Marshall | last post by:
I was following the thread "Re: Access Treeview - Is it Safe Yet?" with interest and on reading the post describing Lauren Quantrell's SmartTree, I've run into something I don't understand: Stored...
2
by: Eli | last post by:
Hi all We currently have a strange problem with calling a Stored Procedure (SQL Database) in our C# Project. The only error I get is "System error" which says a lot :) Background: We have...
0
by: Amber | last post by:
Stored procedures are faster and more efficient than in-line SQL statements. In this article we will look at two SQL Server stored procedures; one using an input parameter and one not, and see how...
45
by: John | last post by:
Hi When developing vb.bet winform apps bound to sql server datasource, is it preferable to use SELECTs or stored procedure to read and write data from/to SQL Server? Why? Thanks Regards
28
by: mooreit | last post by:
The purpose for my questions is accessing these technologies from applications. I develop both applications and databases. Working with Microsoft C#.NET and Microsoft SQL Server 2000 Production and...
11
by: peter | last post by:
I am trying to get a SQL stored procedure to use user maintained MQT implicitly which raises questions on when they are used or not used. In theory you would expect the stored procedure to pick up...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.