Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

manishchourasia2000

@manishchourasia2000
About
Posts
2
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Effective way of writing logs in web service in C#.net
    M manishchourasia2000

    Hi all, I want to know what is the effective to way to write logs in web service. I personally feel that we should log this to flat files instead of database using Trace Listener. Writing a snippet for logging is not a big deal, but calling that method classes is bit laborous. I am bit worry for the following queries. 1. Do I need to write log (calling function to write log) after each line in all the method. 2. If I enable logging level 1,2,3 etc (class level, method level & line level) how do I write a log. 3. What would be the content of log so that I can track the exact error / warning / info. Can anybody flow their knowledge / opennion ?

    s

    C# question csharp database debugging help

  • Client side pagination is not working in jqGrid
    M manishchourasia2000

    Hi Friends, I am new user for jQuery and jqGrid. I am trying to implement jqGrid with client side pagination. It is not working at my end. I am using .net 4.0 web service to get json respons. This is my web service code

    public string GetMessage(string FDate,string TDate,string Status)
    {
    databaseDataContext dc = new databaseDataContext();
    var v = (from v1 in dc.WBS_MESSAGEs
    where v1.TransStatus == Status && v1.CreatedDate >= fromDate
    && v1.CreatedDate <= toDate
    select new
    {
    v1.MessageID,
    v1.Task,
    v1.Remark,
    v1.CreatedDate,
    Object = (v1.ObjectID == "2" ? "Business Partner" :
    v1.ObjectID == "30" ? "Journals" : "Unknown")
    });
    if (v.Count() > 0)
    {

                System.Web.Script.Serialization.JavaScriptSerializer js = new System.Web.Script.Serialization.JavaScriptSerializer();
                return js.Serialize(v.ToList());
            }
            else
            {
                return null;
            }
    }
    

    This is my JavaScript / jqGrid code function callMessage(p0, p1,p2,ctrlName) { $.ajax({ type: "POST", url: "SAPBOne.asmx/GetMessage", data: '{ "FDate":"' + p0 + '" ,"TDate":"' + p1 + '","Status":"' + p2 + '"}', contentType: "application/json; charset=utf-8", dataType: "json", error: function (data) { alert(data.statusText); }, success: function (data) { var thegrid = jQuery(ctrlName)[0]; thegrid.addJSONData(JSON.parse(data.d)); // var jSonMessage = JSON.parse(data.d); // data.d is a JSON formatted string, to turn it into a JSON object // we use JSON.parse // now that myData is a JSON object we can access its properties like normal } }); }; $(window).load(function () { var qString = get_qu

    ASP.NET javascript json csharp business tools
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups