I was going to install Visual Studio Community 2013, but it asked me to uninstall Visual Studio 2013. I started checking some demos about Visual Studio Community 2013 (you can check the demo from Channel 9) and noticed that you can install the same tools as in Visual Studio Community 2013 to Visual Studio 2013. So let’s get started.
Did you know that you can set multiple border styles for the sides of divs and images. By using the following css script, you can define any multiple borders you want:
By using this with another css trick, the border radius, you can set some nice effects when hovering images. The radius css is below (all three must be include to work in all browsers):
Do you have some more simple tricks? Let me know in the comments 😉 Happy CSSing!
So I was listening to Windows Weekly and heard Mary Joe Foley, from Cnet, mention the word Brogrammer. Hmmm never heard that before!
What is a Brogrammer?
A simple search sent me to the UrbanDictionary.com and according to this site, a Brogrammer is:
A programmer who breaks the usual expectations of quiet nerdiness and opts instead for the usual trappings of a frat-boy: popped collars, bad beer, and calling everybody “bro”. Despised by everyone, especially other programmers.
I continued my search, and guess what I found.. Continue reading
During this weekend, I started having a problem when building a solution in Visual Studio. It would load the following error:
Unable to write to output file Solution_Name.pdb
This Visual Studio solution has 8 projects, and a lot of files and folders. I tried several solutions that I found on the net, which worked for others, but none worked for my case including:
- Delete the .pdb file from the solution – Didn’t Work
- Delete the Debug folder – Still Didn’t work
- Delete the whole obj Folder – Nothing Continue reading
This week, I needed to bind a gridview to and SQLDataSource. The only problem is that I need to include extra rows. How to do this? First I removed the binding code to bind the grid directly from HTML (in gridview remove the DataSourceID attribute).
Then I wanted to get the data from the SQL Data source and convert to a data table to insert and update the table as needed. Next is the code to get the data… Continue reading
When creating a CMS sometimes you need to allow certain tags pass through the ASP.Net Validation. To allow tags be posted, in v2.0, you had to include the following tag in the page directive:
But in .Net 4.0, this is not enough. You also need to include the next tag (httpRuntime) in the web.config file under <system.web>:
<compilation debug="true" targetFramework="4.0" />
<httpRuntime requestValidationMode="2.0" />
There is also other information on Error validation in .Net 4.0 here
Found a good blog post on how you can emulate the use of ASP.Net Master Pages in Java,to create the desired layout of the site. Have a look here
To get the current date in Sql Server queries and stored procedures, you use the GetDate() method. But what about to add a day or two to the current date, or add a month or years? To do it, you use the following query:
Add One Day
SELECT DateAdd(dd, 1, GetDate())
Add One Month Continue reading