Questions tagged [commandargument]

CommandArgument is a property of the Button class. CommandArgument is used to complement the CommandName property by allowing to provide additional information about the command to perform (e.g. if CommandName was "Sort", CommandArgument could be "Ascending").

79 questions
1
vote
2 answers

asp.net repeater with usercontrol - setting commandargument

I have the following repeater code: > …
Duncan
  • 10,218
  • 14
  • 64
  • 96
1
vote
2 answers

linkbutton oncommand issue

I am using 2 linkbuttons inside seperate dataitem server controls on my asp.net web page
zack
  • 7,115
  • 14
  • 53
  • 63
1
vote
2 answers

Sending html anchors text as a parameter to onclick func. c#

I've been trying to send a parameter to onclick func. Look at my code, there is a foreach there. This is for creating
  • related database. This Item coming from database. I want to use it again in delete buttons onclick. It must be come from on…
  • user6607983
    1
    vote
    0 answers

    Binding multiple buttons to a event handler

    I don't have any experience on events & delegates. Been trying to do something from what I found on SO and other sources over internet for past few days. What I'm trying to do is a custom OnPageChange event for our custom pagination. After I…
    Ege Bayrak
    • 1,139
    • 3
    • 20
    • 49
    1
    vote
    2 answers

    How to extract label text at button click

    So what I want to do is to extract the text from a label when a button is clicked. What I've got so far is the following:
    Phantomazi
    • 408
    • 6
    • 22
    1
    vote
    2 answers

    Access CommandEventArgs within PageLoad

    I am using c#.net I have a repeater within a View (MultiView) each row contains a ‘Edit’ button (stored on the CommandArgument is the type ID).
    ClareBear
    • 1,493
    • 6
    • 25
    • 47
    1
    vote
    1 answer

    bind and pass 2 values commandArgument and hidden field, ERROR

    Using a repeater to display a list,(with 'remove' btn beside each record) click 'remove' and it removes from the list. Im passing 'id' using commandArgument, I want to pass another value...'company name' tried it through text, but not sure how to…
    John
    • 3,965
    • 21
    • 77
    • 163
    1
    vote
    1 answer

    How to pass command line arguments to the .exe file (e.g silent mode) using process.start

    I have an vb.net windows application in this application i want run another exe file in silent mode,for this first i have run this exe file in command line it is working.But i don't know how to pass the these arguments through vb.coding…
    Victor Athoti.
    • 829
    • 9
    • 22
    • 49
    1
    vote
    1 answer

    How to get a e.CommandArgument from a row in a gridview while using a dropdownlist inside it in asp.net c#?

    recently I asked a similar question, which you can find in the link below Using Dropdownlist in a gridview Asp.Net? I have a gridview that looks like this...
    Victor
    • 1,108
    • 9
    • 29
    • 53
    0
    votes
    1 answer

    get CommandArgument from ImageButton onClick, VB

    I have a series of ImageButtons...when I click on the image, I want to redirect to another page, using the CommandArgument as a uniqueId...How can i get the commandArgument from the onclick event? Thanks!
    Johanna
    • 151
    • 1
    • 4
    • 8
    0
    votes
    2 answers

    Is it possible to bypass the 9-argument limit in `commandArgs()` for R programs in a bash script?

    i'm currently running a r program where i use already 9 argument with "commandArgs()" for my bash script, but it seems i can't use a 10th argument, the program doesn't take it, is there a way i could do it and won't have to make an other program…
    guillaume
    • 1
    • 1
    0
    votes
    2 answers

    ASP.NET C# Gridview throwing Index out of range

    Im working on a user control that shows available stores from an SQL table on a gridview for the user to select and fill up a textbox. Currently im able to databind everything correctly to the gridview and run actions with the select button inside…
    0
    votes
    0 answers

    Execution halted - R command line parameters

    I have a R script and I would like to pass some filenames/parameters to my Rscript and to execute it from a terminal. I used this command: fileA='aaaa.txt' fileB='bbbb.txt' n=100 string='hello' R CMD BATCH --vanilla '--args $fileA $fileB $n $string'…
    pingu87
    • 103
    • 6
    0
    votes
    0 answers

    How to persists button command argument?

    I have a repeater with asp textbox and asp buttons. The user will enter a value to the textbox and click the button to process. OnClick event (let say rptrButton), I will validate the textbox value and if that value needs additional validation i…
    sd4ksb
    • 241
    • 1
    • 4
    • 16
    0
    votes
    2 answers

    How can I get the value of the CommandArgument in javascript?

    I have a gridview that displays a list of files on screen. The column in this view is an asp link button titled Edit. When I click edit, I want to get the value of the commandargument in a javascript function. function OnEditClick(s, e) { …
    abhi
    • 3,082
    • 6
    • 47
    • 73