totalbeginner
-
Posts
4 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by totalbeginner
-
-
In Asp.Net, we can not move ScriptManager out of the form tags...
-
Hello,very simple code block is below. Javascript functions that call web service methods are working when I called them between form tags. But they are not working at the beginning of the page.I specified lines that are not working below.Please help.<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><title></title><script type="text/javascript">function GetMyName() {WebService1.GetName(onNameSuccess, onNameFailure);}function onNameSuccess(result) {return result;}function onNameFailure(result) {alert("There is an error");}function GetMySurname() {WebService1.GetSurname(onSurnameSuccess, onSurnameFailure);}function onSurnameSuccess(result) {return result;}function onSurnameFailure(result) {alert("There is an error");}//JAVASCRIPT FUNCTIONS ARE NOT WORKING HERE//THESE TWO LINES ARE NOT WORKINGvar name = GetMyName();var surname = GetMySurname();</script></head><body><form id="form1" runat="server"><asp:ScriptManager ID="ScriptManager1" runat="server"><Services><asp:ServiceReference Path="WebService1.asmx" /></Services></asp:ScriptManager>//JAVASCRIPT FUNCTIONS ARE WORKING HERE</form></body></html>
-
Hello,I am using some api solutions in my javascript. But, those api solutions require api keys as parameters. In this case, users can see my api keys by displaying page source?What is a true approach and solution of course?Thanks
Anyone understand what is going on in this script?
in JavaScript
Posted