asp.net中的菜单问题 [英] Problem with the menu in asp.net
问题描述
大家好,
i有一个HTML表格和一个asp.net表格。
ni有这个切换菜单按钮。
ASP.NET PAGE CODE:
<%@ Page Language =C#AutoEventWireup =trueCodeBehind =test.aspx .csInherits =ChemicalApp.test%>
<!DOCTYPE html PUBLIC - // W3C // DTD XHTML 1.0 Transitional // ENhttp://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional。 DTD>
< html xmlns =http://www.w3.org/1999/xhtml>
< head runat =server>
< meta charset =UTF-8>
< title> AdminLTE | Dashboard与LT; /标题>
< meta content ='width = device-width,initial-scale = 1,maximum-scale = 1,user-scalable = no'name ='viewport'>
<! - bootstrap 3.0.2 - >
< link href =〜/ css / bootstrap.min.css =stylesheettype =text / css/>
<! - font Awesome - >
< link href =〜/ css / font-awesome.min.css =stylesheettype =text / css/>
<! - Ionicons - >
< link href =〜/ css / ionicons.min.css =stylesheettype =text / css/>
<! - 主题风格 - >
< link href =〜/ css / AdminLTE.css =stylesheettype =text / css/>
<! - daterange picker - >
< link href =〜/ css / daterangepicker / daterangepicker-bs3.css =stylesheettype =text / css/>
<! - iCheck for checkboxes和radio inputs - >
< link href =〜/ css / iCheck / all.css =stylesheettype =text / css/>
<! - Bootstrap颜色选择器 - >
< link href =〜/ css / colorpicker / bootstrap-colorpicker.min.css =stylesheet/>
<! - Bootstrap time Picker - >
< link href =〜/ css / timepicker / bootstrap-timepicker.min.css =stylesheet/>
<! - DATA TABLES - >
< link href =〜/ css / datatables / dataTables.bootstrap.css =stylesheettype =text / css/>
<! - HTML5 Shim和Respond.js IE8支持HTML5元素和媒体查询 - >
<! - 警告:如果您通过file:// - >查看页面,则Respond.js不起作用
<! - [if lt IE 9]>
< script src =https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js>< / script>
< script src =https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js>< / script>
<![endif] - >
<! - jQuery UI - >
< link href =〜/ css / jQueryUI / jquery-ui-1.10.3.custom.css =stylesheettype =text / css/>
< style type =text / css>
/ *来自HTTP://WWW.GETBOOTSTRAP.COM
* Glyphicons
*
*用于在文档中显示图标及其类的特殊样式。
* /
HTML和ASP.NET页面的区别在于asp(href =〜/ css / )n在HTML页面中(href =../../ css)。
同样我也有菜单列表。
两个切换按钮n菜单都运行良好,HTML很好。
但同样的事情,当我复制此代码n粘贴在我的asp.net表单中时,
它只是显示菜单n三个栏图标,但是当我点击这些菜单时
它没有打开菜单列表n也没有切换..
i保证,我已将每个所需的css n链接到其他相关的支持文件。
任何人都可以plzzzzz ....帮助我,
我只是删除〜/n感谢全能,
我得到了它
Hi guys,
i have one HTML form n one asp.net form.
n i have this toggle menu button.
ASP.NET PAGE CODE: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="ChemicalApp.test" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <meta charset="UTF-8"> <title>AdminLTE | Dashboard</title> <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'> <!-- bootstrap 3.0.2 --> <link href="~/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <!-- font Awesome --> <link href="~/css/font-awesome.min.css" rel="stylesheet" type="text/css" /> <!-- Ionicons --> <link href="~/css/ionicons.min.css" rel="stylesheet" type="text/css" /> <!-- Theme style --> <link href="~/css/AdminLTE.css" rel="stylesheet" type="text/css" /> <!-- daterange picker --> <link href="~/css/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" /> <!-- iCheck for checkboxes and radio inputs --> <link href="~/css/iCheck/all.css" rel="stylesheet" type="text/css" /> <!-- Bootstrap Color Picker --> <link href="~/css/colorpicker/bootstrap-colorpicker.min.css" rel="stylesheet"/> <!-- Bootstrap time Picker --> <link href="~/css/timepicker/bootstrap-timepicker.min.css" rel="stylesheet"/> <!-- DATA TABLES --> <link href="~/css/datatables/dataTables.bootstrap.css" rel="stylesheet" type="text/css" /> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script> <![endif]--> <!-- jQuery UI --> <link href="~/css/jQueryUI/jquery-ui-1.10.3.custom.css" rel="stylesheet" type="text/css" /> <style type="text/css"> /* FROM HTTP://WWW.GETBOOTSTRAP.COM * Glyphicons * * Special styles for displaying the icons and their classes in the docs. */
The difference in HTML n ASP.NET page is, in asp(href="~/css/") n in HTML page(href="../../css").
similarly i have menu list also.
both toggle button n menu were working well n good in HTML.
But same thing, when i copy this code n pasted in my asp.net form, then
its just displaying the menu n three bars icon, but when i click on these menu
its not opening the menu list n nor toggle..
i assured that, i have linked each n every required css n other related supporting files.
Can anyone plzzzzz.... help me,
I just remove "~/" n Thanks to Almighty,
I got it.
这篇关于asp.net中的菜单问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!