FormView显示、更新、插入、删除数据库操作[ASP.NET源代码](三)

三、使用 FormView控件更新数据
1、编辑InsertItemTemplate模板,代码如下:
[html] <InsertItemTemplate> 
                <table border="0" cellpadding="0" cellspacing="0" width="420"> 
                    <tr> 
                        <td colspan="6" height="30" width="420" align="center"> 
                        <h4>FormView InsertItemTemplate 模板</h4> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td width="30"> 
                        </td> 
                        <td rowspan="4" width="120"> 
                            <asp:Image ID="imgItem" runat="server" Width="120px" Height="120px" ImageUrl='<%# Eval("Image") %>' 
                                AlternateText="上传浏览图片" /></td> 
                        <td width="30"> 
                        </td> 
                        <td colspan="2"> 
	
相关新闻>>
- 发表评论
- 
				
- 最新评论 进入详细评论页>>



