Click here to Skip to main content
15,910,981 members

Comments by Member 8390746 (Top 30 by date)

Member 8390746 11-Oct-13 2:34am View    
I try it but the report viewer shows only one report
Member 8390746 16-Aug-13 1:14am View    
This is my code. I am already using the clientid of button


txtBox.Attributes.Add("Ondblclick", "return clickButton(event, '" + btnSearch.ClientID + "')");

<script type="text/javascript">
function clickButton(event, buttonid) {
debugger;

var bt = document.getElementById(buttonid);
if (bt) {
bt.click();
}
}
Member 8390746 14-Aug-13 7:44am View    
<asp:Button runat="server" ID="btnSearch" Style="display: none" OnClick="btnSearchClick" />


protected void btnSearchClick(object sender, EventArgs e)
{
BindDataToListView(txtBox.Text);
if (txtBox.Text == "")
{
ValueField = 0;
}
txtBox.Focus();
}
Member 8390746 14-Aug-13 7:19am View    
I am also using the below script for textbox Keyup. Its working perfect

var to;
var prm = Sys.WebForms.PageRequestManager.getInstance(); // Page Request Manager object

function onTxtKeyUp(e, buttonid) {
// debugger;
if (e.KeyCode != 9)
to = setTimeout(function () {
performSearch(buttonid);
}, 300)
}
function onTxtKeyDown() {
if (to) clearTimeout(to);
}
function performSearch(buttonid) {

if (prm.get_isInAsyncPostBack) {
prm.abortPostBack();
}

__doPostBack(buttonid, "");

}
Member 8390746 14-Aug-13 7:14am View    
Yes I wrote a function in button click event,and I mentioned above the usercontrol is working perfectly in a sample project ,contains a default page and the user control, that i created to check the usercontrol, all script functions are running perfectly.Now I add this usercontrol in to main project then only the problems occurs.