Re: Classes functions....help!
From: Ray Costanzo [MVP] (my)
Date: 09/20/04
- Next message: Lakshmi Narayanan.R: "Re: aspx pages with no <form> tag works fine with "masterpages"!."
- Previous message: ad: "Re: How to Redirect in another browser?"
- In reply to: Simon Harris: "Classes functions....help!"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 19 Sep 2004 21:23:30 -0400
Not to take anything away from what Kevin said, but one possibility,
depending on your database type/design, you could construct a query as such:
SELECT LinkTitle,ISNULL(LinkHref,'Sorry, no link available.') FROM Links
Ray at home
"Simon Harris" <too-much-spam@makes-you-fat.com> wrote in message
news:OscOhGPnEHA.2612@TK2MSFTNGP15.phx.gbl...
> Hi All,
>
> I'm new to asp.net (Migrating from 'Classic' ASP)
>
> I'm having troubles working out classes, functions etc...
>
> Current situation is this:
>
> index.aspx displays datalist with links to sites - If no link found in DB,
> I want to display a message instead. I worked out I need a function to do
> this (No if statements based around DB values allowed in datalist)
>
> Questions are:
> - Where do i build the function? In a seperate class file? In the code
> behind for index.aspx?
>
> - How do I then call this function/class? I understand the syntax of
> actually calling the function, its more a case of how do I make the
> function/class available to index.aspx?
>
> - How do I return a value from the function/class? I want to input 2
> values - ID and Domain, if domain is empty, I want to return 'No Site
> Listed' if not, I want to return the domain.
>
>
> Sorry if this is all a bit vague - I may well be asking the wrong
> questions???!
>
> Thanks,
> Simon.
>
- Next message: Lakshmi Narayanan.R: "Re: aspx pages with no <form> tag works fine with "masterpages"!."
- Previous message: ad: "Re: How to Redirect in another browser?"
- In reply to: Simon Harris: "Classes functions....help!"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|