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.

Waiting for my Sparkle i

60068112_c07756d14e

Yesterday I just ordered my new car after that the one I had was totalled by a Honda Civic! (find a pic of my totalled car after the break).

The new car that I ordered is a Hyundai i20 Comfort in a bright Sparkle Blue colour. It has the smallest 1.2 ltr petrol engine, 6 airbags, ac, ABS with EBD, electric mirros, Radio CD Mp3 player with 6 speakers, Aux + USB port, Steering Audio Controls, Alarm, Trip Computer, and much more. I only have one problem…. I need to wait 71 days for it to arrive to Malta!!! :( But I think it will be worth it!! :)

Here are some reviews of the i20.

“It was unveiled recently at the Paris auto show amid much fanfare. The success of Hyundai’s large hatchback, the i30, has people all over the world looking forward to the i20. The 2525mm wheelbase coupled with front MacPherson strut and rear torsion beam suspension promises appreciable space on the inside.”

“Now, pop inside. The first impression is packed with ‘Wow!-factor’. The bold sweep of grown-up dashboard houses neat dials and an even neater centre stack, with easy to read graphics and the tightest of trim shut-lines. Obtaining a good seating position is easy thanks to a wide range of seat base and in/out-up/down steering column adjustment. What’s more, the seats are supremely comfortable, supportive and luxuriously trimmed (part-leather on Style; two-tone cloth on Comfort; single contrasting colour on Classic). The stalk controls and switchgear feel substantial and expensive. In fact, the overall impression of the interior is that it smacks of the highest VW-grade quality, minus the all-pervading blandness. “

>> More info and photos after the break >> Read the rest of this entry »