TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Uwak Peter
1.6k
96
6.7k
How to call multiple c# methods on pageload using webmethod
Feb 14 2014 11:04 AM
i want to load some c# methods using ajax/json web method, please help check whether these code fractions are correct
function getMoreNewsItems(url) {
$.ajax({
type: "POST",
url: url,
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
alert(msg.d);
}
});
}
getMoreNewsItems('<%= ResolveUrl("headlinenews/loadFeedBellaNaija") %>')
getMoreNewsItems('<%= ResolveUrl("headlinenews/loadFeedChannelsTV") %>')
getMoreNewsItems('<%= ResolveUrl("headlinenews/loadFeedNaijaLoaded") %>')
[WebMethod]
private static void loadFeedBellaNaija()
{
}
[WebMethod]
private static void loadFeedChannelsTV()
{
}
[WebMethod]
private static void loadFeedNaijaLoaded()
{
}
i am using VS 2010 with the new routing functionality, Please is this code correct? if yes,
how can i call getMoreNewsItems on page load. Thanks in advance...
Reply
Answers (
0
)
How do i migrate the third party control from Vs2.0 to VS4.0
VB/C-Sharp/Crystal Reports programmer needed to complete pro