Hi,
I have several update panels in my page. i want to call different javascript methods after the update panels are refreshed . i have attached the Sys.WebForms.Pa geRequestManage r.getInstance() .add_endRequest (MyMethod); at the end of the page and after an update panel is refreshed it is triggered.
that method is like MyMethod(sender ,args) .
my problem is how can i identify which update panel is refreshed in side...
User Profile
Collapse
-
Identifying the refreshed update panel
-
ok. i found the solution.
in my onsucceeded method i put
var btnName=$get("< %=btnSave.Clien tID%>").name;
__doPostBack(bt nName,"");
this fires the onClick serverside function . -
hi,
I tried with document.getEle mentById("<%=bt nSave.ClientID% >").click();
but it is not working..
I am using masterpage in my system.Leave a comment:
-
force asp button click event
hi,
im dveloping a web system using vs 2008. in my page i have a ajax page method wich is called by javascript function . in onsuceeded method i want to force the save button on my page to be called and do the serverside finction in code behind "btnSave_Click( object sender, EventArgs e)" method.
I am calling this pagemethod function in onclientclick event of the save button.
depending on the result... -
javascripts+set attributes
Hi,
i am developing a system using asp.net(c#) and javascripts. i make a button in my form disabel in page load method. if a radio button in my page is clicked i have to enable that button. i am using a javascript method in client side to enable the button. however i am calling another javascript method on "onclientcl ick" method of the button. i have discovered that this onclientclick method is not called after i enabled... -
"save file" dialog box in clients
hi,
I am developing a system with asp.net, c#, and ajax.
I have an excel file in server in "Server.MapPath ("ExcelFiles/Test.xls")".
I want to make it available to save to the disk in client side. I hope save file dialoge box will allow to do this. How can i do this?
thanks
Anushka -
write data to excel book
Hi ,
I am developing a system with asp.net ( c#.net at server side programming)
I want to write data in a dataset to a excel book. before write dataset data I have to include a header as a report also.( the header is as we do in crystal reports)
how to do this?
Anushka -
-
remove '?' from a string
I have a string value in a javascript function , as ' var a=abcd?' . I want to remove the '?' char which is at the end of the string. I tried with a.replace(/?/g,''); but it gives a error when loading the page. how can i do this. -
ok I found it. I set the "target" property of the top page to"_parent" and add "Response. redirect("login .aspx") " to on click method of Log out button.
now it works fine.Leave a comment:
-
How to close a asp.net frame set
Hi,
I am developing a system with asp.net, c#.net, ajax and javascripts. I have designed my site with frame set for Top, left and main. I have a logout button on the top page.when the Logout button is clicked, I want to give a confirm message and if it is 'Yes' then close the frame set and redirect to The login page which is the first page of my system.
what is the best way to do this. -
This is the javascript code
[CODE=javascript]function searchCustomerI nfo()
{
document.getEle mentById("img1" ).style.visibil ity = "visible";
// the code to get data from data base and set to fields
//
//
document.getEle mentById("img1" ).style.visibil ity = "hidden";
return false;
...Leave a comment:
-
show spinner gif while data is retrieving
Hi,
I am developing a system using asp.net, ajax and javascripts. I have an interface that display user details. when the user enters the Id and press search button the user details will be retrieved from the database and showed in the fields. i use a javascript function that calls an ajax method in the server side.
while the system is retrieving data from the database I want to display a spinner gif as in this link... -
Read and write with USB port with c#.net
Hi,
I like to learn the basics of reading from and writing to USB port using c#.net.
Can anyone help me? -
thanks lopez.
but my problem is, acording to your example if call2() is written in another .js file can I access it within call() method? as we do in OO languages, we create an object from the class and access its method. actually i am dealing with two .js files. i want to access a function in one .js file from another .js file....Leave a comment:
-
calling functions in other javascripts
Hi,
Is there any way to call function in another javascript , as in Object Oriented languages ?
Anushka -
set css to a button
hi,
I am developing a system with asp.net and javascript.
I am creating a html table dynamically using a for loop in a javascript function. i have a button field in my table.
this is the code I use.
[CODE=javascript] btn=document.cr eateElement('in put');
btn.type='butto n';
btn.id=dset.val ue.Tables[0].Rows[a].BasicNo;
... -
add CSS to a button
hi
I am using a javascript to create an html table with a button field.
this is how i do,
[CODE=javascript] btn=document.cr eateElement('IN PUT');
btn.type='butto n';
cell1.appendChi ld(btn);
row.appendChild (cell1);
tabBody.appendC hild(row);
[/CODE]
how can I apply a style sheet to this button.
thanks -
on text change of a text box
I am developing a system with asp.net(c#) and javascripts. I want to call a javascript method when the textbox text is changed. I tried onkeypress event. it works successfully . but if the user copy and past a value in the text box, the method is not called.
help me to solve this. -
No activity results to display
Show More
Leave a comment: