首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

大神们995,小弟我想在本页调用其他页的html代码如何弄

2013-12-10 
大神们995,我想在本页调用其他页的html代码怎么弄?就是说我有一段每个页面都要用到的代码,但是我不能每个

大神们995,我想在本页调用其他页的html代码怎么弄?
就是说我有一段每个页面都要用到的代码,但是我不能每个页面都写那些代码吧,所以,我想单独做一个我需要的页面,然后再其他页面调用我需要的代码,能否实现?

<dx:ASPxPopupControl ID="ASPxPopupControl1" runat="server" RenderMode="Lightweight" CloseAction="OuterMouseClick" LoadContentViaCallback="None"
                         PopupElementID="findagenttb" PopupVerticalAlign="Below" PopupHorizontalAlign=Center AllowDragging="True" 
                         Width="370px" Height="130px" HeaderText="查找" ClientInstanceName="ClientPopupControl" Top="133" Left="486">
                <ContentCollection>
                    <dx:PopupControlContentControl ID="PopupControlContentControl" runat="server">
                        <div>
                            <dx:ASPxGridView ID="Findvendorgv" runat="server" AutoGenerateColumns="False" 
                                KeyFieldName="Code" OnFocusedRowChanged="Findvendorgv_FocusedRowChanged"
                                 ClientInstanceName="Find" EnableCallBacks="false" Width="350px" Font-Size="Large" 
                                >
                                <Columns>
                                    <dx:GridViewDataTextColumn FieldName="Code" ShowInCustomizationForm="True" Width="70" 
                                        VisibleIndex="0" ReadOnly="True" Caption="??">
                                        <HeaderStyle HorizontalAlign="Center" />
                                        <CellStyle HorizontalAlign="Center" />
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="CODENM" ShowInCustomizationForm="True" 
                                        VisibleIndex="1" Caption="?">
                                        <HeaderStyle HorizontalAlign="Center" />
                                        <CellStyle HorizontalAlign="Left" />
                                    </dx:GridViewDataTextColumn>
                                </Columns>
                                <SettingsBehavior AllowFocusedRow="True" 
                                    AllowSelectSingleRowOnly="True" ProcessFocusedRowChangedOnServer="True" 


                                    ProcessSelectionChangedOnServer="True" AllowSort="False" />

    <SettingsBehavior AllowSort="False" AllowFocusedRow="True" AllowSelectSingleRowOnly="True" ProcessSelectionChangedOnServer="True" ProcessFocusedRowChangedOnServer="True"></SettingsBehavior>

                            
                                <SettingsPager PageSize="500">
                                </SettingsPager>
                                <Settings VerticalScrollBarMode="Auto" />
                                <SettingsText  EmptyDataRow="没有数据" />
                            </dx:ASPxGridView>
                        </div>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>



这是我每个页面都需要的,我想单独做一个页面保存这个页面,怎么弄啊?
[解决办法]
是asp.net么?  你用用户控件啊; 或者用母版! 

热点排行