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
0
votes
1 answer

LinkButton Commandargument is giving values of the first page in all the other pages (Gridview pagination)

I am using GridView along with custom pagination to show data. In one of the columns where I am showing a link (linkButton) to delete the record, I am passing ID of the record to the backend function. I am getting the commandargument value correctly…
Prashanth KM
  • 75
  • 2
  • 8
0
votes
1 answer

Using a specific column's values to subtract from other rows but the column index moves between files in R

Data I also have the total number of cancer patients (case_totals) and non-cancer patients(control_totals) which in this case is 100 and 1000 respectively. Variant Cancer IBD AKI CKD CCF IHD A1 0 5 4 0 0 4 A2 0 8 5 …
tacrolimus
  • 500
  • 2
  • 12
0
votes
0 answers

Same CommandArgument for two different linkbutton

First I gave to my first button the CommandArguments btnDateModif.CommandArgument = hebergement.Attributes["IdInterne"].Value; Then I'm using the button like this protected void BtnModifDate_Click(object sender, CommandEventArgs e) { …
Mathias
  • 31
  • 1
  • 9
0
votes
1 answer

Using Rscript with an .Rnw file AND commandArgs()

I have an .Rnw file, containing R code chunks and LaTeX commands. So far, I have been developing and testing this code in Rstudio: clicking on "compile PDF" to obtain some output files and a PDF file generated. I would now like to use commandArgs()…
mf94
  • 439
  • 4
  • 19
0
votes
1 answer

Pass Javascript Variable into ASP.NET CommandArgument

It doesn't look like this is possible, but is there any way to pass a javascript variable into the CommandArgument field? I'm trying to pass the facility_id variable so that the code behind can access the value. Here is my aspx code:
John Doe
  • 1,950
  • 9
  • 32
  • 53
0
votes
0 answers

Sending SelectedIndex of ListView to ViewModel through CommandParameter

after a quite bit of googling I haven't found answer on this problem. I have this ListView
Ogmi
  • 257
  • 2
  • 6
0
votes
1 answer

What is wrong in this code?Image Button has to be clicked twice to fire?

protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { HttpCookie cookie = new HttpCookie("CultureInfo"); cookie.Value = ImageButton1.CommandArgument; Response.Cookies.Add(cookie); Server.Transfer(Request.Path); …
0
votes
1 answer

CommandArgument is returning null

I have a Button that i want to generate a soft delete with. Used an OnCommand with an Eval CommandArgument.
0
votes
0 answers

Call Rmarkdown from command line with arguments

I'm trying to run an Rmarkdown script from the command line passing a few arguments that will be integrated into the header info and then print some of them too. Here's my Rmd script code: args <- commandArgs(TRUE) parseArgs <- function(x)…
dan
  • 6,048
  • 10
  • 57
  • 125
0
votes
1 answer

Command argument string is empty in rowcommand event c#

I have a gridview. Inside it I have a link button. I want to get the row index of the button which was clicked inside the rowcommand event handler. This can be done using the command argument property. however it is returning empty string and there…
Kiraak
  • 1
  • 1
0
votes
1 answer

raising an event inside a user control that returns CommandEventArgs

hi all i have the following problam: i have a user control which i want to raise an event from to the page that is using that user control (its a button) anyway my problem started when i wanted to put this user control inside a repeater instead of…
guy schaller
  • 4,710
  • 4
  • 32
  • 54
0
votes
1 answer

Using System("pause") when Command Arguments have been set to a data file

I'm currently writing a very simple program for a class, and am quickly realizing that I never really knew what the System("pause") command was doing. The prompt for the program demands that I have the Command Arguments (located in…
AustinC
  • 169
  • 2
  • 7
0
votes
1 answer

Property 'CommandArgument' is WriteOnly

I have the following line in my code, inside the click event handler of an ImageButton: Protected Sub FinaliseBtn_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles FinaliseBtn.Click, SubmitPaymentViaChequeBtn.Click Dim str as…
Curtis
  • 101,612
  • 66
  • 270
  • 352
0
votes
1 answer

Add multiple CommandArguments to button programmatically

I got some code to create new buttons programmatically. foreach (DataRow dtRow in dtTable.Rows) { string question_id = Convert.ToString(dtRow["QUESTION_ID"]); string question_text = Convert.ToString(dtRow["QUESTION_TEXT"]); var…
mabu
  • 286
  • 8
  • 26
0
votes
2 answers

null return in CommandArgument

There is no data return in my CommandArgument and Row Command code in my .cs Here is my .cs code if(e.CommandName == "ApproveRow") { int index = Convert.ToInt32(e.CommandArgument); //int index; //bool check =…
Jedi Ablaza
  • 171
  • 15