MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
It seems there is something wrong with javascript event. I've checked this function, there is no such error in it. It might be other js code cause this error. You can click the error to check which code causes this error:
Besides, I can't find $.message function on my side, which Plug-ins are you using? Please post more details here.
Best Regards,
Daisy
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Just from this code, I can't find which code causes the error. If it's convenient, please post the full demo here. Then I can understand the error better. Besides, '$.message' seems you are using some Plug-ins. Which
jquery Plug-ins are you using?
Best Regards,
Daisy
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
First, we should to confirm which code causes this error——html or code behind. Please modify the js code to:
function showMsg0() {
alert("Code behind is correct!");
};
Second, if it can alert this sentence, it means the error is caused by js code. According to the reference you post here, I don't find $.message event. Where do you find this event? If it's convenient, please post your code in github or OneDrive, then I
can test your code.
Best Regards,
Daisy
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Contributor
6479 Points
5815 Posts
Show event from Code Behind
Jan 13, 2018 03:40 PM|wmec|LINK
Hi,
How to run the following event, from Code Behind?
Peter
Contributor
6479 Points
5815 Posts
Re: Show event from Code Behind
Jan 15, 2018 06:56 AM|wmec|LINK
Hi,
Any help?
Peter
Contributor
2400 Points
730 Posts
Re: Show event from Code Behind
Jan 15, 2018 07:46 AM|X.Daisy|LINK
Hi wmec,
If you want to call javascript event from code behind, you can use Page.ClientScript.RegisterStartupScript method. For example:
Best Regards,
Daisy
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Contributor
6479 Points
5815 Posts
Re: Show event from Code Behind
Jan 15, 2018 08:13 AM|wmec|LINK
Hi,
Sorry to that I cannot show the message prompt properly, by the following
Peter
Contributor
6479 Points
5815 Posts
Re: Show event from Code Behind
Jan 16, 2018 05:02 AM|wmec|LINK
Sorry, how to correct this error
in the following
Peter
Contributor
2400 Points
730 Posts
Re: Show event from Code Behind
Jan 16, 2018 10:00 AM|X.Daisy|LINK
Hi wmec,
It seems there is something wrong with javascript event. I've checked this function, there is no such error in it. It might be other js code cause this error. You can click the error to check which code causes this error:
Besides, I can't find $.message function on my side, which Plug-ins are you using? Please post more details here.
Best Regards,
Daisy
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Contributor
6479 Points
5815 Posts
Re: Show event from Code Behind
Jan 16, 2018 01:02 PM|wmec|LINK
Hi Daisy,
If I clicked that error, it was pointing to such part below
Now, there is originally, no mentioned problem to the page. Problem only arises, after I've entered 'new' to 1st field, on the page.
Peter
Contributor
2400 Points
730 Posts
Re: Show event from Code Behind
Jan 17, 2018 09:49 AM|X.Daisy|LINK
Hi wmec,
Just from this code, I can't find which code causes the error. If it's convenient, please post the full demo here. Then I can understand the error better. Besides, '$.message' seems you are using some Plug-ins. Which jquery Plug-ins are you using?
Best Regards,
Daisy
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Contributor
6479 Points
5815 Posts
Re: Show event from Code Behind
Jan 17, 2018 10:06 AM|wmec|LINK
Hi Daisy,
The page now is referring to such libraries
Peter
Contributor
2400 Points
730 Posts
Re: Show event from Code Behind
Jan 18, 2018 10:02 AM|X.Daisy|LINK
Hi wmec,
First, we should to confirm which code causes this error——html or code behind. Please modify the js code to:
Second, if it can alert this sentence, it means the error is caused by js code. According to the reference you post here, I don't find $.message event. Where do you find this event? If it's convenient, please post your code in github or OneDrive, then I can test your code.
Best Regards,
Daisy
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Contributor
6479 Points
5815 Posts
Re: Show event from Code Behind
Jan 18, 2018 10:13 AM|wmec|LINK
Hi Daisy,
Thanks
Peter