Javascript after button click not working

The problem is on button submit I wanted a javascript prompt which does not work in the portal.
The code is like this
privatevoidbtnSubmit_Click(objectsender, System.EventArgs e)
Page.RegisterClientScriptBlock("alert","<script language='javascript'>alert('Thank you! Your form was successfully submitted.');</script>");
Could you explain this.
Thanks

Hi guys,
try the following code.
page_load code
===============
YourButtonName.Attributes.Add("onClick", "JsFnName()");
Javascript code in .aspx
========================
<script language="javascript">
function JsFnName()
alert('Thanks you your form was succesfully submitteid');
</script>

Similar Messages

  • Flash Component Button click not working

    I've gone back to an old project to change some logos around,
    and my flash component buttons no longer work. They appear on
    stage, but the click event is not happening. I authored on XP, now
    on Vista. Director 10.1. Any idea what is happening?

    If you are adding those buttons now, check for each button
    the Flash
    component tab in the property inspector and make sure the
    eventPassMode
    (lowest option) is set to #passAllways.
    HTH
    Manno
    khomel wrote:
    > I've gone back to an old project to change some logos
    around, and my flash
    > component buttons no longer work. They appear on stage,
    but the click event is
    > not happening. I authored on XP, now on Vista. Director
    10.1. Any idea what is
    > happening?
    >
    Manno Bult
    http://www.aloft.nl

  • Track pad and button click not working

    I have a Macbook pro from 2008, the 2.5 GHz Intel Core 2 Duo processor, 4gigs ram. Recently my computer's track pad mouse stopped clicking and the tap to click function isnt working either. I can move the mouse with the trackpad and the scroll/zoom functions still work. Every once in a while the click will register, but the unclick will never happen, i.e. I will be highlighting everything on a page and wont be able to unhighlight unless i have the external mouse. When I scroll over the x - + of a window nothing shows up. I used a usb mouse and that worked fine, and shows the x - +. Anyone having this problem or have a solution for this problem?
    Thanks,
    -Matt

    Welcome to Apple Discussions!
    One thing to check is the battery--there have been instances of the battery swelling and becoming deformed and exerting pressure on the trackpad from below. If this is the case, stop using the battery immediately before it does permanent damage.
    Apple used to have a recall on some of these batteries, but unfortunately no more. If you have access to an Apple Store, take it in and show it to the genius bar. No guarantees, but sometimes if someone feels this should have not happened, you might be able to get a free replacement.
    Good luck!

  • How can I automatically close a dialog box using Javascript after I click the OK button to submit it?

    How can I automatically close a dialog box using Javascript after I click the OK button to submit it? I don't want to have to X out of the dialog box after I am done.
    Thanks
    Linda

    JS can not interact with open dialogs in any way, unless it's a dialog
    created in JS using the Dialog object.
    On Thu, Jul 24, 2014 at 11:13 PM, lindaeliseruble <[email protected]>

  • Firefox did an automatic update to 6.01, and now my middle mouse button is not working in the browser. It doesn't close tabs, it doesn't open new tabs by middle clicking a link, it doesn't allow me to middle click to scroll the page...

    Firefox did an automatic update to 6.01, and now my middle mouse button is not working in the browser. It doesn't close tabs, it doesn't open new tabs by middle clicking a link, it doesn't allow me to middle click to scroll the page..

    [BUG FIXED, see "EDIT 2" at the end of my post]
    I'm on Firefox 3.6.21, and I got this problem today after a Greasemonkey update (To version 0.9.10, apparently).
    Disabling Greasemonkey solved the problem, and re-enabling it reproduced the problem (middle-clicking links to open in new tab did not work, merely highlighted the link).
    I should also note that while Greasemonkey was enabled and the bug was affecting me, Ctrl+Click to open links in new tabs was also broken.
    I hope this helps!
    EDIT: It appears this is a known incompatibility/conflict bug between current versions of Greasemonkey and Tab Mix Plus. Read more here:
    https://github.com/greasemonkey/greasemonkey/issues/1406
    EDIT 2: GREASEMONKEY HAS NOW BEEN UPDATED with a workaround to fix the problem. Go to https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/versions/ to install the update manually. It hasn't been reviewed by Mozilla yet, so it won't be an automatic update for another day or two. All credit to "cannonfodder" below for noticing this; please mark his post as helpful!

  • Flex 2 TouchPad Right-Click Not Working After Upgrade

    Hi, I recently upgraded my Lenovo Flex 2 (15 inch) notebook from Windows 8.1 to Windows 10. After upgrading, the right click button on my touchpad stopped working. Suspecting a driver issue, I uninstalled the driver to allow the default Windows driver to take over. The right-click button started to work again, so it's not a hardware problem. However, the touchpad, in general, became erratic and difficult to use. I then downloaded the latest Lenovo Flex 2 touchpad driver for Windows 10. However, the touchpad returned to the way it was after the upgrade and the right-click button does not work. Please help me with this. I need my laptop to function properly during my travels. Kind regards, Ash

    Try a two-finger click.
    You can change your secondary click settings here:
    System Preferences > Trackpad > Point & Click > Seconday Click > Select the an option from the drop down

  • 2008 Macbook pro left click not working properly after upgrading to 10.6.8

    I have a 2008 Macbook pro and a few months ago after upgrading to 10.6.8 my left click has been wonky.
    Using the trackpad the left click eventually gets "stuck" or stops responding and I have to push it multiple times before it does anything.  I have tried plugging in a mouse, but when I do so the mouse also behaves the same way.  The only way I seem to be able to get the clicking to work properly is to restart the computer with the mouse attached.
    I have seen threads about trackpads being messed up by swollen batteries, but my battery is brand new and looks fine, and the clicking problem extends to an external mouse, so I believe it is something with the preferences.
    I tried deleting  com.apple.driver.AppleBluetoothMultitouchTrackpad.plist   and restarting and the problem seemed to be fixed, but then after about a half hour it returned.
    Having to keep a mouse plugged into my macbook is driving me crazy, anyone know a solution?

    I started having the same issue after update.  I'm on a MacBookpro running 10.7.2
    ICalled apple and they did a remove battery reboot, a reload lion and a option/command/R/P reboot on startup and then the computer started working.  Two days later problem was back.  I then did a reboot and the computer was back to working.  Today the computer worked fine tell it went to sleep.  I had to do a hard reboot to get the Mac up and running and now no left click.  Please help. I can not use the Mac  with the trackpad, a mouse, a Bluetooth mouse, or a digital pad. All so signs of left mouse click not working.  One other item when you go to pick your user at startup the left mouse click works.  Help!

  • On my MacBook Pro, sometimes when I click to close tabs in Safari the button will not work.  I have to click on some other part of the screen and then it will.  This happens in other programs like Word/Excel for changing font, etc. Solution/Suggestions?

    On my MacBook Pro, sometimes when I click to close tabs in Safari the button will not work.  I have to click on some other part of the screen and then it will.  This happens in other programs like Word/Excel for changing font, etc. Solution/Suggestions?

    Start up in Safe Mode.
    http://support.apple.com/kb/PH4373

  • Save button is not working for ONE CLICK ACTION

    Hi All,
    We have embeded a custom table view in a standard component.While we are editing the first row of the table view by ONE CLICK ACTION & pressing the SAVE button of overview page,then the record is saved in the database. But if we edit any row other than the 1st one,the save button is not working.
    We have used transaction context here for simple object.
    lv_tx_ctxt = lr_ent_bt->get_transaction( ).
    my_tx_context->add_tx_context( lv_tx_ctxt ).
    Please suggest how we can focus on the current line which we are editing & can save the record in database?
    Thanks.

    Hi Hakan,
    Probabaly this is not my problem. I know that how bt one click we can get the desired row.
    Let me briefly explain you my requirement and currently where I am stuck.
    I have a assignment block ( custom) in the main overview page with a custom table view ( ie in the view we are displayng entries in the table view ) and the user can press edit button on any row and that will open the particular row in edit mode . User will change the value in any of the columns and press save button on the main component and the custom changes will be saved in the database.
    Now the problem that we are facing is when we are chnaging the first row it si working but when we are doing chnages in the 2nd row or 3rd row changes are not saved ( not even in the table view that is getting displayed) .
    *Let me briefly tell you the approach that we took  . Since our table view uses a simple object  ( which is not a related object with BTORDER so we need to explicitly save the simple object entities to transaction context and for doing that we have redefined the eh_onsave method in the overview page) .
    *Now the save button is in overview page so to pass the entry from our custom table view to overview we are using custom controller . The custom controller 's collection wrapper only has the first entry of the table view custom_controller->collection_wrapper->get_next is failing which is the reason why the 2nd entry is not getting saved.
    Can you tell me how i can get all the table entries in my custom controller's collection wrapper?
    Let me know if you have any other questions.

  • My 'clear history button is not working. When I click on it it doesn't do anything and the letter are gray instead if blue like usual. I've gone to every type of settings I can bit I don't know how to fix it. Please help .

    My 'clear history button is not working. When I click on it it doesn't do anything and the letters are gray instead of blue like usual. I've gone to every type of settings I can think of but I don't know how to fix it. Please help .

    T
    Try:
    - Reset the iOS device. Nothing will be lost      
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings                 
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes
    - Restore to factory settings/new iOS device.                       

  • My homepage button is not working for my iphone 4 after installing ios 5

    my homepage button is not working for my iphone 4 after installing ios 5 has anyone got any suggestions please

    Hope it works.
    When i was in iOS 4 nothing happen quite like this.
    BTW, does it do anything with iCloud thing?
    Thank you.

  • Mute button is not working on my iPhone 4 after updating to IOS7

    Hi,
    Mute/Silent button is not working on my iPhone 4 after updating to IOS7. When I make my phone silent using that sliding button on the side, the phone toggles between mute/unmute position automatically and settles in unmue position. Then it will change state again if I shake the mobile. Did anyone face this issue?

    I have this problem too - and it is on a BRAND new iPhone 6 - I have definitively tracked the issue to the moment I upgraded to iOS 8.1.2 - and am beyond frustrated. No fix to tell you about, sorry…but you can read my post here if you are into the whole "misery loves company" thing: iOS 8.1.2 Cellular data problem (Definitive - maybe)

  • The forward, back, refresh, and stop buttons are not working. Even after installing the latest version. Anyone else having this issue?

    The forward, back, refresh, and stop buttons are not working. Even after installing the latest Firefox update. Also my home page stopped loading upon startup even tho I have it setup to do so. Anyone else experiencing these issues? This is my second request for help and of course, Firefox on-line support is always closed.

    Those are all symptoms of a problem with the places.sqlite file, for details see http://kb.mozillazine.org/Locked_or_damaged_places.sqlite

  • All iPad buttons are not working even after resetting it (hard, soft and via iTunes).

    All iPad 2 buttons are not working even after I resetting it. I tried both of the hard and soft reset, and even resetting my iPad via iTunes. 
    The volume buttons work after I tried this method : "hold iPad in landscape mode. Push the home button while rotating it to Portrait mode, release it."

    I have the same issue, nothing I did fixed the problem, I would suggest if you can visit apple store and give us your feedback with them.
    for me I can't go to apple store because I don't have any store near me, I will have to wait for 2 months to travel!

  • After I updated to iOS 7.0.2 my lock button is not working properly

    After I updated to iOS 7.0.2 my lock button is not working properly I push the button many times and after many failed attempts it locks and sometimes not. I had to use the accesibility tool to lock it manually from the screen, this is really annoying.

    I guess it is.
    Do you have a question, or are you just sharing your experience with us?

Maybe you are looking for

  • Please help! Deleting songs from itunes library & updating ipod

    Must I keep all albums I wish to upload into my ipod on my computer? I have the ipod settings set to automatic and if I delete the album from the library (completely from my pc) the next time I connect my ipod the album gets deleted from the ipod. I

  • This router has mind of it's own "linksys-n" unsecure keeps popping up with wireless disabled

    I bought this router WRVS4400Nv2 recently and I have been behaving strange since then and here are a few instances 1. Factory reset - Login to admin gui and it times out every few mins ( Which is normal ) but after a while it just gives up the time o

  • Error in LSMW for new matl-You have not fully maintained the descriptions

    Hi Experts, I am creating a LSMW to create a new material master, but at the end part get the error "You have not fully maintained the descriptions" Message no. MG171. I am using the Standard batch/direct input" and Program Name         RMDATIND. Can

  • Computer Shutdowns without reason

    My colleague ran down the hard drive free space to almost nil. I was able to back up the important files and free up sufficient space. I ran disk utility and Apple Jack to repair scrambled files/directories. Everything seemed good to go but just befo

  • What's the Magic of Spell Check?

    Hello Everyone! I hope I'm on the right forum this time. I'm a physician. I bought Stedmans Legal/Pharacuetical/Medical Spell Checker in 2004/05. I loved it. When I upgraded to Leopard, something happened. It was gone. It wasn't in any of my backups.