如何将内置模板应用于我的Asp.Net应用程序 [英] How to Apply built-in Template to my Asp.Net application

查看:95
本文介绍了如何将内置模板应用于我的Asp.Net应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为Asp.Net网络应用程序创建了一个管理面板。管理面板通过使用面板,文本框,按钮,标签,网格视图,列表框等开发了多个Web表单。所以我的问题是我没有遵循我的应用程序的正确对齐和主题,并不关心表单对齐和设计。

现在我想应用已经开发的或内置的管理面板模板,而不更改我的.CS文件和删除我的控件。请告诉我最简单的方法来完成这项任务。

I have created an Admin Panel for my Asp.Net web application. The admin panel is developed with multiple web forms by using panels, text boxes, buttons, labels, gridviews, listboxes etc. So my problem is I did not follow the proper alignment and theme for my application and did not care about forms alignment and design.
Now I want to apply already developed or built-in Admin Panel Template without changing my .CS files and removing my controls. Any one please tell me the easiest way of getting this task.

推荐答案

首先看一下管理面板的结构......区分标题菜单和内容。



复制解决方案资源管理器中的资源(图片,css,js)。



如果你拿走了然后将母版页面的页眉侧面菜单和页脚放在母版页和内容中放置内容占位符。确保你把div放在自己的位置。



如果你想使用web用户控件然后为标题,菜单和页脚添加3个控件。并将控件放在内容页面上。



用asp文本框,asp单选按钮和网格视图或转发器替换文本框和单选按钮或表格等html控件分别。不要忘记在你的asp控件上添加css类。



希望你的工作完成。保持冷静,继续..
first of all take look on the structure of the admin panel...differentiate the header menu and content.

copy the resources(images, css, js) in your solutions explorer.

if you took master page then put the header side menu and footer in the master page and in the content put the content place holder. make sure you put the div in their own place.

if you want to use web user control then add 3 controls for header, menu and footer. and put the controls on the content page.

replace the html controls like text box and radio buttons or tables with asp text box, asp radio button and grid view or repeater respectively. don't forget to add the css class on your asp control.

hope your work will be done. just keep calm and go on..


这篇关于如何将内置模板应用于我的Asp.Net应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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