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.

I do something similiar, however I just use .FileExists to see if the file is has been created and if not simply reload the page after 5 seconds so it checks for the file again.   This works fine for me and below is the code I use.

Set fs = CreateObject("Scripting.FileSystemObject")
If fs.FileExists("c:\physicalpathtofile\myfile.txt") Then
  ' the file exists....
  ' so start processing the file....
else
  ' the file does not exists so....
  ' wait a few seconds and reload this page....
End If

I hope this will work for you.  You shouldn't need to refresh the folder as asp will actually check for the file at the time the code is run.
Random Solutions  
 
programming4us programming4us