Hi
I have a problem with scriptmanager .I have a RadButton and a ScriptManager in asp page when i run my program i receive this error:
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ Page language="C#" %>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>سیستم جامع</title>
<link title="Khamenei.ir Search" href="http://farsi.khamenei.ir/opensearch.xml" type="application/opensearchdescription+xml" rel="search" />
<link href="http://farsi.khamenei.ir/favicon.ico" rel="shortcut icon" />
<meta content="Persian, FA" name="Language" id="Language" />
<link rel="stylesheet" type="text/css" href="styles.css" />
<link rel="stylesheet" type="text/css" href="menu.css" />
<link rel="stylesheet" type="text/css" href="search.css" />
<link rel="stylesheet" type="text/css" href="../StyleStandars/SS.css" />
</head>
<body class="HomeBody">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<div style="width: 100%;background: url(themes/fa_def/images/ver2/ramadan_side_bg.gif) repeat-x center -26px" align="center">
<div style="width:977px;background: url(themes/fa_def/images/ver2/bg_side_body.gif) repeat-y;">
<div class="menu" align="right"><ul id="ldd_menu" class="ldd_menu">
<li>
<asp:Label runat="server">
</asp:Label>
<span class="ss"> سیستم خدمات شهری</span><!-- Increases to 510px in width-->
<div class="ldd_submenu">
<div style="width:90%;margin:0 auto;height:40px;background-image:url(back.jpg);display:none"><div style="margin-top:10px;color:White;padding:5px"></div></div>
<div class="loginContainer">
<p class="logneHeader" style="text-align:center;" >ورود به سامانه خدمات شهری </p>
<table>
<tr style="height:30px; vertical-align:middle; font:tahoma; font-size:9pt; font-weight:bold; font-style:normal; color:White;" >
<td>نام کاربری</td>
<td>
<telerik:RadTextBox ID="txtUserName" CssClass="btn" runat="server">
</telerik:RadTextBox>
</td>
</tr>
<tr style="height:30px; vertical-align:middle; font:tahoma; font-size:9pt; font-weight:bold; font-style:normal; color:White;">
<td>
کلمه عبور
</td>
<td>
<telerik:RadTextBox ID="RadTextBox2" runat="server">
</telerik:RadTextBox></td>
</tr>
<tr style="height:30px; vertical-align:middle; font:tahoma; font-size:9pt; font-weight:bold; font-style:normal; color:White;">
<td>
سال کاری
</td>
<td>
<telerik:RadComboBox ID="cmbWorkingYear" Width="130px" runat="server">
</telerik:RadComboBox>
</td>
</tr>
<tr style="height:40px; vertical-align:bottom">
<td dir="rtl">
<telerik:RadButton ID="btnLogin" CssClass="btn" runat="server" Height="24px" Text="ورود به سیستم">
<Icon PrimaryIconWidth="24px" PrimaryIconHeight="24px" PrimaryIconTop="3px" PrimaryIconLeft="3px"
PrimaryIconUrl="../StyleStandars/Images/users_into.png" />
</telerik:RadButton>
</td>
<td></td>
</tr>
</table>
</div>
</div>
</li>
<li>
<span class="ss">سیستم سازمان پارکها وفضای سبز</span>
<div class="ldd_submenu">
<div style="width:90%;margin:0 auto;height:40px;background-image:url(back.jpg);display:none"><div style="margin-top:10px;color:White;padding:5px">سیستم جامع خیلی خوب ! نظر تو چیه؟</div></div>
<div class="loginContainer">
<p class="logneHeader">ورود به سیستم : </p>
<table>
<tr style="height:30px; vertical-align:middle; font:tahoma; font-size:9pt; font-weight:bold; font-style:normal; color:White;" >
<td>نام کاربری</td>
<td>
<telerik:RadTextBox ID="RadTextBox1" CssClass="btn" runat="server">
</telerik:RadTextBox></td>
</tr>
<tr style="height:30px; vertical-align:middle; font:tahoma; font-size:9pt; font-weight:bold; font-style:normal; color:White;">
<td>
کلمه عبور
</td>
<td>
<telerik:RadTextBox ID="RadTextBox3" runat="server">
</telerik:RadTextBox></td>
</tr>
<tr style="height:30px; vertical-align:middle; font:tahoma; font-size:9pt; font-weight:bold; font-style:normal; color:White;">
<td>
سال کاری
</td>
<td>
<telerik:RadComboBox ID="RadComboBox1" runat="server">
</telerik:RadComboBox>
</td>
</tr>
<tr style="height:40px; vertical-align:bottom">
<td>
<telerik:RadButton ID="RadButton2" runat="server" Text="ورود به سیستم">
</telerik:RadButton>
</td>
<td></td>
</tr>
</table>
</div>
</div>
</li>
<li>
<span class="ss">سیستم ارزشیابی پیمانکاران</span>
<div class="ldd_submenu">
<div style="width:90%;margin:0 auto;height:40px;background-image:url(back.jpg);display:none"><div style="margin-top:10px;color:White;padding:5px">سیستم جامع خیلی خوب ! نظر تو چیه؟</div></div>
<div class="loginContainer">
<p class="logneHeader">ورود به سامانه خدمات شهری : </p>
<table>
<tr style="height:30px; vertical-align:middle; font:tahoma; font-size:9pt; font-weight:bold; font-style:normal; color:White;" >
<td>نام کاربری</td>
<td>
<telerik:RadTextBox ID="RadTextBox4" CssClass="btn" runat="server">
</telerik:RadTextBox></td>
</tr>
<tr style="height:30px; vertical-align:middle; font:tahoma; font-size:9pt; font-weight:bold; font-style:normal; color:White;">
<td>
کلمه عبور
</td>
<td>
<telerik:RadTextBox ID="RadTextBox5" runat="server">
</telerik:RadTextBox></td>
</tr>
<tr style="height:30px; vertical-align:middle; font:tahoma; font-size:9pt; font-weight:bold; font-style:normal; color:White;">
<td>
سال کاری
</td>
<td>
<telerik:RadComboBox ID="RadComboBox2" runat="server">
</telerik:RadComboBox>
</td>
</tr>
<tr style="height:40px; vertical-align:bottom">
<td>
<telerik:RadButton ID="RadButton3" runat="server" Text="ورود به سیستم">
</telerik:RadButton>
</td>
<td></td>
</tr>
</table>
</div>
</div>
</li>
</ul></div>
<div class="headerBgColor" align="right">
<form id="ui_element" runat="server">
<p>
</p>
</form>
</div>
</div>
</div>
<div style="width: 100%;background: url(themes/fa_def/images/ver2/ramadan_side_bg.gif) repeat-x center -115px" align="center">
<div style="width:977px;background: url(themes/fa_def/images/ver2/bg_side_body.gif) repeat-y;line-height:13px">
<div style="height:260px;width:957px;" class="bgColor" ></div>
</div>
</div>
<div style="width: 100%;background: url(themes/fa_def/images/ver2/ramadan_side_bg.gif) repeat-x center -373px" align="center">
<div style="width:977px;background: url(themes/fa_def/images/ver2/bg_side_body.gif) repeat-y;position:relative">
<div class="bgColor" style="width:957px;overflow: hidden;padding-top:4px" align="right">
</div>
</div>
</div>
<div style="width: 100%;" align="center">
<div style="width:977px;background: url(themes/fa_def/images/ver2/bg_side_body.gif) repeat-y;position:relative">
<div style="width:957px;padding-top:10px;overflow: hidden;" class="bgColor" align="right">
</div>
</div>
</div>
<div style="width: 100%;" align="center">
<div style="width:977px;background: url(themes/fa_def/images/ver2/bg_side_body.gif) repeat-y;line-height:13px">
<div class="bgColor" style="width:957px;height:159px;overflow: hidden" align="right">
</div>
</div>
</div>
<div style="width: 100%;margin-top:0px;height:10px;font-size:0px;" align="center">
<div style="width:977px;height:10px;background: url(themes/fa_def/images/ver2/trans_ui.gif) no-repeat 0px -70px;"></div>
</div>
<div style="width: 100%;margin-top:0px" align="center">
<div style="width:957px;overflow: hidden;text-align:center" align="right">
<div class="footer">
</div>
</div>
</div>
<div style="width:960px; margin:27px auto 4px auto; height:26px;">
<div class="footerLogo18x">
</div>
</div>
<div style="width: 100%;margin-top:0px" align="center">
<div style="width:957px;overflow: hidden;" align="right">
<div class="footerCopyright">
تمامی حقوق این برنامه متعلق به شرکت اریکا می باشد
</div>
</div>
</div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$(function () {
/**
* the menu
*/
var $menu = $('#ldd_menu');
/**
* for each list element,
* we show the submenu when hovering and
* expand the span element (title) to 510px
*/
$menu.children('li').each(function () {
var $this = $(this);
var $span = $this.children('span');
$span.data('width', $span.width());
$this.bind('mouseenter', function () {
$menu.find('.ldd_submenu').stop(true, true).hide();
$span.stop().animate({ 'width': '410px' }, 300, function () {
$this.find('.ldd_submenu').slideDown(300);
});
}).bind('mouseleave', function () {
$this.find('.ldd_submenu').stop(true, true).hide();
$span.stop().animate({ 'width': $span.data('width') + 'px' }, 300);
});
});
});
</script>
<script type="text/javascript">
$(function () {
/**
* the element
*/
var $ui = $('#ui_element');
/**
* on focus and on click display the dropdown,
* and change the arrow image
*/
$ui.find('.sb_input').bind('focus click', function () {
$ui.find('.sb_down')
.addClass('sb_up')
.removeClass('sb_down')
.andSelf()
.find('.sb_dropdown')
.show();
});
/**
* on mouse leave hide the dropdown,
* and change the arrow image
*/
$ui.bind('mouseleave', function () {
$ui.find('.sb_up')
.addClass('sb_down')
.removeClass('sb_up')
.andSelf()
.find('.sb_dropdown')
.hide();
});
/**
* selecting all checkboxes
*/
$ui.find('.sb_dropdown').find('label[for="all"]').prev().bind('click', function () {
$(this).parent().siblings().find(':checkbox').attr('checked', this.checked).attr('disabled', this.checked);
});
});
</script>
</body></html>
please help to me.
thanks
I have a problem with scriptmanager .I have a RadButton and a ScriptManager in asp page when i run my program i receive this error:
Control 'RadScriptManager1' of type 'RadScriptManager' must be placed inside a form tag with runat=server.
i use asp.net ajax version 2011 and my html code is here<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ Page language="C#" %>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>سیستم جامع</title>
<link title="Khamenei.ir Search" href="http://farsi.khamenei.ir/opensearch.xml" type="application/opensearchdescription+xml" rel="search" />
<link href="http://farsi.khamenei.ir/favicon.ico" rel="shortcut icon" />
<meta content="Persian, FA" name="Language" id="Language" />
<link rel="stylesheet" type="text/css" href="styles.css" />
<link rel="stylesheet" type="text/css" href="menu.css" />
<link rel="stylesheet" type="text/css" href="search.css" />
<link rel="stylesheet" type="text/css" href="../StyleStandars/SS.css" />
</head>
<body class="HomeBody">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<div style="width: 100%;background: url(themes/fa_def/images/ver2/ramadan_side_bg.gif) repeat-x center -26px" align="center">
<div style="width:977px;background: url(themes/fa_def/images/ver2/bg_side_body.gif) repeat-y;">
<div class="menu" align="right"><ul id="ldd_menu" class="ldd_menu">
<li>
<asp:Label runat="server">
</asp:Label>
<span class="ss"> سیستم خدمات شهری</span><!-- Increases to 510px in width-->
<div class="ldd_submenu">
<div style="width:90%;margin:0 auto;height:40px;background-image:url(back.jpg);display:none"><div style="margin-top:10px;color:White;padding:5px"></div></div>
<div class="loginContainer">
<p class="logneHeader" style="text-align:center;" >ورود به سامانه خدمات شهری </p>
<table>
<tr style="height:30px; vertical-align:middle; font:tahoma; font-size:9pt; font-weight:bold; font-style:normal; color:White;" >
<td>نام کاربری</td>
<td>
<telerik:RadTextBox ID="txtUserName" CssClass="btn" runat="server">
</telerik:RadTextBox>
</td>
</tr>
<tr style="height:30px; vertical-align:middle; font:tahoma; font-size:9pt; font-weight:bold; font-style:normal; color:White;">
<td>
کلمه عبور
</td>
<td>
<telerik:RadTextBox ID="RadTextBox2" runat="server">
</telerik:RadTextBox></td>
</tr>
<tr style="height:30px; vertical-align:middle; font:tahoma; font-size:9pt; font-weight:bold; font-style:normal; color:White;">
<td>
سال کاری
</td>
<td>
<telerik:RadComboBox ID="cmbWorkingYear" Width="130px" runat="server">
</telerik:RadComboBox>
</td>
</tr>
<tr style="height:40px; vertical-align:bottom">
<td dir="rtl">
<telerik:RadButton ID="btnLogin" CssClass="btn" runat="server" Height="24px" Text="ورود به سیستم">
<Icon PrimaryIconWidth="24px" PrimaryIconHeight="24px" PrimaryIconTop="3px" PrimaryIconLeft="3px"
PrimaryIconUrl="../StyleStandars/Images/users_into.png" />
</telerik:RadButton>
</td>
<td></td>
</tr>
</table>
</div>
</div>
</li>
<li>
<span class="ss">سیستم سازمان پارکها وفضای سبز</span>
<div class="ldd_submenu">
<div style="width:90%;margin:0 auto;height:40px;background-image:url(back.jpg);display:none"><div style="margin-top:10px;color:White;padding:5px">سیستم جامع خیلی خوب ! نظر تو چیه؟</div></div>
<div class="loginContainer">
<p class="logneHeader">ورود به سیستم : </p>
<table>
<tr style="height:30px; vertical-align:middle; font:tahoma; font-size:9pt; font-weight:bold; font-style:normal; color:White;" >
<td>نام کاربری</td>
<td>
<telerik:RadTextBox ID="RadTextBox1" CssClass="btn" runat="server">
</telerik:RadTextBox></td>
</tr>
<tr style="height:30px; vertical-align:middle; font:tahoma; font-size:9pt; font-weight:bold; font-style:normal; color:White;">
<td>
کلمه عبور
</td>
<td>
<telerik:RadTextBox ID="RadTextBox3" runat="server">
</telerik:RadTextBox></td>
</tr>
<tr style="height:30px; vertical-align:middle; font:tahoma; font-size:9pt; font-weight:bold; font-style:normal; color:White;">
<td>
سال کاری
</td>
<td>
<telerik:RadComboBox ID="RadComboBox1" runat="server">
</telerik:RadComboBox>
</td>
</tr>
<tr style="height:40px; vertical-align:bottom">
<td>
<telerik:RadButton ID="RadButton2" runat="server" Text="ورود به سیستم">
</telerik:RadButton>
</td>
<td></td>
</tr>
</table>
</div>
</div>
</li>
<li>
<span class="ss">سیستم ارزشیابی پیمانکاران</span>
<div class="ldd_submenu">
<div style="width:90%;margin:0 auto;height:40px;background-image:url(back.jpg);display:none"><div style="margin-top:10px;color:White;padding:5px">سیستم جامع خیلی خوب ! نظر تو چیه؟</div></div>
<div class="loginContainer">
<p class="logneHeader">ورود به سامانه خدمات شهری : </p>
<table>
<tr style="height:30px; vertical-align:middle; font:tahoma; font-size:9pt; font-weight:bold; font-style:normal; color:White;" >
<td>نام کاربری</td>
<td>
<telerik:RadTextBox ID="RadTextBox4" CssClass="btn" runat="server">
</telerik:RadTextBox></td>
</tr>
<tr style="height:30px; vertical-align:middle; font:tahoma; font-size:9pt; font-weight:bold; font-style:normal; color:White;">
<td>
کلمه عبور
</td>
<td>
<telerik:RadTextBox ID="RadTextBox5" runat="server">
</telerik:RadTextBox></td>
</tr>
<tr style="height:30px; vertical-align:middle; font:tahoma; font-size:9pt; font-weight:bold; font-style:normal; color:White;">
<td>
سال کاری
</td>
<td>
<telerik:RadComboBox ID="RadComboBox2" runat="server">
</telerik:RadComboBox>
</td>
</tr>
<tr style="height:40px; vertical-align:bottom">
<td>
<telerik:RadButton ID="RadButton3" runat="server" Text="ورود به سیستم">
</telerik:RadButton>
</td>
<td></td>
</tr>
</table>
</div>
</div>
</li>
</ul></div>
<div class="headerBgColor" align="right">
<form id="ui_element" runat="server">
<p>
</p>
</form>
</div>
</div>
</div>
<div style="width: 100%;background: url(themes/fa_def/images/ver2/ramadan_side_bg.gif) repeat-x center -115px" align="center">
<div style="width:977px;background: url(themes/fa_def/images/ver2/bg_side_body.gif) repeat-y;line-height:13px">
<div style="height:260px;width:957px;" class="bgColor" ></div>
</div>
</div>
<div style="width: 100%;background: url(themes/fa_def/images/ver2/ramadan_side_bg.gif) repeat-x center -373px" align="center">
<div style="width:977px;background: url(themes/fa_def/images/ver2/bg_side_body.gif) repeat-y;position:relative">
<div class="bgColor" style="width:957px;overflow: hidden;padding-top:4px" align="right">
</div>
</div>
</div>
<div style="width: 100%;" align="center">
<div style="width:977px;background: url(themes/fa_def/images/ver2/bg_side_body.gif) repeat-y;position:relative">
<div style="width:957px;padding-top:10px;overflow: hidden;" class="bgColor" align="right">
</div>
</div>
</div>
<div style="width: 100%;" align="center">
<div style="width:977px;background: url(themes/fa_def/images/ver2/bg_side_body.gif) repeat-y;line-height:13px">
<div class="bgColor" style="width:957px;height:159px;overflow: hidden" align="right">
</div>
</div>
</div>
<div style="width: 100%;margin-top:0px;height:10px;font-size:0px;" align="center">
<div style="width:977px;height:10px;background: url(themes/fa_def/images/ver2/trans_ui.gif) no-repeat 0px -70px;"></div>
</div>
<div style="width: 100%;margin-top:0px" align="center">
<div style="width:957px;overflow: hidden;text-align:center" align="right">
<div class="footer">
</div>
</div>
</div>
<div style="width:960px; margin:27px auto 4px auto; height:26px;">
<div class="footerLogo18x">
</div>
</div>
<div style="width: 100%;margin-top:0px" align="center">
<div style="width:957px;overflow: hidden;" align="right">
<div class="footerCopyright">
تمامی حقوق این برنامه متعلق به شرکت اریکا می باشد
</div>
</div>
</div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$(function () {
/**
* the menu
*/
var $menu = $('#ldd_menu');
/**
* for each list element,
* we show the submenu when hovering and
* expand the span element (title) to 510px
*/
$menu.children('li').each(function () {
var $this = $(this);
var $span = $this.children('span');
$span.data('width', $span.width());
$this.bind('mouseenter', function () {
$menu.find('.ldd_submenu').stop(true, true).hide();
$span.stop().animate({ 'width': '410px' }, 300, function () {
$this.find('.ldd_submenu').slideDown(300);
});
}).bind('mouseleave', function () {
$this.find('.ldd_submenu').stop(true, true).hide();
$span.stop().animate({ 'width': $span.data('width') + 'px' }, 300);
});
});
});
</script>
<script type="text/javascript">
$(function () {
/**
* the element
*/
var $ui = $('#ui_element');
/**
* on focus and on click display the dropdown,
* and change the arrow image
*/
$ui.find('.sb_input').bind('focus click', function () {
$ui.find('.sb_down')
.addClass('sb_up')
.removeClass('sb_down')
.andSelf()
.find('.sb_dropdown')
.show();
});
/**
* on mouse leave hide the dropdown,
* and change the arrow image
*/
$ui.bind('mouseleave', function () {
$ui.find('.sb_up')
.addClass('sb_down')
.removeClass('sb_up')
.andSelf()
.find('.sb_dropdown')
.hide();
});
/**
* selecting all checkboxes
*/
$ui.find('.sb_dropdown').find('label[for="all"]').prev().bind('click', function () {
$(this).parent().siblings().find(':checkbox').attr('checked', this.checked).attr('disabled', this.checked);
});
});
</script>
</body></html>
please help to me.
thanks