Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7867629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:45:24+00:00 2026-06-03T00:45:24+00:00

In short I want a call a function jAlert() from jquery.alert.js file in a

  • 0

In short I want a call a function jAlert() from jquery.alert.js file in a .aspx.vb page..
More details below

“When I click on “update page” the control goes to ”ActionRepeaterItemBound” on code behind and then to my action.js page and this way I am able to add attributes and use them while calling my jscript function. However when I click on “Submit Update”, the control first goes to action.js and then to “ProcessAction” on code behind. So I am not sure how I need to add attributes before the control goes into action.js.”

I have a file jquery.alert.js which have functions like jAlert().

I have a file .aspx with part of code as below

<asp:Repeater runat="server" ID="currentActionRepeater" OnItemDataBound="ActionRepeaterItemBound" OnItemCommand="ProcessAction">
            <ItemTemplate>
                <asp:LinkButton ID="CurrentActionCommit" runat="server" CssClass="action_method_commit" CommandName='<% #Eval("MapName").ToString() + ":" + Eval("ActionName").ToString() + ":Commit"%>' CommandArgument='<%# GetActionFolderId(Eval("FolderID")) %>' Text="Submit"/>
                <asp:LinkButton ID="CurrentActionCancel" runat="server" CssClass="action_method_cancel" CommandName='<% #Eval("MapName").ToString() + ":" + Eval("ActionName").ToString() + ":Cancel"%>' CommandArgument='<%# GetActionFolderId(Eval("FolderID")) %>' Text="Cancel"/>
            </ItemTemplate>
</asp:Repeater>

My aspx.vb page has a function as below where attributes are added to control and are used in a page action.js to call the jAlert function

Protected Sub ActionRepeaterItemBound(ByVal Sender As Object, ByVal e As RepeaterItemEventArgs)

I want a similar logic to be performed on my LinkButton “CurrentActionCommit”. How can I do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T00:45:25+00:00Added an answer on June 3, 2026 at 12:45 am

    Im not sure if this is what you are looking for but in your repeater databound event you can attach an onclick event to the button.

    First find the button in the repeater and then add the onclick event

    CurrentActionCommit.Attribute.Add("OnClick","alert('Clicked')");
    

    Hope this helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to call the following function from my managed code: short LS_LoadConfig(LS_ID SensorID,LPVARIANT
I want to call shell commands (for example 'sleep' below) in parallel, report on
Short version: I'm extending a jQuery object function that is intended to take 0-3
In short: I want to monitor selected calls from an application to a DLL.
I have a hash function defined in a header file which I want to
In short: I want to have two fullscreen views, where I can switch between
SHORT DESCRIPTION OF PROBLEM: I want to set the text of a searchbar without
I want to store short arrays in a field. (I realize there are reasons
I want to make a long list short by hiding some elements in long
I want to make a short URL service for 2 million assets but I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.