Question : I need to capture the output of the datagrid grdAttendees and record each Members Email Address.

I need to capture the output of the datagrid grdAttendees and record each Members Email Address.
I need to know what command& I should use and how to capture the email address as the datagrid loops thru its list of each records.
==========================================================
In my new procedure to be built...

Protected Sub OnEditCommand_click(ByVal sender As Object, ByVal e As System.EventArgs)

Need to build a stringbuilder of email addresses& here for each row of emails

End Sub
==========================================================

Attendees:  List of records

Name                         Email Address             Type          Cost   Remove
Dennis West         [email protected]   Member     $45.00 [Remove]
Jon wilkes             [email protected]            Member    $45.00 [Remove]
Mary  Adams         [email protected]      Member     $45.00 [Remove]
==========================================================

Attendees.ascx  (Note: see... what command should I use ????>) in email record

<%@ Control Language="vb" Codebehind="AttendeeList.ascx.vb" Inherits="i2Integration.Modules.EventReg.CustomControls.AttendeeList"
    AutoEventWireup="false" Explicit="true" %>
    EnableViewState="False" Visible="False" Text="No attendees found.">
 
    CellPadding="4" CellSpacing="0" AllowPaging="False" AllowSorting="False" AutoGenerateColumns="False"
    ShowHeader="True" ShowFooter="True" HeaderStyle-CssClass="SubHead" ItemStyle-CssClass="Normal"
    FooterStyle-CssClass="SubHead" FooterStyle-HorizontalAlign="Right"  
OnClick=what command should I use ????>
   
                    Visible="false" ReadOnly="True" />
       
       
                    ReadOnly="True" />
                    DataFormatString="{0:$#,##0.00}" ItemStyle-HorizontalAlign="Right" FooterText="" />
                    Text="[Remove]" />
   


Answer : I need to capture the output of the datagrid grdAttendees and record each Members Email Address.

Try:

use CGI::Simple;
$CGI::Simple::DISABLE_UPLOADS = 0; # enable uploads

Example attached.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
#!/usr/bin/perl

use CGI::Simple;
$CGI::Simple::DISABLE_UPLOADS = 0; # enable uploads

my $q = new CGI::Simple;

if($q->param("photo")) {
    fech();
} else {
    print <<DONE
Content-type: text/html


<form action="up.pl" method="post" enctype="multipart/form-data" >
        <input type="file" name="photo" />
        <input type="submit" />
    </form>
DONE
}

sub fech {
    $filename = $q->upload("photo");
    open UPLOADFILE, ">img/up.out" or die "$!";
    binmode UPLOADFILE;

    my $buffer;

    while( read($filename, $buffer, 1024) ) 
    {
        print UPLOADFILE $buffer;
    }

    close UPLOADFILE;

    # $detail = "$id , $name , $color , blah blah...\<img src=\"$domain/MaiNGate/pics/big/$id.gif\"\>";
    print "Content-type: text/html\r\n\r\nUploaded ".$filename.".\n";
}
Random Solutions  
 
programming4us programming4us