Calling server side event in asp.net from java script

前端 未结 6 2082
-上瘾入骨i
-上瘾入骨i 2020-12-20 09:50

Surely will be marked as duplicate one but after tons of question and example i couldn\'t solve my problem.
What i want?
Calling server side event

6条回答
  •  醉话见心
    2020-12-20 10:29

    Use ASP link button instead of ASP BUTTON. Button control is not called from javascript because it type is submit while link button type is button.

    For example i have added two asp control

            
             
    

    and execute the page When we view the source of running page its look like this

            Link Button
            
    

提交回复
热议问题