List Info

Thread: RE: About FindControl()




RE: About FindControl()
country flaguser name
United States
2008-05-30 09:31:50
only stored procs for me.


From: timallardmsn.com
To: aspnetaspadvice.com
Subject: [aspnet] RE: About FindControl()
Date: Thu, 29 May 2008 14:00:34 -0700

The query wizard isn't bad to generate queries in sql mgr... pretty fast and dirty stuff.
 
The query wizard in visual studio just takes a little longer than sql mgr but is basically the same.

tom mallard
   .net web applications
      consumer product design

> Date: Wed, 28 May 2008 20:09:12 -0400
> From: vze2kxdpoptonline.net
> Subject: [aspnet] RE: About FindControl()
> To: aspnetaspadvice.com
>
> No need to write SQL scripts is the big benefit for me
> ----- Original Message -----
> From: Tim Curtin
> To: aspnetaspadvice.com
> Sent: Wednesday, May 28, 2008 11:14 AM
> Subject: [aspnet] RE: About FindControl()
>
>
> I meant, I'm curious. What benefit do you see to using LINQ?
> What's the use case?
>
>
>
>
> ----------------------------------------------------------------------------
> Date: Wed, 28 May 2008 11:08:00 -0400
> From: PaoloThecornerStore.com
> Subject: [aspnet] RE: About FindControl()
> To: aspnetaspadvice.com
>
>
> Curiosity. Even though I am 58 years old, I am still insatiably curious, don’t know why, just curious.
>
>
>
> Paolo
>
>
>
> From: Tim Curtin [mailto:tjc_tekhotmail.com]
> Sent: Wednesday, May 28, 2008 8:15 AM
> To: aspnetaspadvice.com
> Subject: [aspnet] RE: About FindControl()
>
>
>
> what's the benefit? Just curious...
>
>
> ----------------------------------------------------------------------------
>
> Date: Tue, 27 May 2008 19:41:35 -0400
> From: PaoloThecornerStore.com
> Subject: [aspnet] RE: About FindControl()
> To: aspnetaspadvice.com
>
> The former ;-]
>
>
>
> From: Tim Curtin [mailto:tjc_tekhotmail.com]
> Sent: Tuesday, May 27, 2008 7:16 PM
> To: aspnetaspadvice.com
> Subject: [aspnet] RE: About FindControl()
>
>
>
> why are you using LINQ? 'cuz you can or is there a benefit to using it?
> The simpler, the better. Are you using ado.net with a sqldatareader? That's about as fast as you can get.
>
>
> ----------------------------------------------------------------------------
>
> Date: Tue, 27 May 2008 16:21:44 -0400
> From: PaoloThecornerStore.com
> Subject: [aspnet] RE: About FindControl()
> To: aspnetaspadvice.com
>
> I am using Linq datasource, which I find quite useful.
>
>
>
> Paolo
>
>
>
> From: Tim Curtin [mailto:tjc_tekhotmail.com]
> Sent: Tuesday, May 27, 2008 3:50 PM
> To: aspnetaspadvice.com
> Subject: [aspnet] RE: About FindControl()
>
>
>
> put the concatenated 'FullName' as a derived field in the stored procedure.
>
> SELECT FirstName + ' ' + LastName as FullName
> >From Table
> Where....
>
> I hope you're not using those dopey SQLDataSource controls...
>
>
> ----------------------------------------------------------------------------
>
> Date: Tue, 27 May 2008 15:44:11 -0400
> From: PaoloThecornerStore.com
> Subject: [aspnet] About FindControl()
> To: aspnetaspadvice.com
>
> I have a DataList and within it (a table and within it) a Label
>
> Here is a snippet…
>
> <aspataList ID="DataList1" runat="server" SkinID="Random4Default" >
>
> <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Font-Names="Arial" />
>
>
>
>
>
>
>
> <HeaderStyle Height="10px" />
>
> <ItemTemplate>
>
> <%--
&gt;
>
>
> <table align="left">
>
> <tr>
>
> <td>
>
> <a href='ArtistArtPage.aspx?ArtistID=<%# Eval("ArtistID") %>'>
>
> <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("Image") %>' Height="150" />
>
> </a></td>
>
> <td align="left" >
>
> <asp:Label runat="server" ID="FName" SkinID="fullNameDefaultPage" Text='<%#Eval("FullName") %> ' />
>
> <br />
>
> <asp:Label runat="server" ID="ArtworkName" SkinID="artworkDefaultPage" Text='<%#Eval("ArtworkName") %>' />
>
> </td>;
>
> </tr>;
>
> </table>
>
> </ItemTemplate>
>
> </aspataList>;
>
>
>
> The designer of the site wants the output of the label FullName to be all caps (not smallcaps). The only way I see to do that is in the VB code-behind page.
>
> How do I assign a value to that label, however? All the examples I see of FindControl are like:
>
>
>
> Dim woof As Label = CType(DataList1.FindControl("FName"), Label)
>;
>
>
> and then work with the Woof label. I would like to say something like:
>
>
>
> ‘ Dim ArtistName = From a In db.Artists Where a.ArtistID = ArtistID _
>
> Select FullName = a.FirstName & " " & a.LastName
>
> fName.Text = ArtistName.FirstOrDefault.ToUpper. But how do I access the fName label?
>;
>
>
> Thanks
>;
>
>
> Paolo
>
>
>
>
>
> --- List Settings ---
> http://aspadvice.com/lists/
>
>
>
>
> ----------------------------------------------------------------------------
>
> Keep your kids safer online with Windows Live Family Safety. Help protect your kids. --- List Settings ---
> http://aspadvice.com/lists/
>
> --- List Settings ---
> http://aspadvice.com/lists/
>
>
>
>
> ----------------------------------------------------------------------------
>
> Give to a good cause with every e-mail. Join the i’m Initiative from Microsoft. --- List Settings ---
> http://aspadvice.com/lists/
>
> --- List Settings ---
> http://aspadvice.com/lists/
>
>
>
>
> ----------------------------------------------------------------------------
>
> Give to a good cause with every e-mail. Join the i’m Initiative from Microsoft. --- List Settings ---
> http://aspadvice.com/lists/
>
> --- List Settings ---
> http://aspadvice.com/lists/
>
>
>
> ------------------------------------------------------------------------------
> Keep your kids safer online with Windows Live Family Safety. Help protect your kids. --- List Settings ---
> http://aspadvice.com/lists/
>
>
>
> ------------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
&gt; Checked by AVG.
> Version: 7.5.524 / Virus Database: 269.24.2/1471 - Release Date: 5/28/2008 5:33 PM
>
>
>
> --- List Settings ---
> http://aspadvice.com/lists/
>

--- List Settings ---
http://aspadvice.com/lists/


Keep your kids safer online with Windows Live Family Safety. Help protect your kids. --- List Settings ---
http://aspadvice.com/lists/
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )