I have a user control content a DateGrid, which has 
Edit/Update/Cancel function on it
Code:
<asp:DataGrid id="dgBook"  
                  DataKeyField="sysID" 
                  OnEditCommand   = "dgBook_Edit" 
                  OnCancelCommand = "dgBook_Cancel" 
                  OnUpdateCommand = "dgBook_Update"
                  OnDeleteCommand = "dgBook_Delete"
                  AutoGenerateColumns= "False">
<HeaderStyle ForeColor="White"  HorizontalAlign="Center" />
<Columns>
    <asp:BoundColumn  DataField="sysID"  ReadOnly = "true" />
    <asp:BoundColumn  HeaderText="Book Name" DataField="BookName" />
    <asp:EditCommandColumn ItemStyle-HorizontalAlign= "center"
         EditText="Edit"   CancelText="Cancel" 
         UpdateText="Update"   HeaderText="Edit Book" />
    <asp:ButtonColumn Text="Delete" 
         CommandName="Delete"  HeaderText = "Delete Book"/>
</Columns>
</asp:DataGrid>

I want add client side isblank() javascript validation check for edit 
book name.
I had two questions:
1. Because it is user control. It will load in a form with other 
   elements. How can I define the edit column?
2. DataGrid's OnEditCommand will run at server, is not a submit 
   event. How can I add client side validation check on it?

Thank you in advance.


Jennifer





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 

Reply via email to