本文主要是介绍关于datasource更新问题。,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
在用accessdatasource更新数据时: < UpdateParameters >
< asp:ControlParameter ControlID = " DetailsView1 " Name = " CatName " PropertyName = " SelectedValue " />
< asp:ControlParameter ControlID = " DetailsView1 " Name = " PID " PropertyName = " SelectedValue " />
< asp:ControlParameter ControlID = " DetailsView1 " Name = " Url " PropertyName = " SelectedValue " />
< asp:ControlParameter ControlID = " DetailsView1 " Name = " Img " PropertyName = " SelectedValue " />
< asp:QueryStringParameter Name = " ? " QueryStringField = " ID " />
</ UpdateParameters >
< asp:ControlParameter ControlID = " DetailsView1 " Name = " CatName " PropertyName = " SelectedValue " />
< asp:ControlParameter ControlID = " DetailsView1 " Name = " PID " PropertyName = " SelectedValue " />
< asp:ControlParameter ControlID = " DetailsView1 " Name = " Url " PropertyName = " SelectedValue " />
< asp:ControlParameter ControlID = " DetailsView1 " Name = " Img " PropertyName = " SelectedValue " />
< asp:QueryStringParameter Name = " ? " QueryStringField = " ID " />
</ UpdateParameters >
我在detailsview中加入如下fckedit。
< asp:TemplateField >
< ItemTemplate >
< FCKeditorV2:FCKeditor ID = " fck " runat = " server " Value = ' <%# Eval("Content") %> ' ></ FCKeditorV2:FCKeditor >
</ ItemTemplate >
</ asp:TemplateField >
< ItemTemplate >
< FCKeditorV2:FCKeditor ID = " fck " runat = " server " Value = ' <%# Eval("Content") %> ' ></ FCKeditorV2:FCKeditor >
</ ItemTemplate >
</ asp:TemplateField >
如何获取在更新时的参数,把fck中的值传递到updateparameters中呢??、
这篇关于关于datasource更新问题。的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!