Consuming asp.net webservice with jquery Apr 30, 2009 hi guys, Well I like to share one more experiment with you that is how to call a webservice from your javascript(jquery). For that again you need to have an asp.net ajax enable website. Lets first examine what are the requiments for webservice if we need to call it from javascript well after having asp.net ajax enable website first is you should mark your serverice as [ScriptService] what it does it will make all the methods/functions of your webservice to be accessable from javascript code and it also serialise your webservice response using JASON . ...
Custom Event for Classes Apr 30, 2009 I was reading how to write events for your custom classes so after reading a little I thought give it a shot and created this sample code. Below code is using Product class with event and delegate for event handling and other class named Test is using this class and manipulate product class data. If you change the Name of the product event will fire. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 using System; using System. ...
Design Patterns -- Iterator Apr 30, 2009 Hi Guys, I am reading more on design patterns from this article after little theory session here is working code. Key point was all of the collection classes in the System.Collections namespace, as well as arrays, implement IEnumerable and can therefore be iterated over. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 using System; using System. ...
Finally I have my hands on linq Apr 30, 2009 hi folks After developing few asp.net 2.0 websites as our hosting upgraded to asp.net 3.5 I am finally making a dynamic website in asp.net 3.5 using linq to sql and I am trying hard to follow 3 tier model. I will keep posting about this learning adventure of mine.
Git tracking and deleting remote branches Apr 30, 2009 List the remote branches that exist for a repository you have cloned: git remote show origin Create a local branch that tracks one of the remote branches and then use that local branch: git checkout --track -b name_of_local_branch origin/name_of_remote_branch If you have not done a pull since someone else created the remote branch, you may first need to do: git fetch Remove branch from repo. git push {repo} :heads/{branch} ...
Highlight your code with wordpress Apr 30, 2009 Hi guys, Today I have installed a new wordpress plugin called “Code Snippet” and it support code highlight for many languages try this out you would love it. Download it now.
JavaScript, 5 ways to call a function Apr 30, 2009 Hello I have came across to this wonderful blog post that show in details how to call javascript functions using different ways its a must read article even if you are not good in javascript please read article at http://devlicio.us/blogs/sergio_pereira/archive/2009/02/09/javascript-5-ways-to-call-a-function.aspx
Observer pattern with .net Apr 30, 2009 Hi folks, Well I am investigating design patterns by reading an article so after reading a bit I thought it would be nice if I write some code and test it. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 using System; using System. ...
Finally my Ms is completed Apr 30, 2008 Ummm whats new in my life? Well finally my Ms in telecom is completed all courses are clear and i am fleeing like a free bird. Tension free consitration on my job no more travling in triangle from home to office and then from there to university. Hopefully now i will get some time to write for my blog. If anyone still reading please keep reading
Read SMTP settings from asp.net web.config Apr 30, 2008 hi guyz Sorry for writing after such a long time i guess i am very busy now a days so for a project i needed to read my smtp email settings defined in my web.config file so after some efforts i am able to read these settings direct from my system .net section. 1 2 3 4 5 6 7 System.Configuration.Configuration config = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(HttpContext.Current.Request.ApplicationPath); System.Net.Configuration.MailSettingsSectionGroup settings = (System.Net.Configuration.MailSettingsSectionGroup) config.GetSectionGroup("system.net/mailSettings"); Response. ...