Questions tagged [clientscript]
86 questions
                    
                    11
                    
            votes
                
                3 answers
            
        asp button and history back onclientclick
hi I have an asp button  which is created using the following code:
 
However, now the javascript doesn't work to go a history back. On the…
         
    
    
        Marc
        
- 2,659
- 3
- 34
- 41
                    10
                    
            votes
                
                3 answers
            
        Yii renderpartial (proccessoutput = true) Avoid Duplicate js request
Im creating a site who works with ajaxRequest, when I click a link, it will load using ajaxRequest. When I load for example user/login UserController actionLogin, I renderPartial the view with processOUtput to true so the js needed inside that view…
         
    
    
        butching
        
- 192
- 1
- 4
- 13
                    9
                    
            votes
                
                4 answers
            
        Why can't you UnRegisterStartupScript?
Seems to me it is a bit wierd that you can do..
Page.ClientScript.RegisterStartupScript(this.GetType(), "KeyName", "alert('changed my mind')", true);
And then later on you can't unregister or stop the javascript from being rendered…
         
    
    
        Lee Englestone
        
- 4,545
- 13
- 51
- 85
                    8
                    
            votes
                
                5 answers
            
        how to detect the Page Close Event with ASP.NET
I have a ASP.NET web app with a MasterPage and contents page, from the MasterPage when I click a MenuItem to open a new aspx Page. if I want to close the new page browser tab, I want to show a popup or a dialog that alert the user that he is closing…
         
    
    
        H_79
        
- 217
- 4
- 7
- 13
                    8
                    
            votes
                
                2 answers
            
        ClientScript.RegisterStartupScript not working
I have searched SO & google, but I can't seem to get this to work.
The code is in the codebehind click event of a  "Cancel" button in my asp.net application but does not seem to close the popup window. Any ideas?
try
{
    if (btnCancel.Text ==…
         
    
    
        Csharp
        
- 2,916
- 16
- 50
- 77
                    6
                    
            votes
                
                1 answer
            
        Can i Use System.Web.UI.Page.ClientScript in ASp.Net MVC?
I am Trying to Register STart up Script in my ASP.Net MVC 3.0
I know I can use this syntax in VB.Net
But not sure if i can use it in MVC
System.Web.UI.Page.ClientScript.RegisterStartupScript(typeof(Page), "co", "coInit(0, 'R');",…
         
    
    
        HaBo
        
- 13,999
- 36
- 114
- 206
                    4
                    
            votes
                
                3 answers
            
        showing ClientScript Alerts before Redirecting to another page in ASP.NET c#?
I gotta address a problem here...
I'm developing a system where I am constantly showing Messages to the user, For instance...
I'm adding a new client, I input all the data and press Save, ON C# what I do is do all the process of saving, then I…
         
    
    
        Victor
        
- 1,108
- 9
- 29
- 53
                    3
                    
            votes
                
                1 answer
            
        How do I convert an ASP.NET page using Ajax webmethods to an Ajax-enabled servercontrol?
In this tutorial I am reading, Dave Ward creates a page that shows the server date in a label without using the update panel.
I am trying to learn how to create servercontrols that use ajax for partial postbacks where methods within the control are…
         
    
    
        NetHawk
        
- 1,392
- 1
- 15
- 33
                    3
                    
            votes
                
                2 answers
            
        Programmatically modifying an embedded resource before registering/referencing it on the page
Firstly, "Modifying" may be the wrong term, I see a few people have posted online just asking whether they can actually modify an embedded resource. What I am wanting to to, is use a resource in my assembly as a kind of template which I would do a…
         
    
    
        James
        
- 449
- 3
- 7
                    3
                    
            votes
                
                6 answers
            
        How to execute multiple ClientScript.RegisterStartupScript in ASP.NET c#?
I'm developing a gridview in which you can download multiple files with one button.
Here's my gridview:
        
            
            
                
                    
    
    
         
    
    
                
            
        
     
 
    
    
        Victor
        
- 1,108
- 9
- 29
- 53
                    2
                    
            votes
                
                2 answers
            
        Way to find out which button is submitting page?
I have a function tied to ClientScript.RegisterOnSubmitStatement that displays a JQuery UI dialog while an UpdatePanel is updating (it takes a while to update). There are 2 buttons on the page, and I'd like to display different text in the dialog…
         
    
    
        user1004944
        
- 51
- 1
- 8
                    2
                    
            votes
                
                1 answer
            
        Issue in running a client script in NetSuite suitescript 2.0
I have a client script in NetSuite 2.0 which is already running ,but if I am making any changes to it, the new changes are not getting reflected the script is still running with the old code.
Even if I try to add single log.debug it is not getting…
         
    
    
        Saili_Agrawal
        
- 33
- 6
                    2
                    
            votes
                
                1 answer
            
        Receiving System.FormatException after using ClientScript
I'm trying to code an onclick behaviour for a GridView by using the following codebehind-code:
protected void gridProcesses_RowDataBound(object sender, GridViewRowEventArgs e)
{
    if (e.Row.RowType == DataControlRowType.DataRow)
    {
       …
         
    
    
        Dennis Röttger
        
- 1,975
- 6
- 32
- 51
                    2
                    
            votes
                
                1 answer
            
        Using Page.ClientScript.RegisterStartupScript doesn't appear to work after Server.Transfer
This should be a fairly simple question
At some point in my code I am doing a Server.Transfer to a different page
In the new page, there is a call (the details are irrelevant)
Page.ClientScript.RegisterStartupScript(GetType(), name, js, true);…
         
    
    
        Paul
        
- 9,409
- 13
- 64
- 113
                    1
                    
            vote
                
                1 answer
            
        saved search set value
I cored a saved search, and when I logdebug the results appear as I want. but when I try to set the value to the destination field, there is no response with any results.
if(cust){
                var custSave = search.create({
                type:…
         
    
    
        antechf11
        
- 55
- 4