I'm sorry for what's not a very advanced topic.

I'm playing with creating a few quick-and-dirty web pages using the
SqlDataSource control and the GridView.  I've got the
following data source in my .aspx file:

<asp:SqlDataSource ID="AttributeDataSource" runat="server"
   ConnectionString="<%$ ConnectionStrings:AppConnectionString %>"
   SelectCommand="GetLotAttributes"
   SelectCommandType="StoredProcedure">
   <SelectParameters>
     <asp:Parameter DefaultValue="" Name="order_no" Type="String" Size="30"
/>
   </SelectParameters>
</asp:SqlDataSource>
As written, my page loads empty with neither an error message nor an attempt
to actually run the procedure against the database.  However, if I replace
the current empty DefaultValue with one consisting of just a single space,
then everything works the way I expect.

What I'm wondering is:
1) What's going on behind the scenes that causes an empty value from being
treated differently than a single space?
2) Do I need to enable some kind of super-sekrit debugging switch in order
for the original version to show me an error?
3) Is there any way to trace what's going on during execution?  Or are the
controls declared in the aspx file all opaque to the execution/debugging
environment.

--
Curt Hagenlocher
[EMAIL PROTECTED]

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to