Click here to Skip to main content
15,881,516 members

sanwar_mal_jat - Professional Profile



Summary

    Blog RSS
826
Authority
40
Debator
48
Editor
16
Enquirer
262
Organiser
920
Participant
0
Author
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Reputation

Weekly Data. Recent events may not appear immediately. For information on Reputation please see the FAQ.

Privileges

Members need to achieve at least one of the given member levels in the given reputation categories in order to perform a given action. For example, to store personal files in your account area you will need to achieve Platinum level in either the Author or Authority category. The "If Owner" column means that owners of an item automatically have the privilege. The member types column lists member types who gain the privilege regardless of their reputation level.

ActionAuthorAuthorityDebatorEditorEnquirerOrganiserParticipantIf OwnerMember Types
Have no restrictions on voting frequencysilversilversilversilver
Bypass spam checks when posting contentsilversilversilversilversilversilvergoldSubEditor, Mentor, Protector, Editor
Store personal files in your account areaplatinumplatinumSubEditor, Editor
Have live hyperlinks in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Have the ability to include a biography in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Edit a Question in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Edit an Answer in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Delete a Question in Q&AYesSubEditor, Protector, Editor
Delete an Answer in Q&AYesSubEditor, Protector, Editor
Report an ArticlesilversilversilversilverSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending ArticlegoldgoldgoldgoldSubEditor, Mentor, Protector, Editor
Edit other members' articlesSubEditor, Protector, Editor
Create an article without requiring moderationplatinumSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending QuestionProtector
Approve/Disapprove a pending AnswerProtector
Report a forum messagesilversilverbronzeProtector, Editor
Approve/Disapprove a pending Forum MessageProtector
Have the ability to send direct emails to members in the forumsProtector
Create a new tagsilversilversilversilver
Modify a tagsilversilversilversilver

Actions with a green tick can be performed by this member.


 
GeneralGet Duplicare row And Delete Duplicate row in a table Pin
sanwar_mal_jat31-May-13 4:13
sanwar_mal_jat31-May-13 4:13 
Generallocal or Global temp table in SQL Server Pin
sanwar_mal_jat29-May-13 1:49
sanwar_mal_jat29-May-13 1:49 
GeneralUse JSON or AJEX Method or Page.Mwthods Use Pin
sanwar_mal_jat27-May-13 22:56
sanwar_mal_jat27-May-13 22:56 
XML
<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <script runat="server">
     public class Country
     {
         public int Value { get; set; }
         public string Name { get; set; }

     }
 // These all methods  You can use in .cs file If u want
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    //Mark your method as static and give it the WebMethod attribute
    //The method has to be declared static. It must also be marked with the WebMethod attribute. You'll probably find that you need to include System.Web.Services
    //using System.Web.Services;
    [System.Web.Services.WebMethod]
    public static string ProcessIT(string name, string address)
    {
        //Here We can write or use Data base Working
        string result = "Welcome Mr. " + name + ". Your address is '" + address + "'.";
        return result;
    }

    [System.Web.Services.WebMethod] // This method May be in Web SERVICE
    public static string DisplayData(string name)
    {//Here We can write or use Data base Working
        if (name == "vikram")
            return DateTime.Now.ToString();
        else
            return "Send Name Not Vikram";
    }



    [System.Web.Services.WebMethod] // This method May be in Web SERVICE
    public static System.Collections.Generic.List<Country> GetCountry()
    {
        System.Collections.Generic.List<Country> listObj = new System.Collections.Generic.List<Country>();
        for (int i = 0; i <= 10; i++)
        {
            Country obj = new Country();
            obj.Value = i;
            obj.Name = "Copuntry " + i;
            listObj.Add(obj);
        }
        return listObj;
    }
</script>

<html>
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
 ----------------------------- This is Page Method------------------------------------
        <%-- Enable Page Methods on your ScriptManager  Set the EnablePageMethods attribute to true --%>
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
        </asp:ScriptManager>

<script type="text/javascript">
    function HandleIT() {
        var name = "TestName";
        var address = "TestAdderess";
        PageMethods.ProcessIT(name, address, onSucess, onError);
        function onSucess(result) {
            alert(result);
        }
        function onError(result) {
            alert('Something wrong.');
        }
    }
    </script>
     <br />
        <asp:Button ID="PageMethod" runat="server" Text="PageMethod" OnClientClick="HandleIT(); return false;" />

        <br />


 ----------------------------- This is Ajex Method------------------------------------

 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" ></script>

  <script type="text/javascript">
      function ShowCurrentTime() {
          var name = "vikram";
          $.ajax({
              type: "POST",
              contentType: "application/json; charset=utf-8",
              url: "Default.aspx/DisplayData",
              data: '{name:"' + name + '"}',
              dataType: "json",
              success: function (data) {
                  alert(data.d); //where data.d is used for deserialzation in javascript
              },
              error: function (result) {
                  alert("Error");
              }
          });
      }
