Community developer blogs
ASP.NET Cafe
- Author
- Dmitriy Salko
- Last updated
- 03 Jul 2009 at 05:43
- Url
- http://aspnetcafe.com
- Feed
- http://feeds.feedburner.com/aspnetcafe/
Recent Posts
-
Enter button and several inputs
Posted: 03 Jul 2009 at 05:43 by dmitriy
In ASP.NET you have sometimes a problem. When you have several inputs (textboxes) and several buttons. You want user to submit it by hitting enter. For example one login box, one search box. You want to submit login box when user hits enter in password field, and search button when user hits enter in search field. The solution is easy! Just put controls inside the asp:panel with attribute DefaultButton="ButtonFind" ( where ButtonFind is ID of desired default button ). That's all!
-
BlogEngine.NET Theme - Fruity
Posted: 04 Mar 2009 at 02:42 by dmitriy
Hello everybody!I've recently finished a new theme for BlogEngine.NET. You can download zip here: fruity.zip (51,19 kb)Just unpack it to your themes folder. It works with 1.4.5.0.That's all for today.
-
BlogEngine.NET Theme - Fruity
Posted: 03 Mar 2009 at 06:42 by dmitriy
Hello everybody! I've recently finished a new theme for BlogEngine.NET. You can download zip here: fruity.zip (51,19 kb) Just unpack it to your themes folder. It works with 1.4.5.0. That's all for today. If you like this one I'll make more.
-
H.264 vs VP 6 in hd online video
Posted: 03 Mar 2009 at 06:00 by dmitriy
What's better for your online video? VP 6 is faster ( works on most pcs ) and requires only flash player 8. The BAD side of VP6 - it's hard ( or even impossible ) to find free (opensource) encoding solution for it. You need to ask on2.com guys to give you their framework or for personal use you can buy something like "Flix Standard" for $39. That's really nothing even for poor blogger. H.264 is slower.
-
H.264 vs VP 6 in hd online video
Posted: 02 Mar 2009 at 10:00 by dmitriy
What's better for your online video? VP 6 is faster ( works on most pcs ) and requires only flash player 8. The BAD side of VP6 - it's hard ( or even impossible ) to find free (opensource) encoding solution for it. You need to ask on2.com guys to give you their framework or for personal use you can buy something like "Flix Standard" for $39. That's really nothing even for poor blogger. H.264 is slower. Only last fast pcs can run it without delays. For example, I've old
-
MailEnable - How to add new mailbox from code
Posted: 10 Feb 2009 at 23:49 by dmitriy
Mailenable is quite good Mail Server for windows. It has a free version ( and that's version works good if you don't need WebMail ). Here is some code to add mailbox to PostOffice. using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts;
-
MailEnable - How to add new mailbox from code
Posted: 10 Feb 2009 at 03:49 by dmitriy
Mailenable is quite good Mail Server for windows. It has a free version ( and that's version works good if you don't need WebMail ).Here is some code to add mailbox to PostOffice.using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts; /// <summary>/// Summary description for MailEnableConnector/// </summary>
-
How to remove IE 6 background flicker
Posted: 26 Jan 2009 at 23:14 by dmitriy
I know one thing that makes cranky all web developers who still support IE 6. Usually we can hope that soon IE 6 became history ( maybe Windows 7 will be so good... and everybody use it and new IE ). But yet many designers still support IE 6. Main trouble that IE does not cache CSS background images. And that's why you see "flicker" effect on reload of you well formed css sites. To get rid of this try to add this script somewhere in the HEAD section...
-
How to remove IE 6 background flicker
Posted: 26 Jan 2009 at 08:14 by dmitriy
I know one thing that makes cranky all web developers who still support IE 6. Usually we can hope that soon IE 6 became history ( maybe Windows 7 will be so good... and everybody use it and new IE ). But yet many designers still support IE 6. Main trouble that IE does not cache CSS background images. And that's why you see "flicker" effect on reload of you well formed css sites. To get rid of this try to add this script somewhere in the HEAD section... try { document.execCommand(
-
How to remove IE 6 background flicker
Posted: 26 Jan 2009 at 03:14 by dmitriy
I know one thing that makes cranky all web developers who still support IE 6. Usually we can hope that soon IE 6 became history ( maybe Windows 7 will be so good... and everybody use it and new IE ). But yet many designers still support IE 6. Main trouble that IE does not cache CSS background images. And that's why you see "flicker" effect on reload of you well formed css sites. To get rid of this try to add this script somewhere in the HEAD section... JavaScript-Code: try {d
-
MS SQL. How to get only date from datetime field
Posted: 05 Nov 2008 at 05:25 by dmitriy
And another quick tip for SQL. Sometimes we need to remove TIME part from DATETIME. For example need to group by date or so. You know your needs better. Here is my solution. DATEADD(day, DATEDIFF(day, '20000101', RecDate), '20000101') I saw some freaky CASTs and I don't like these. This returns DateTime type, not string.
-
MS SQL. How to get only date from datetime field
Posted: 04 Nov 2008 at 14:25 by webmaster.nospam@nospam.aspnetcafe.com (dmitriy)
And another quick tip for SQL. Sometimes we need to remove TIME part from DATETIME. For example need to group by date or so. You know your needs better. Here is my solution. DATEADD(day, DATEDIFF(day, '20000101', RecDate), '20000101') I saw some freaky CASTs and I don't like thes
-
MS SQL. How to get only date from datetime field
Posted: 04 Nov 2008 at 09:25 by dmitriy
And another quick tip for SQL. Sometimes we need to remove TIME part from DATETIME. For example need to group by date or so. You know your needs better. Here is my solution. DATEADD(day, DATEDIFF(day, '20000101', RecDate), '20000101') I saw some freaky CASTs and I don't like these. This returns DateTime type, not string.
-
MS SQL. Get rows in random order.
Posted: 16 Sep 2008 at 02:42 by dmitriy
During web development often task is to get some stuff in random order. For example, to display random articles, products, testimonials and so on.First thing you want to do is to write something like this:SELECT TOP 10 * FROM Articles ORDER BY RAND() And previous query DOES NOT work. It shows records in regular order. Why? Because RAND() calculated once, not in each row.The following way works fine:SELECT TOP 10 * FROM Articles ORDER BY NEWID() That's all. Nice and easy.
-
MS SQL. Get rows in random order.
Posted: 15 Sep 2008 at 17:42 by webmaster.nospam@nospam.aspnetcafe.com (dmitriy)
During web development often task is to get some stuff in random order. For example, to display random articles, products, testimonials and so on.First thing you want to do is to write something like this:SELECT TOP 10 * FROM Articles ORDER BY RAND() And previous query DOES NOT work.
-
MS SQL. Get rows in random order.
Posted: 15 Sep 2008 at 17:42 by webmaster.nospam@nospam.aspnetcafe.com (dmitriy)
During web development often task is to get some stuff in random order. For example, to display random articles, products, testimonials and so on.First thing you want to do is to write something like this:SELECT TOP 10 * FROM Articles ORDER BY RAND() And previous query DOES NOT work.
-
MS SQL. Get rows in random order.
Posted: 15 Sep 2008 at 17:42 by webmaster.nospam@nospam.aspnetcafe.com (dmitriy)
During web development often task is to get some stuff in random order. For example, to display random articles, products, testimonials and so on.First thing you want to do is to write something like this:SELECT TOP 10 * FROM Articles ORDER BY RAND() And previous query DOES NOT work.
-
MS SQL. Get rows in random order.
Posted: 15 Sep 2008 at 06:42 by dmitriy
During web development often task is to get some stuff in random order. For example, to display random articles, products, testimonials and so on.First thing you want to do is to write something like this:SELECT TOP 10 * FROM Articles ORDER BY RAND() And previous query DOES NOT work. It shows records in regular order. Why? Because RAND() calculated once, not in each row.The following way works fine:SELECT TOP 10 * FROM Articles ORDER BY NEWID() That's all. Nice and easy. Not recommended for
-
Google Chrome fails ACID 3 test and pass ACID 2
Posted: 03 Sep 2008 at 06:03 by dmitriy
We used this test to try IE 8 sometime ago... it failed. / But Chrome failed it too. But acid 2 passed without troubles:
-
Google Chrome Beta Available For Download
Posted: 03 Sep 2008 at 05:27 by dmitriy
Woo Hoo! Just get it! Fisrt impression - very fast... Tried my site that was developed and tested in FF, IE 7 and Safari - no visual problems, anything. What's good - very large display/client area... no header. And looks very clean. I don't see that usual Safari's text anti-aliasing in XP... and this is good. And Gmail works very-very fast, I think JS engine is really optimized.
Related blogs
-
عفیف احمد جنجوعہ
Post related to my personal experience with the various frameworks, development tools and technologies, programming languages and libraries at hand. Development tools inlcude visual studio/ netbeans/ eclipse. Frameworks include .net/ Java. Languages c/ cpp/ php/ java/ c#/ asp.net. And various libraries and software factories
-
espertini.com | .net playground
personal / technical weblog of Davide Espertini, a web developer located in Milano, Italy. He talk about ASP.Net, JavaScript, BlogEngine, DotNetNuke, Design, JQuery and much more about the IT world.
-
Artes y malas artes !!
Artes y malas artes !! - No sólo de software vive el hombre?
Related discussion
-
sharepoint calendar web part with events from sql table
by tukubapi2207 (1 replies)
-
Using FedEx Web Service to Calculcate Shipping Cost
by bhora123 (4 replies)
-
Very Urgent regarding deleting the images from a folder
by rameshbandi (2 replies)
-
Dynamically Generating PDFs in .NET
by nike12 (10 replies)
-
New style of Javascript used in extenders.
by mittalpa (0 replies)
Related podcasts
-
StackOverflow uses ASP.NET MVC - Jeff Atwood and his technical team
Scott chats with Jeff Atwood of CodingHorror.com and most recently, StackOverflow.com. Jeff and Joel Spolsky and their technical team have created a new class of application using ASP.NET MVC. What works, what doesn't, and how did it all go down?