Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
-1 votes
1 answer
47 views

find div in repeater when onclick

My friends, I want to change the class of a tag div in on click button (asp.net), but that div is inside the repeater, how can I find it? and change class? Actually, I want to change bootstrap column ...
user25547267's user avatar
0 votes
1 answer
119 views

OnClick events are refreshing page in ASP.NET

I am using Firestore as my database to gather data and present it through a repeater to create cards on my Kesitler.aspx page using C#. My main issue is that when I click on an asp:Button element, it ...
Abdullah Seçgeler's user avatar
-1 votes
4 answers
5k views

I'm unable to create an @onclick event in Blazor, following an ASP.NET tutorial [duplicate]

I'm following the ASP.NET tutorial on YouTube, and I'm having trouble creating an onclick event. I'm using Blazor and the following code is a Razor file. I'm using .NET 8.0 preview. Image where code ...
Håvard Bakke's user avatar
0 votes
1 answer
46 views

Validation of WebForm using javascript

I have two events on my submit button. one is OnClientClick and second is OnClick. OnClientClick is used to validate form and OnClick is used to submit the record in database. firstly I want to ...
Jayesh Shimpi's user avatar
0 votes
0 answers
40 views

Error on adding OnClick attribute to insertAdjacentHTML when passing javascript to OnClick

My Code on aspx page: function StartupJS() { document.getElementById('cphForm_btnHistory').insertAdjacentHTML("beforebegin", '<input type="submit" name="ctl00$cphForm$...
Sup Ravi Kumar's user avatar
0 votes
1 answer
786 views

Add Button Onclick to DataTable with HTML Append (ASP.NET C#)

I have the following code to display a grid view layout with the html.Append(). Hence, would like to seek for advise how to add the onclick event and indicate which button is been clicked on specific ...
RogerSK's user avatar
  • 393
0 votes
2 answers
991 views

How to hide & show the Inner Gridview in a nested GridView via external button click event?

I have an issue with nested Gridview! I have two Girdviews with the ID - GridView1(Parent Gridview) and GV2(Child Gridview) I have a Asp:Button with the ID - btnedit(Event = OnClick()) Qs: how to ...
user avatar
0 votes
1 answer
798 views

Get the ID in row that has radio button checked [duplicate]

I have this function which creates a table in a modal popup and the table gets populated from data in an array passed in from an ajax call. Now on the click of a button in the modal popup I need to ...
stonypaul's user avatar
  • 705
0 votes
1 answer
808 views

How to trigger an OnClieck event for a ICON in ASP.NET C#

kindly help me out for this issue, Onclick event for the icon is not working! HTML : <button id="create_project" runat="server" onclick="create_new_project" style="outline: none; border: none;"&...
user avatar
0 votes
1 answer
214 views

C# code to clear textbox on click is not working, error

I have created a aspx webpage that searches a sql database and that search is returned in a gridview. I am using a textbox and button to do the search. The search works fine but I am trying to clear ...
WGraulich's user avatar
-1 votes
2 answers
700 views

I got an error on Asp.net(Web-form ). It says Compilation error / Application. The function of click button is not working

Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code ...
Unknown Beginner's user avatar
-1 votes
1 answer
245 views

How can I get gridview header text value as a string by click any gridview cell

I have a dynamic GridView1 where header is different date. When a user click to a cell I need header text value to find the date details in my sql database. GridView1 like: LineName 05-28-21 05-...
Rafiqul Islam Parvez's user avatar
0 votes
3 answers
500 views

problems with local storage and onClick on page refresh

hello guys i am woking on this app where there are 3 states on a button first state, this is the default when the web page is openend for the first time Picture 1:- then when you click it, it changes ...
Kristoffer Barstad's user avatar
0 votes
1 answer
77 views

ASP.NET click event confusion [closed]

I'm really confused. 😕. In ASP.NET, to capture a click event in C#, would I use runat="server" and onclick="emnt_Click()", or elmt.onclick = elmt_Click(), or elmt.Attributes.Add(&...
user avatar
1 vote
1 answer
309 views

how to call function in code behind with javascript?

i want to call the function located in the code behind from javascript Button : <button class = "btn btn-outline btn-danger dim" type = "button" onclick = "confirmDelete ()&...
isvadha putri's user avatar

15 30 50 per page
1
2 3 4 5
25