Posts
Calling a Static Page Method using jQuery
- Get link
- X
- Other Apps
By
Milind Mahajan
-
If you do not plan to call a web method from multiple pages, don’t perform all the work of creating a separate web service. Instead, you can expose a static method from the same AJAX page calling the web method. 1..ASPX Page - DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> < html xmlns ="http://www.w3.org/1999/xhtml"> < head id ="Head1" runat ="server"> < title > Show Web Service Method title > < script type ="text/javascript" src ="../Scripts/jquery-1.4.1.js"> script > < script type ="text/javascript"> $(document).ready( function () { $( "#btnGet" ).click( function () { $.ajax({ ...
Calling Web Services from the Client using jQuery
- Get link
- X
- Other Apps
By
Milind Mahajan
-
1. .ASMX page - Web Service Code: [ WebService (Namespace = http://tempuri.org/ )] [ WebServiceBinding (ConformsTo = WsiProfiles .BasicProfile1_1)] [System.ComponentModel. ToolboxItem ( false )] // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. [System.Web.Script.Services. ScriptService ] public class QuotationService : System.Web.Services. WebService { [ WebMethod ] public string GetQuote() { List < string > quotes = new List < string >(); quotes.Add( "The fool who is silent passes for wise." ); quotes.Add( "The early bird catches the worm." );...
What Is jQuery?
- Get link
- X
- Other Apps
By
Milind Mahajan
-
jQuery is an extremely fast, lightweight JavaScript library that simplifies many aspects of client-side web development.You can use jQuery for almost any client-side functionality that you can think of—event handling,animations, drag-and-drop functionality, asynchronousweb service calls, and much more. Furthermore, jQuery supports a robust plug-in modelthat enables developers to write their own extensions to implement whatever functionality they want. There are already hundreds of powerful jQuery plug-ins available. jQuery is CSS3-compliant and works on almost all browsers—Internet Explorer 6.0+, FireFox 2+, Safari 3.0+, Opera 9.0, and Google Chrome. This means that you can write one set of code and not have to worry about handling the specifics of different browser implementations; each line of jQuery works exactly the same on all browsers.The jQuery library is used on an incredible number of popular websites. Google, Dell, Bank of America, Digg.com, Netflix, WordPress, and even th...
Fiserv Interview Questions.
- Get link
- X
- Other Apps
By
Milind Mahajan
-
1) For edit functionality in DataGird specify Column name 2) Why you may not want to use Paging funtionality in data grid 3) Function of SqlCommanBuilder in code. 4) Find the error in code . Its related to database connection. I think that connection sould be closed in finally instead of try. 5) What is the relation between src='' & Inherits='' in <@ Page > directive 6) What is derective in the user control page & its extention of file 7) Question related to 404 error code Error page & Default error page. 8) Its related to Autherization in web config related to folders 9) Related to definition 10) not remembred with question but answer is cookiless = true related question 11) Page is posting the 2 times why is it so 1) user control load 2) some control call load 12) describe !Page.PostBack Select Options 13) Question related to Session mode = SQLServer 14) Some question related to validation control - compare validator 15) Some question ...
Send Email in asp.net
- Get link
- X
- Other Apps
By
Milind Mahajan
-
add System.Net.Mail; namespace ///********************************************************************************* /// ///To Send the simple Email /// /// From Email Id /// To Email Id /// Email Subject /// Email Body /// Returns bool with Indication ///********************************************************************************* public bool SendEMail(string FromAddressId, string ToAddressId, string Subject, string MessageBody) { SmtpClient objSmtpClient = new SmtpClient(); MailMessage message = new MailMessage(); ...