GridView Loop in JQuery To find a control
How to disable a button in grid view in asp.net
first add reference to JQuery
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script>
<script>
$(function () {
$('.jqSelector').each(function () {
$(this).attr("disabled", true);
});
})
</script>
Note : jqSelector is a CSS class given to a button control inside the grid view
Use ASP Cookie in aspx
<%if HttpContext.Current.Request.Cookies("authuserid").Value<>"1" AND HttpContext.Current.Request.Cookies("authuserid").Value<>"24" then%>
'''' User code here
<%End if%>
How to disable a button in grid view in asp.net
first add reference to JQuery
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script>
<script>
$(function () {
$('.jqSelector').each(function () {
$(this).attr("disabled", true);
});
})
</script>
Note : jqSelector is a CSS class given to a button control inside the grid view
Use ASP Cookie in aspx
<%if HttpContext.Current.Request.Cookies("authuserid").Value<>"1" AND HttpContext.Current.Request.Cookies("authuserid").Value<>"24" then%>
'''' User code here
<%End if%>
No comments:
Post a Comment