Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 15th, 2007, 03:34 AM
Authorized User
 
Join Date: Mar 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Not Suppose to offend

Hello all,

This is just in reference to my previous post which was locked. My post was not meant to be offensive in any way and apologise to anyone that does see it this way. It was merely light humor with detriment to myself.

I am not naive to know if you bite the hand that feeds you you wont get fed.

Anyway. No offense meant.

 
Old March 15th, 2007, 06:56 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

No worries. In any case, how are you getting at the data? Datareader? Filling a dataset/datatable?

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
 
Old March 16th, 2007, 05:03 AM
Authorized User
 
Join Date: Mar 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi again thanks for coming back. Ok page 1 sends id=? in the query string. Page 2 then looks for the data

<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ListingDBConnectionString %>"
            SelectCommand="SELECT [ID], [CompName], [Add1], [Add2], [Add3], [Town], [City], [Postcode], [Tele], [Fax], [Website], [Email], [Package], [Description], [Logo] FROM [CompanyDetails] WHERE ([ID] = @ID)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="id" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>

Its then displayed in a Formview only I need to put some logic in to it so that it looks at the package value and renders the page accordingly. Hope this makes sense


 
Old March 16th, 2007, 06:06 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

By package value, I assume you mean the ID? How does the page render differ?

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
 
Old March 16th, 2007, 11:52 AM
Authorized User
 
Join Date: Mar 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok page 1 sends a querystring id="something" page 2 then pulls the details for id="something" which also includes a column [Package] and the page then displays the various different bits of info depending on what the package level is

So if id=1 has a package of 4 more info will be displayed than if they had a package of 1

Hope thats clear now....not the best at describing properly






Similar Threads
Thread Thread Starter Forum Replies Last Post
Browser conflicts I suppose . . . Ross McVinnie Intro Programming 0 July 10th, 2006 05:32 PM
code runs when not suppose to! (solved) dhaywirex Classic ASP Basics 13 February 19th, 2004 08:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.