</script>
 <br />
   <asp:Button ID="USEAjex" runat="server" Text="USE Ajex" OnClientClick="ShowCurrentTime(); return false;" />
    <br />
  ----------------------------- This is Ajex Method For Fill Droap down-----------------------------------

  <script type="text/javascript">
      function FillCity() {
          $.ajax({
              type: "POST",
              contentType: "application/json; charset=utf-8",
              url: "Default.aspx/GetCountry",
              data: "{}",
              dataType: "json",
              success: function (data) {
                  FillCities(data.d);
              },
              error: function (result) {
                  alert("Error");
              }
          });
      }


      function FillCities(data) {
          $("#ddlCity").empty();
          $("#ddlCity").append('<option value="0">' + "--Select City--" + '</option>');

          for (var i = 0; i < data.length; i++) {
              $("#ddlCity").append('<option value="' + data[i].Value + '">' + data[i].Name + '</option>');
          }
      }
</script>

  <br />
     <asp:Button ID="Button1" runat="server" Text="FillCity" OnClientClick="FillCity(); return false;" />

      <asp:DropDownList ID="ddlCity" runat="server">
            </asp:DropDownList>
    </div>
    </form>
</body>
</html>

Thanks & Regards

Sanwar

GeneralUse a sessin class In VB.NET Pin
sanwar_mal_jat27-May-13 19:59
sanwar_mal_jat27-May-13 19:59 
GeneralGet Image Dimentions Useing an Another server Uploaded Images In VB.NET Pin
sanwar_mal_jat27-May-13 19:53
sanwar_mal_jat27-May-13 19:53 
GeneralSliding Effect Pin
sanwar_mal_jat22-May-13 21:40
sanwar_mal_jat22-May-13 21:40 
GeneralDate Picker With Today date Button Pin
sanwar_mal_jat13-May-13 3:47
sanwar_mal_jat13-May-13 3:47 
GeneralCTAS – Create Table As SELECT and Use SELECT INTO for copy data or Schema (Only fiel and data type) one table to another table Pin
sanwar_mal_jat2-May-13 0:48
sanwar_mal_jat2-May-13 0:48 
GeneralSystem define classes Name and Type of Class Pin
sanwar_mal_jat25-Apr-13 22:41
sanwar_mal_jat25-Apr-13 22:41 
GeneralCall a request url and get string When returan a Xml File And Read Node Pin
sanwar_mal_jat12-Feb-13 23:06
sanwar_mal_jat12-Feb-13 23:06 
GeneralCall a request url and get string When returan a Xml or string Pin
sanwar_mal_jat12-Feb-13 22:57
sanwar_mal_jat12-Feb-13 22:57 
GeneralXML regarding Pin
sanwar_mal_jat12-Feb-13 22:50
sanwar_mal_jat12-Feb-13 22:50 
GeneralSearch a string in a SQL Server database all tables. Pin
sanwar_mal_jat4-Feb-13 19:29
sanwar_mal_jat4-Feb-13 19:29 
GeneralOn the fly image change as size Pin
sanwar_mal_jat17-Jan-13 3:13
sanwar_mal_jat17-Jan-13 3:13 
GeneralCheck Validation before Onclientclick in ASP.Net button Pin
sanwar_mal_jat8-Jan-13 23:12
sanwar_mal_jat8-Jan-13 23:12 
GeneralDrag and droap a table and change ranking . Pin
sanwar_mal_jat2-Jan-13 22:57
sanwar_mal_jat2-Jan-13 22:57 
GeneralEdit droap down problem grid and other time Pin
sanwar_mal_jat1-Jan-13 19:35
sanwar_mal_jat1-Jan-13 19:35 
GeneralCreate pivot table and set same max value in some colums. Pin
sanwar_mal_jat3-Dec-12 2:57
sanwar_mal_jat3-Dec-12 2:57 
GeneralCoalesce Function in SQL server Pin
sanwar_mal_jat25-Oct-12 22:08
sanwar_mal_jat25-Oct-12 22:08 
GeneralCheck some data exist or not in database Using J-query and validate a page Using J-query Pin
sanwar_mal_jat15-Oct-12 22:59
sanwar_mal_jat15-Oct-12 22:59 
GeneralUse regex method for Url rewriting metch send salash seperated value Pin
sanwar_mal_jat12-Oct-12 1:21
sanwar_mal_jat12-Oct-12 1:21 
GeneralCSS and page path problem solve in url rewriting. Pin
sanwar_mal_jat11-Oct-12 3:59
sanwar_mal_jat11-Oct-12 3:59 
GeneralApp setting key import in page Pin
sanwar_mal_jat11-Oct-12 0:46
sanwar_mal_jat11-Oct-12 0:46 
GeneralChange dynamic css class in html menues Pin
sanwar_mal_jat3-Oct-12 20:55
sanwar_mal_jat3-Oct-12 20:55 
GeneralResolve path problem in Master page ehn use multi folder in a web application. Pin
sanwar_mal_jat3-Oct-12 19:13
sanwar_mal_jat3-Oct-12 19:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.