asp.net FormView控件在固定的宽度259px生成表 [英] asp.net formview generates table at fixed width 259px

查看:110
本文介绍了asp.net FormView控件在固定的宽度259px生成表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在FromView动态生成的表在我的jQuery Mobile的网页造成的问题。我已经把范围缩小到生成固定在259px宽度与一个ID表表#ctl00_ContentPlaceHolder1_FormView1

我不知道如何将这种在asp.net中FromView改为动态:

 < ASP:FormView控件ID =FormView1=服务器的DataKeyNames =FDID的DataSourceID =AccessDataSource1DefaultMode =插入>
    <&EditItemTemplate的GT;
        &所述; UL数据角色=列表视图ID =UL-编辑纬数据除法器 - 主题=一个数据嵌入=真的数据滚动=真>
            <李数据角色=名单除法>
                &所述H 2的id =itemTitle>
                < ASP:标签ID =Label1的=服务器文本='<%#的eval(FDID)%>'字体粗体=真FONT-SIZE =中>< / ASP:标签>
                :选择< / H>
            < /李>...


解决方案

OK不知道为什么< FormView控件> 默认为259px,但修复是添加 WIDTH =100%来控制,我从来没有在过去的这个问题,但我想我只是喜欢默认外观。

Dynamically generated table in FromView is causing problem in my JQuery Mobile page. I have narrowed it down to the table that is generated is fixed at a width of 259px with an ID of table#ctl00_ContentPlaceHolder1_FormView1

I'm not sure how to change this to dynamic in asp.net FromView:

<asp:FormView ID="FormView1" runat="server" DataKeyNames="FDID" DataSourceID="AccessDataSource1" DefaultMode="Insert">                  
    <EditItemTemplate>        
        <ul data-role="listview" id="ul-edit-picks" data-divider-theme="a" data-inset="true" data-scroll="true">
            <li data-role="list-divider">
                <h2 id="itemTitle">
                <asp:Label ID="Label1" runat="server" Text='<%# Eval("FDID")%>' Font-Bold="True" Font-Size="Medium"></asp:Label>
                : Selections</h2>
            </li>

...

解决方案

ok not sure why the <FormView> defaulted to 259px but the fix was to add Width="100%" to the control, I have never had this issue in the past, but I guess I just liked the default look.

这篇关于asp.net FormView控件在固定的宽度259px生成表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