Archive

Archive for March, 2015

The Query Cannot be run for the following DataObject: InfoPath cannot run the specified query. Access is denied

March 23, 2015 Leave a comment

Hi all,

To Solve this issue follow the following Steps :

1- In InfoPath form select Tools Menu
2- Select Form Options
3- Select Security and trust from the left panel
4- Uncheck automatically determine security level
5- Select full trust radio button
6- Click ok

 

Categories: InfoPath

Enable or Disable ASP.NET TextBox on Button Click Event Using JQuery

March 11, 2015 Leave a comment

Hi all,

try this example to Enable or Disable ASP.NET TextBox on Button Click Event Using JQuery

<html>
<head>
<title>Enable/Disable Asp.net Textbox</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js">
</script>
<script type="text/javascript">
$(document).ready(function () {
$("#btnDisable").click(function () {
$("input:text").attr("disabled", "disabled");
return false; //to prevent from postback
});
$("#btnEnable").click(function () {
$("input:text").removeAttr("disabled");
return false; //to prevent from postback
});
});
</script>
</head>
<body>
<form id="form1" runat="server">
<table>
<tr>
<td colspan="2">
<b>* Click on any button and try to type text in textbox for demo</b>
</td>
</tr>
<tr>
<td>
&nbsp;
</td>
</tr>
<tr>
<td>
Try to type:
</td>
<td>
<asp:TextBox ID="txtTestbox" runat="server" ClientIDMode="Static" />
</td>
</tr>
<tr>
<td>
&nbsp;
</td>
<td>
<asp:Button ID="btnDisable" runat="server" Text="Disable" />
<asp:Button ID="btnEnable" runat="server" Text="Enable" />
</td>
</tr>
</table>
</form>
</body>
</html>

Good Luck.

Categories: ASP.Net, Jquery