`
Questions tagged [aspbutton]
82 questions
0
votes
1 answer
asp.net web forms using variables inside a server control
I am trying to use a variable inside server control in asp.net webform page(.aspx). I am getting syntax error. What may be the issue?
<%string msgCancelProject = "You are not authorized to cancel the project."; %>

Kurkula
- 6,386
- 27
- 127
- 202
0
votes
3 answers
asp button to call java script function
I am a new developer of asp.net, now I have a problem on the issue of how to call java script function in asp.net. (I am lack of java-script)
I have a java-script code that will show the confirm modal popup like this…

user3578971
- 41
- 1
- 4
0
votes
1 answer
Button click triggers full page postback on first click
Despite the fact that I have placed my asp:Button inside an UpdatePanel, it is still triggering a postback on the full page the first time it's clicked. Also, the OnClick event isn't being caught the first time I click the button either, but every…

EoinM
- 165
- 3
- 15
0
votes
1 answer
Changing client side components' properties while server side execution happening in asp.net
I have a which is used to export some a DataTable into Excel. I need to display a progress image while the DataTable is being generated. Below is my try for this but still stuck. May be I haven't understand the life cycle here.…

highfive
- 628
- 3
- 12
- 31
0
votes
3 answers
asp:Button and asp:LinkButton and asp:Button submitting on enter in Chrome
In Internet Explorer if I hit enter in the TextBox P it submits the Form using the onclick event of LoginButton.
This is what I want to happen.
In Google Chrome if I hit enter it submits the form with the onclick of Button1.
This is not what I…

John Wesley Gordon
- 910
- 2
- 17
- 39
0
votes
1 answer
asp button postback inside div with (display:none)
I have a html button that calls an asp button to dopostback, but nothing happens.
0
votes
2 answers
How to create an asp:button programmatically in c# behind (without click handling)
The following button provides the exact functionality I require, but it must be done programmatically as I will be making more than one based on some variables, but the latter I can figure out if I can just create the button below as a…

dudledok
- 2,800
- 5
- 24
- 36
0
votes
1 answer
How to get the link button id which is in gridview1 on button1click which is in gridview2 - asp.net
i have placed two gridview controls,in which i have buttons. i have linkbutton in gridview1 and button1 in gridview2.
i need to get the linkbutton id on button1 click in grdiview2.
here is the snippet of my code:

vaishnavi
- 1
- 1
- 5
0
votes
3 answers
Listbox items not getting moved to other list box in asp,net
I have two list boxes among which one is source and other is destination.
I want to transfer the selected item to the destination list box after the button click event.
I have searched over the internet and found the sample from here. But in my case…

Mohemmad K
- 809
- 7
- 33
- 74
0
votes
0 answers
Passing a variable from aspx to .cs
I am trying to pass an Id from aspx to .cs. This is the code i have in the aspx:
button
sender
commandargument
aspbutton
0
votes
2 answers
asp:button onClick='navigate + run method'

John
- 3,965
- 21
- 77
- 163
0
votes
1 answer
How can i add superscript to asp.net button control?
I have an asp.net button control used inside ajax AccordionPane and i want to apply the superscipt to the text of button such as "Button1 *Demo ".How can i do this?

swapnil
- 81
- 1
- 3
- 10
0
votes
1 answer
Template Field error in ASP.NET Grid View
I have a Grid View which works, the data bound columns extract the proper information but when I try to add a Template Field I get the following error in the browser:
Description: An error occurred during the compilation of a resource required to…

George Bora
- 1,618
- 6
- 26
- 45
0
votes
5 answers
Trigger an asp:button click event using javascript
I am currently working on a project which needs to trigger an asp:button click event after doing a series of events in a javascript code.
Please see my codes below:
This is my button and it's click event:

Smiley
- 3,207
- 13
- 49
- 66
0
votes
2 answers
Setting a session variable before AutoPostBack fires in an asp:Button
How would I go about setting a session variable from the click of an ASP:Button before an AutoPostBack event fires.
Here is what I have right now, but I'm not exactly sure I'm doing this right:

se_brandon
- 228
- 10
- 25