Return Array from Web Service using ScriptManager & Javascript

 This is used to call the Web Service using ASP.Net and Script Manager. Must be inserted in .aspx page. 

<asp:ScriptManager runat=”server” ID=”scriptManager”>
<Services>
<asp:ServiceReference path=”WebService/TestService.asmx” />
</Services>
</asp:ScriptManager>

This is the script to call the web service method and print the result on the form: Read the rest of this entry »

ASP.Net | Call Web Service Method

 

 

<asp:ScriptManager ID=”_scriptManager” runat=”server”>

<Services>  

<asp:ServiceReference Path=”~/Web_Service/SearchService.asmx” />  

</Services> 

</asp:ScriptManager>

 

 

<input id=”butnRead” type=”button” onclick=”SearchService.HelloWorld(AjaxSucceeded);” value=”Read” /><span id=”ResultId”></span>

Quickie | ‘Sys’ is undefined Solution

Today I was trying to call a web service from Java Script using the Sys.Net.WebServiceProxy.invoke function but the following error was loading:

‘Sys’ is undefined

The problem was because the ajax was not being referenced in the website. The solution I found was to create a new website in Visual Studio 2005 and use the AJAX Control Toolkit Web Site Template. When I ran the code again, no error was loaded and everything worked fine!

Calling Web Service From Javascript

 Hi my post explains how to call web service frm java script using AJAX.

If the web service class on the server includes a web method that does not return data, you can call the web service without having to handle a response. This is the simplest web method call that can be made from the client. For example, your application has the following web method:

Read the rest of this entry »

Return Array From WebService

Here’s the simplest way to accomplish what you want. Have your webservice return a simple string array:

[WebMethod]
public string[] getPersonIds(string Id)
{
//substitute code to actually populate the array with the dataset data
string[] personIds = {“ADS34579354″, “ASR34579354″, “TYU34579354″};
return personIds;
} Read the rest of this entry »

Will Windows 7 be unveiled on 7/7?

windows_7_logo

There are many websites reporting that Microsoft is going to release the RC version of Windows 7 to the public starting May 5. And I think that it is going to be released on that date!

The thing that nobody noticed (at least on the websites that I visited) is that May 5 is the same as 5/5 in all the World’s countries. Microsoft is using these types of dates for the public to remember them easily.

If the marketing department continues to use these types of dates, there is a great possiblity that Windows 7 will be unveiled on July 7th or 7/7! Imagine the following banner:

Windows 7 coming on 7/7

What a great marketing campaign would it be! Kudos for the marketing department at Microsoft!!

MS Access 2007 | #Deleted

This might come in handy if you are accessing SQL Server 2005 tables from Access:

Problem:

Using Microsoft Access (2003 and 2007) to link to tables on a SQL 2005 SP2 server is working most of the time. On some particular tables (MS Dynamics AX database) the results of the linked table for all rows and columns is #Deleted.

Solution:

Do these tables have a primary key of data type BIGINT? I was receiving the same #error on certain tables and it turns out Access can’t handle tables with a primary key column of BIGINT. These are some possible work arounds for that scenario:

1) Change the datatype of the primary key to INT.
OR
2) Create a view of the table using “CAST as INT” for the BIGINT field.

Click here for the original post.