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

How can I use CommandArgument of LinkButton in jQuery?

I have 5 link buttons. And I want to send their command argument to a web method to load on page scroll. $.ajax({ type: "POST", url: "Default.aspx/GetCustomers", data: '{pageIndex:'+pageIndex+'}', contentType: "application/json;…
2
votes
0 answers

C# usercontrol LinkButton CommandArgument blank after grid subheading

I have an asp:Gridview that displays the amount of time a staff member spends on a project and their comments. I wish to make the date a sub heading within the grid, so it is not displayed on every line of the grid. The grid cannot be sorted. The…
2
votes
1 answer

How do I send a value that starts with a dash to Getopt::Long?

I've got a client-side script I'm making that communicates with GNU-FTP. I want to be able to send it a custom argument on the command line, so I've created an argument --ftp-args This is what it looks like GetOptions( .. redacted stuff.. …
Evan Carroll
  • 78,363
  • 46
  • 261
  • 468
2
votes
1 answer

Passing more than one command Arguments in gridview in asp.net

I have a TemplateField column in a gridview with a image button inside of it. i need to use two command arguments within single image button. here is my code
aami
  • 297
  • 2
  • 8
  • 20
2
votes
2 answers

GridView sorting but LinkButton's CommandArgument is not

The gridview displays fine and sorting by either column works great. However when you click on the link button the CommandArgument that is returned is not the correct value. It is as if the CommandArgument is bound to the row and doesn't get…
Ron Douglas
  • 23
  • 1
  • 5
1
vote
2 answers

From DataList to details page

My scenario is: I have DataList with some products. My SqlDataSource takes all values but I display only picture, name and price. ProductID label visible in item template is set to false. I have added an image button to each product and I would like…
dargod
  • 334
  • 1
  • 15
1
vote
1 answer

pass selected dropdown text in commandArgument on same aspx page?

I want to pass selected dropdown text (ddlTime) in commandArgument of button. Note: Dropdown's Autopostback = false. Code- Aspx -
Abhi
  • 1,963
  • 7
  • 27
  • 33
1
vote
4 answers

How do i pass a command argument of a button in Data List to another page?

Actually i am trying to redirect command argument of a button present in a data list to another page. I am using Request.QueryString method to access the command argument on another page with the help of command name of the button. Please help me…
1
vote
0 answers

Delete data from the database while clicking an action in sweet alert

Basically, I am trying to create a sweetalert delete action while we click on delete(link button) inside GridView. While I'm clicking Delete Option on Sweetalert the record is not deleting. This is my .aspx code
1
vote
1 answer

How do I insert a command argument into a string?

I'm trying to figure out how to send a command line argument into a string, and I keep getting an error. Here is my python code with the command argument import sys class LoginTest(unittest.TestCase): def setUp(self): buildURL =…
Cal Corbin
  • 190
  • 15
1
vote
1 answer

CommandArgument is empty

I would like to do this : where…
Jul
  • 27
  • 4
1
vote
1 answer

pass a javascript value to a linkbutton's CommandArgument

i need to pass a javascript value named $.galleria.current to a linkbutton's CommandArgument declared so : < asp:linkbutton id="prevBut" runat="server" OnCommand="load_com" CommandArgument=place_javascript_value Text="previous" /> How can i do…
Alex
  • 10,869
  • 28
  • 93
  • 165
1
vote
2 answers

How to get the CommandArgument of an ImageButton inside a Repeater

I have a repeater which structured like this
user5710892
1
vote
0 answers

How to launch debugging session command window minimized in Visual Studio?

There's a field for Command Arguments in the project properties. I've tried: /min /minimize /minimized start /min Any ideas?
1
vote
2 answers

Dynamically created LinkButton won't go into command event

I've asked this before, but sadly I'm still having issues and the issue wasn't resolved. Basically, I'm dynamically creating a LinkButton for each row of a table I am generating, and that button has the task of deleting the row with the…
Chris
  • 7,415
  • 21
  • 98
  • 190