Note that there are some explanatory texts on larger screens.

plurals
  1. POCalling codebehind method from markup and is throwing javascript error
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COChecked it, It didn't explain much, well at least in a way for me to understand it. I've checked and one of the ways is the way to do it but it causes an error for me. I don't know much with JavaScript, that's why I want to what I need done in the codebehind. I do know that if I was using a JavaScript function that the onclick would work, but as I mentioned I don't know enough in JavaScript to do what I need done.
      singulars
    2. COServer code is interpreted **before** client code. When the server is done processing, everything is output as **plain text**. You can't interact directly with the server from the client or the other way around. Anything the server outputs has to be able to be interpreted by the browser; that is HTML, CSS, and JavaScript. It's very hard to explain without a basic understanding of the concept. That's why I suggest you invest some time reading about the "client-server" model until you **understand**, then you'll see why your question is not possible, at least not the way you think it is.
      singulars
    3. COI've read it over a couple times. I'm just confused that I can use an asp button and use that onlick method to call its onclick method from the code behind. But can't with a div's onclick event even though I am using runat server. So i figured that there would be no reason not to be able to call a method on the div's onclick method. I had a link from a post on here stating that you can call a codebehind method from the mark up... that link is..http://stackoverflow.com/questions/18739062/how-to-call-method-from-code-behind?lq=1
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload