33 posts from: Madalina .NET 2.a
Event Handlers and Site Scoped Features
(Indexed 2010-02-07):
Scenario: a site scoped feature creates a custom list that needs a custom Event Handler attached.Problem: event handlers need to be deployed at Web scope (msdn)Solution: do not add the event handler in markup, add it in code.Don't declare the event handler in xml source files. The Event Handler will ...
How Software is like Life
(Indexed 2009-04-23):
I was watching the news the other night and one of the "great accomplishments" of the government that day was reaching the conclusion that they had to build a unified wage system in our country. They are starting debates on what the limits should be and on how to map between the different domains of activity. One of the questions I REALLY like and am REALLY looking forward to hearing the answer to is "who does a teacher/doctor map to?"Leaving aside such questions (and answers) I a...(truncated)...
10 reasons to work from home
(Indexed 2009-04-10):
I have found this very nice article on Zen Habits today and, although I currently have an office, I have had my days when, as a freelancer, I had to work from home.The 10 reasons listed in this article ( and my comments on each) are:1. Work anywhere. ( true... below I am just the photographer, but I prove my point - out the windows you can see the Gasteig Cultural Center in Munchen, Germany.)[Image]2. Complete control of the design of your workspace. ( exactly, girly flowers everywhere.)[Im...(truncated)...
Designing SharePoint MasterPages - Taking advantage of SharePoint capabilities
(Indexed 2009-03-16):
I was reading the last MSDN Magazine the other day and, among some interesting Silverlight articles, I found one very nice SharePoint article - very real and to the point.This article talks about SharePoint best practices - what to use, what not to forget and what to think about first when you implement something. In my opinion, the most important point of the article is that we always must take advantage of the Sharepoint capabilities and even try hard to do it.SharePoint is a very large a...(truncated)...
Enabling Silverlight 2 in SharePoint / The easiest sample
(Indexed 2009-03-09):
Silverlight promises to give SharePoint exactly what it doesn't have: glam :).SharePoint is a very powerful tool, but it comes a time in the life of such a powerful tool when it needs a little dosage of eye-candy design. Right now, that can be very easily achieved with Silverlight.As the two are siblings of the same technology (plain old ASP .NET :) ) they work very nicely together.But first of all, some SharePoint configuration element are needed.Configure SharePoint to run SilverlightThe ...(truncated)...
Hard vs. Soft
(Indexed 2008-11-13):
"And the winner is..."In the Hard vs. Soft "battle", I have never adopted one of the sides 100%. I went to "hardware school" and now I am a software developer. I like driving a stick, but I love the fact that in Lisbon they have digital transportation tickets :)But THIS time, game over. I pick hardware.I just bought a pair of headphones - well, received them as a gift, really, which turned out to be better than giving the money myself, in the circumstances... You know th...(truncated)...
How to get the current SharePoint user full name from InfoPath codebehind
(Indexed 2008-08-18):
Scenario: SharePoint Forms Library and an InfoPath FormQuestion: How to get the FULL NAME of the currently logged in user from code? No hardcoded web service URL.Solution: SPContext.Current.Web.CurrentUser.NameAll you need is to add the Windows SharePoint Services reference to your project and the following 'using/Imports' directive in the codebehind file:using Microsoft.SharePoint;
Programatically removing an HttpModule from SharePoint Web.config (2)
(Indexed 2008-08-13):
In one of my previous posts (that you can find here) I described how I managed to add a HttpModule tag to the web.config. The issue still remaining was the removal of that tag from the web.config, that I needed to do in the uninstallation process (in my case feature deactivating). At that time I used a remove tag. Although web.config file sees no problem in duplicate add tags, the same thing does NOT happen with the remove tags. If two or more remove tags of the same module are pr...(truncated)...
InfoPath Web Service Main Data Source Change
(Indexed 2008-03-17):
I recently started working with InfoPath. And, as I did in the beginning, I am still sticking to my first impression about it - it was designed to bring ASP .NET developers down :))One of the first issues I stumbled upon was the Main Data Source update. I couldn't find this anywhere, and also couldn't make it work. And I desperately needed it, as my form had nothing more and nothing less than 1000 fields :|Scenario: you have an InfoPath form that submits data to a Web Service. The input paramete...(truncated)...
Http Handlers applied Rss Feed
(Indexed 2007-10-04):
RSS Feeds are very popular these days.Recently, I found myself in the need of using a rss feed for a Joke of the day web part. The tricky side of the business was that I had to provide only one like in the rss feed the joke for the current day. Many options came into my mind, but the most elegant was by far the HttpHandler one.An HttpHandler is an independent unit that manages the server response for a given situation: for example, a specific file extension. In my case, what I need was for the ...(truncated)...
.NET for every-day-useful tasks :)
(Indexed 2007-09-24):
What do you know, it pays off to be a .NET developer :) You, of course, knew that you can develop applications for your pocket PC, but let's face it, did you ever really need to do that for your own personal pocket pc phone? Nop. There are so many freeware tools out there, that it would really be a waste of time to sit down and write them yourself. But this time... maybe it's worth it. This link describes a user scenario that we all find ourselved in all the time - the loud volume of your p...(truncated)...
Encrypted connection strings and Enterprise Library
(Indexed 2007-04-16):
A very important aspect of a web application is security. We use authentication, encrypted passwords, SSL and so on. But what we all have in out web.config file is a Connection String - with a password in it. There are two ways to minimise this security breach:use integrated security, so that the connection string looks something like: add key="DBConnStr" value="server=(local);Integrated Security=SSPI;database=MyDB"encrypt the connection stringThe first option s...(truncated)...
ASP .NET 2.0 Web Parts and SQL 2000
(Indexed 2006-11-29):
If you want to use web parts in a web application, you need a SQL database in the background, as the settings a user applies to a page containing webparts must be stored in a database for retreiving every time that user logs in the application. The default setting of the database connection is managed by the WebPartManager control and it implies the usage of SQL 2005 (Express). This control creates the connection to the database and a mdf file that stores the data inside the App_Data directory. ...(truncated)...
Open/Save Dialog Box - open file in new browser window
(Indexed 2006-10-12):
Here is the scenario: in an aspx page you have a link of a file (adobe, word, ...) and you want the user to download the file, with the options: Open/Save. The code for getting that is:Response.Clear();Response.AddHeader("Content-Disposition", "attachment; filename=" + [file].FileName);Response.ContentType = [file].ContentType;Response.OutputStream.Write([file].FileByte, 0, Convert.ToInt32([file].Dimension));Response.End();The code triggers the Open/Save dialog to appear (the 'attachment' option...(truncated)...
Advice for PMs 9 [ funny :) ]
(Indexed 2006-09-17):
No project has ever finished on time, within budget, to requirement.Yours won't be the first to.Activity is not achievement.Managing IT people is like herding cats.If you don't know how to do a task, start it, then ten people who know less than you will tell you how to do it.
Tips and Tricks - Web.config
(Indexed 2006-08-28):
The Web.config file of a web application can also be modified programatically. For example, if you want to modify the app's configuration data, you use:Configuration config = WebConfigurationManager.OpenWebConfiguration(Request.Applica...(truncated)... = "...";config.Save();But what you must remember is that, every time the Web.config is modified and a new version is saved, a new Application Domain will be created for the next Session of the application. So the next user of the web application w...(truncated)...
Advice for PMs 8 [ funny :) ]
(Indexed 2006-07-28):
Anything that can be changed will be changed until there is no time left to change anything.There is no such thing as scope creep, only scope gallop.A project gets a year late one day at a time.If you're 6 months late on a milestone due next week but really believe you can make it, you're a project manager.This is the best one ever!! :))
Expression Web Designer CTP Styling Issues
(Indexed 2006-07-17):
The Microsoft Expression Web designer has been launched. Together, of course, with some nice tutorials. The first thing I noticed about it is that it will be very easy for designers as well as developers to work on the same project. No more arguing about where a button should be placed, about styles and so on. Now, a designer has available here all the controls that exist in Design View in Visual Studio html and ASP .NET. And not only can a designer create htmls, but also aspx pages, master pag...(truncated)...
Advice for PMs 7 [ funny :) ]
(Indexed 2006-06-30):
The project would not have been started if the truth had been told about the cost and timescale.A two-year project will take three years, a three year project will never finish.When the weight of the project paperwork equals the weight of the project itself, the project can be considered complete.A badly planned project will take three times longer than expected - a well planned project only twice as long as expected.Warning: dates in a calendar are closer than they appear to be.
Advice for PMs 5 [ funny :) ]
(Indexed 2006-04-20):
If everything is going exactly to plan, something somewhere is going massively wrong.Everyone asks for a strong project manger - when they get them they don't want them.Overtime is a figment of the nave project manager's imagination.Quantitative project management is for predicting cost and schedule overruns well in advance.The sooner you begin coding the later you finish.
Advice for PMs 4 [ funny :) ]
(Indexed 2006-03-30):
Feather and down are padding, changes and contingencies will be real events.There are no good project managers - only lucky ones.The more you plan the luckier you get.A project is one small step for the project sponsor, one giant leap for the project manager.Good project management is not so much knowing what to do and when, as knowing what excuses to give and when.
Microsoft ASP .NET Dev Center
(Indexed 2006-03-14):
If you are completely new to development or want to learnsomething new on ASP .NET,this page provides the learning materials necessary for you to begin Web development with ASP.NET. Youll find the resources that will help you get your first Web application built quickly, and more.http://msdn.microsoft.com/asp.net/learning/learn/newtod...(truncated)...
Spirits Up!
(Indexed 2006-03-14):
IT specialists are also humans:) Yes, they are. Apart from the general image of skinny men with thick glasses, IT people are not only about coding and late hours at the office. Sometimes they are more driven and passionate about their work. I myself have never seen a colleague that, when he/she loved the project that was working on, didnt stay at the office overtime or worked even on weekends at home.But that does not mean that other people are not as passionate about what they do as IT people a...(truncated)...
ASP.NET
(Indexed 2006-03-13):
Atlas on the market!! :)Nikhil Kothari provides a brief overview of ASP.NET "Atlas", a framework to build rich Web apps on top of ASP.NET 2.0. The demo shows an app that uses the new server controls from the December CTP to incrementally enrich standard ASP.NET pages and an app that shows client-centric app development.http://msdn.microsoft.com/msdntv/episode.aspx?xm...(truncated)...
Microsoft vs ... ?
(Indexed 2006-02-27):
Caut de foarte multa vreme un editor de SVG. Am descarcat de pe net toate variantele posibile de programe speciale pentru SVG, sau care includeau un plugin pentru editoare SVG, cele mai noi editoare de XML&co si nenumarate altele... Unele din ele doar coloreaza partea de taguri SVG... Altele o si valideaza. Altele o si valideaza corect JProblema care ma intereseaza cel mai mult pe mine, insa, este faptul ca nici unul din tool-uri nu reactioneaza in absolut nici un fel la codul ECMA Script. Erori...(truncated)...
Advice for PMs 3 [ funny :) ]
(Indexed 2006-02-21):
I know that you believe that you understand what you think I said, but I am not sure you realise that what you heard is not what I meant.What is not on paper has not been said.A little risk management saves a lot of fan cleaning.If you can keep your head while all about you are losing theirs, you haven't understood the plan.If at first you don't succeed, remove all evidence you ever tried.
Advice for PMs 2 [ funny :) ]
(Indexed 2006-02-12):
A change freeze is like the abominable snowman: it is a myth and would anyway melt when heat is applied.A user will tell you anything you ask, but nothing more.Of several possible interpretations of a communication, the least convenient is the correct one.What you don't know hurts you.There's never enough time to do it right first time but there's always enough time to go back and do it again.The bitterness of poor quality lasts long after the sweetness of making a date is forgotten.
Viata in State
(Indexed 2006-02-10):
Am primit permisiunea sa public o serie de emailuri in care se discuta despre viata in SUA. Iata-le:Subject: [Fwd: [Fwd: America, the promised land...]]>>> Iata mail-ul pe care un cetatean roman, Raul, care s-a angajat in USA> la Google si este plecat acolo de mai bine de un an, impreuna cu> prietena lui Denisa, l-a trimis unei cunostintze din tara.> Nu e trist doar ce am citit, ci mai ales faptul ca incep sa recunosc> aceste "trend-uri" si in felul nostru de a trai, si in tot ceea ce ne> dorim ...(truncated)...
Advice for PMs [ funny :) ]
(Indexed 2006-01-27):
It takes one woman nine months to have a baby. It cannot be done in one month by impregnating nine women.Nothing is impossible for the person who doesn't have to do it.You can con a sucker into committing to an impossible deadline, but you cannot con him into meeting it.At the heart of every large project is a small project trying to get out.A problem shared is a buck passed.
Agile
(Indexed 2006-01-25):
http://agilemanifesto.org/principles.htmlHere is an extract from the Agile Manifesto:" Welcome changing requirements, even late in development. Agile processes harness change for the customer's competitive advantage. "I regarded the affirmation above as a personal one, as a belief that a project manager never forgets at the beginning of a new journey a new project.I looked at the statement from all the different angles that I could find but no matter how I did it, I always stumbled upon ONE sin...(truncated)...
MSMQ sample code
(Indexed 1970-01-01):
MSMQ lets Windows applications communicate via message queues. The messages it sends can contain any type of information, and because theyre sent asynchronously, the sender need not block waiting for a response. Using asynchronous messaging can be somewhat more complex for a developer than using RPC, but its nonetheless the right solution in many cases. [extract from Microsoft "Understanding Microsoft`s Integration Technologies" whitepaper][Image]If you need samples of MSMQ code, hee a...(truncated)...
Advice for PMs 6 [ funny :) ]
(Indexed 1970-01-01):
Metrics are learned men's excuses.For a project manager overruns are as certain as death and taxes.Some projects finish on time in spite of project management bestpractices.Fast - cheap - good - you can have any two.There is such a thing as an unrealistic timescale.
Integration Technologies sumarized
(Indexed 1970-01-01):
Technologies for direct app integration: ASP.NET Web Services (ASMX), .NET Remoting, Enterprise Services -> Windows Communication Foundation Technologies for integrating app through queues: Microsoft Message Queuing (MSMQ) and SQL Service Broker (SSB) -> ussable via WCF Technologies for integrating Windows applications with applications and data on IBM systems (Host Integration Server (HIS) )Technologies for integrating applications through a broker: BizTalk Server (BTS) 2006...(truncated)...
