tag:blogger.com,1999:blog-43625223543794401292024-03-13T05:55:49.090-07:00Something on .netVisual Studio 2012, WPF, WCF , Asp.net, C# and lot more development facts, tips and tools.Anonymoushttp://www.blogger.com/profile/17231857990711627186noreply@blogger.comBlogger159125tag:blogger.com,1999:blog-4362522354379440129.post-49283617870455692832014-01-03T22:59:00.000-08:002014-09-22T00:00:08.354-07:00How to add dependency property for custom control in wpfIntroduction Ever had problem that your custom controls dependency property is not getting updated when you changed it from the control? Probably most of the wpf developer already know it still sharing it because, I kind of lost few minutes in darkness when I found that my custom control is not updating the target dependency property. Enough talk show me the code Well here is the code!. Do you Anonymoushttp://www.blogger.com/profile/17231857990711627186noreply@blogger.com0tag:blogger.com,1999:blog-4362522354379440129.post-37108033783630535622013-12-06T17:44:00.000-08:002014-09-03T18:44:52.527-07:00Boolean dependency property and its default value.What’s up community, today I going to share a very basic trick that I learned while working on a wizard control. I would rather say that is a convention that i didn’t know previously. probably all the the WPF developer knows it, but just in case anyone needed it and wondering why its not working. Enough talk, lets get in to the business, so i was developing a custom control, precisely a reusableAnonymoushttp://www.blogger.com/profile/17231857990711627186noreply@blogger.com0tag:blogger.com,1999:blog-4362522354379440129.post-68688263864467294892013-11-26T21:11:00.001-08:002013-11-26T21:14:12.460-08:00Optimize the size of xap file an easy way.Your silverlight projects .xap file is getting bigger, this happens because of some assembly issues. And ofcourse there are some ways to optimize it. http://blogs.telerik.com/miromiroslavov/posts/10-09-15/5-ways-to-reduce-your-xap-size.aspx The above article shows few popular ways to reduce the size of xap file. I had a xap file what was almost 4 mb in size. so I decided to do some optimization.Anonymoushttp://www.blogger.com/profile/17231857990711627186noreply@blogger.com0tag:blogger.com,1999:blog-4362522354379440129.post-61800025566597426312013-10-19T05:13:00.001-07:002013-10-19T05:13:25.839-07:00Unlock password protected pdf files: pdfunlock.I have been doing some works with pdf files auto fill with itextsharp. one of the file that client gave me was secure and password protected. When ever I try to open this using Adobe Acrobat Pro. Its shows that it have to be opened by Adobe life cycle designer. Then I installed Adobe life cycle designer and tried opening it, unfortunately end up getting a password window and couldn’t Anonymoushttp://www.blogger.com/profile/17231857990711627186noreply@blogger.com0tag:blogger.com,1999:blog-4362522354379440129.post-46850071107398599092013-09-12T23:40:00.000-07:002013-09-15T23:41:06.076-07:00Visual studio 2012 Blue ThemeDear Community, I believe lot of the die hard fan of Microsoft development platform wondered why visual studio 2012 got rid of the blue theme, in my personal opinion i really liked it, then while working and viewing videos in channel 9 I discovered that we can have different different colors theme in visual studio, and that’s been there from the beginning. Man I am stupid, Anonymoushttp://www.blogger.com/profile/17231857990711627186noreply@blogger.com1tag:blogger.com,1999:blog-4362522354379440129.post-734938815999686252013-08-02T06:26:00.000-07:002013-09-17T06:27:19.897-07:00Team foundation server windows explorer extensionWe all used svn that’s for sure for personal use or perhaps company policy to use it doesn't matter, in source control race TFS is getting behind. At lease i felt it, but some recent improvements now taking this back bench product to front bench. For instance we can have git like behavior in tfs if we want, cool right?. But today I wish to share a different type of tool that can ease the tfs Anonymoushttp://www.blogger.com/profile/17231857990711627186noreply@blogger.com0tag:blogger.com,1999:blog-4362522354379440129.post-48365189496041164902013-07-04T08:37:00.000-07:002013-09-20T08:38:07.055-07:00Thousands of warning! in visual studio 2012? Why?So what happen is, I had my XML documentation file checkbox in build tab of project was checked. And I had few service references in my project. As you can guess all of the service ref has around more than 2000 methods, since this checkbox was checked all the public methods of service proxy class was giving a warning about summery of the function. It was frustrating to see that amount of Anonymoushttp://www.blogger.com/profile/17231857990711627186noreply@blogger.com0tag:blogger.com,1999:blog-4362522354379440129.post-79829840531605911082013-02-01T21:29:00.000-08:002013-10-20T03:10:12.940-07:00Set value of input type password or asp.net textbox where TextMode="password".Old school stuff, probably everyone knows it, still sharing because had a little bit trouble tackling this. Thought its very easy and it is, Why we need this? Here is why, you have a cookie where you save username and password for later use, and of course the cookies are encrypted. Now you retrieve the cookie found that a user login info is there and user checked the “Remember Me” stuff. You needAnonymoushttp://www.blogger.com/profile/17231857990711627186noreply@blogger.com0tag:blogger.com,1999:blog-4362522354379440129.post-69927130506471491102013-01-11T03:12:00.000-08:002013-07-25T04:13:00.831-07:00Recover the SA Password of SQL Server 2008Found a simple steps to recover SA password of SQL Server 2008. Its handy already tried and successful to recover the password of my sql server enterprise. What happen is, I found a computer from client side where there is sql server installed but don’t have sa password. And some how windows authentication doesn’t work. So did little R&D and then found out this guy already noted down the Anonymoushttp://www.blogger.com/profile/17231857990711627186noreply@blogger.com1tag:blogger.com,1999:blog-4362522354379440129.post-62552448670127198482013-01-03T18:41:00.000-08:002013-06-01T19:16:26.294-07:00WCF Service Optimization: An interesting technique to split your *.svc.cs file to have more manageable WCF serviceIntroduction WCF (Windows communication foundation) is the service layer foundation and the base of SOA in Microsoft dot net, what will happen when you have a huge WCF service consisting of 5000 operation contract. This is not unreal at all, if you design a service bus for a large intranet application, where 1000 employee using your application and doing day to day operation and your WCF service Anonymoushttp://www.blogger.com/profile/17231857990711627186noreply@blogger.com0tag:blogger.com,1999:blog-4362522354379440129.post-57214659762651727042012-12-06T17:51:00.000-08:002013-05-30T18:51:42.896-07:00Silverlight key event modifier keyJust wanted to share a quick tips, in WPF , and WINForms many times we needed to use the modifier key, and so does it needed in silverlight for taking special input and tab navigation, reverse tab navigation etc. well no more talk just a code snippet //modifier key in silverlightbool isShift = (Keyboard.Modifiers & ModifierKeys.Shift) == (ModifierKeys.Shift);Cheers! Anonymoushttp://www.blogger.com/profile/17231857990711627186noreply@blogger.com0tag:blogger.com,1999:blog-4362522354379440129.post-58345200783410105442012-11-09T09:46:00.000-08:002013-02-12T09:51:53.233-08:00String replace: case insensitive issueI one of my product i build a file renaming system. User has many options to rename file. Among those we have some string replace cases. At first we tried String.Replace Method (System) to replace texts. Below code snipped is given how things look, the code is simple and may seems different as it taken from different context. public string ApplyRule(FileRenamePreview preview){ if (Anonymoushttp://www.blogger.com/profile/17231857990711627186noreply@blogger.com0tag:blogger.com,1999:blog-4362522354379440129.post-47425388271999764132012-11-02T08:16:00.000-07:002013-02-09T07:17:07.359-08:00Create custom project file using c# object serialization. Its easy! only few step and works perfectly.Introduction Recently I did couple of projects where I needed to save objects in a file and then load back to the system for some processing. I thought of couple of solutions but at last stick to a simpler solution. In one of our project we did something like the bellow solutions. Step 1: Serialize the related class in separate files. Step 2: Use Open source zip technology to zip the files in a Anonymoushttp://www.blogger.com/profile/17231857990711627186noreply@blogger.com0tag:blogger.com,1999:blog-4362522354379440129.post-82820709014840096932012-10-26T03:31:00.000-07:002013-02-09T02:33:01.378-08:00A simple prize bond manager: old technology still works!Introduction The story begin with a simple problem, my father-in-law having some problem with his prize bonds. He has several prize bonds and each quarter government publish the prize bond lottery draw and he had to take each bond then go through the numbers. And it became hectic job for him. Few days ago, in a family dinner he told me about his problem, and asked me can I make a simple Anonymoushttp://www.blogger.com/profile/17231857990711627186noreply@blogger.com0tag:blogger.com,1999:blog-4362522354379440129.post-55546946442537723402012-10-19T09:37:00.000-07:002013-02-08T08:39:01.259-08:00SDF Database: Re Create objects if you missed setting primary key as identityI was developing a demo application, as database I chose to add “.sdf” local database file. I added some columns and set primary key. Some how I forgot to set the identity property of primary key. Went back to the same interface and try to modify the table schema and set identity property. End up with the following error. I thought setting some property for instance “Prevent Saving changesAnonymoushttp://www.blogger.com/profile/17231857990711627186noreply@blogger.com0tag:blogger.com,1999:blog-4362522354379440129.post-76237093685326253332012-10-12T05:11:00.000-07:002013-02-06T04:12:07.575-08:00Asp.net: Required Field Validator with DropDownListToday I want to share a very simple stuff That I learned while working, its kind of a silly learning, but hopefully will help someone someday. I want to make sure that a DropDownList is been selected before submitting a form. In asp.net we have a control for validation name “RequiredFieldValidator”, till now I have seen using this with only textbox. Below an example is given. <asp:TextBox Anonymoushttp://www.blogger.com/profile/17231857990711627186noreply@blogger.com0tag:blogger.com,1999:blog-4362522354379440129.post-14013436793595770432012-10-05T01:27:00.000-07:002013-02-03T00:28:02.429-08:00ProjectName.xml in project folder. What? Why?Looks like it’s a documentation related file. How I got this file? I converted a project from c# to vb.net. Conversion process worked pretty well. When I tried to check in the codes I keep seeing an un versioned file name [ProjectName].xml At first I thought it’s a dll xml but later found out that its not necessary at all to run my project, I deleted it and build it again. works file but the fileAnonymoushttp://www.blogger.com/profile/17231857990711627186noreply@blogger.com0tag:blogger.com,1999:blog-4362522354379440129.post-84269994931970529412012-09-27T00:33:00.000-07:002013-01-31T01:11:03.729-08:00DBNull check and some other “Tips” from VB.net to c# projectIn my previous blog post I have shared an easy tool to convert vb.net project. I have done a successful conversion of my projects data Layer from vb.net to c#, turned out it was awesome and less painful. So far every thing seems okay. Then I found a small anomaly. In project reference I can see that “Microsoft.VisualBasic” library is referenced. That doesn’t sound right. And I deleted the Anonymoushttp://www.blogger.com/profile/17231857990711627186noreply@blogger.com0tag:blogger.com,1999:blog-4362522354379440129.post-42555600271275213892012-09-20T00:17:00.000-07:002013-01-30T23:28:46.657-08:00An easy tool to convert vb.net project to c# project in a flash
I would like to share a very interesting and helpful tool that made my life easier and hope in some corner another developer will be beneficial with it.
Recently we had a solution from one of our customer where we had around 50 project mixed and matched with VB.net and c# projects. It was getting hectic for our developers to switch context and syntax.
I finally took liberty to find out an easyAnonymoushttp://www.blogger.com/profile/17231857990711627186noreply@blogger.com1tag:blogger.com,1999:blog-4362522354379440129.post-10390479696824687042012-09-13T11:44:00.001-07:002012-09-13T11:44:18.877-07:00Visual Studio 2012 Web publisher Wizard messed up!Hi guys want to share a tittle experience while testing some new feature of visual studio 2012, its one of the oldest feature, but found a bug today. Bellow I shared the screen shot. Ah… looks kind of smashed right?, How did it get there, few simple steps actually, Step1: Right Click on Web project and select “Publish” to lunch the publish wizard. Step 2: Click on Click on the drop down and willAnonymoushttp://www.blogger.com/profile/17231857990711627186noreply@blogger.com0tag:blogger.com,1999:blog-4362522354379440129.post-24545606960873925562012-09-10T23:58:00.001-07:002012-09-10T23:58:46.427-07:00WOW, We can now debug browser specific right from our VSHi Guys, I kind of got excited and sharing it with the community, if you have different browser installed in your machine you can now debug web application as browser specific. Bellow I have shared a screen shot with with browser selection menu while debugging a web application. Me like it!. Cheers! Anonymoushttp://www.blogger.com/profile/17231857990711627186noreply@blogger.com0tag:blogger.com,1999:blog-4362522354379440129.post-38514124260183159412012-09-10T03:01:00.001-07:002012-09-10T03:01:44.717-07:00How to resolve “_doPostBack is undefined” JavaScript error in IE10?Today I am going to share a small piece of information, most probably all of you know it, still sharing it as it caused significant amount of time killing on our development team. The problem started when we noticed no submit button is working in ie 10 in one of our development project. further more our client identified this bug as showstopper which raised the importance level of the issue to Anonymoushttp://www.blogger.com/profile/17231857990711627186noreply@blogger.com0tag:blogger.com,1999:blog-4362522354379440129.post-30338073446534134202012-09-06T11:45:00.000-07:002012-09-06T11:51:08.971-07:00How to resolve asp.net resend confirm with a wired technique?Introduction Today I want to share a small piece of information that I learned about Resend confirmation, window of browsers. Frist I thought that this is a default feature of all browser and can not be bypassed, but I was very wrong about it. Yes there is a real and technically sound way to over come this problem. the problem First lets discuss what actually happens. Lets say we have a button Anonymoushttp://www.blogger.com/profile/17231857990711627186noreply@blogger.com0tag:blogger.com,1999:blog-4362522354379440129.post-85622489094843451722012-08-31T09:51:00.000-07:002012-09-05T09:52:11.969-07:00Visual Studio 2012 got rid of all unnecessary things!I must say that I am not that much excited with the release of Visual Studio 2012, as I must learn everything from scratch again, in fact need to figure out what has changed since 2010. Once again I must confess that I liked vs 2010 more than vs 2012, let see where it goes as I would be exploring visual studio in coming weeks. Only required project are in the window now . No more lots of projectAnonymoushttp://www.blogger.com/profile/17231857990711627186noreply@blogger.com0tag:blogger.com,1999:blog-4362522354379440129.post-61465194451284405692012-08-24T09:58:00.000-07:002012-09-05T10:03:55.864-07:00Visual Studio 2012 Released on the web!Jason Zander’s blog Visual Studio 2012 and .NET Framework 4.5 released to the web! http://blogs.msdn.com/b/jasonz/archive/2012/08/15/visual-studio-2012-and-net-framework-4-5-released-to-the-web.aspx Time for new era…. Hope this time everything will turn out okay! Anonymoushttp://www.blogger.com/profile/17231857990711627186noreply@blogger.com0