Hi All,
The ASP.NET 3.5 Extensions Preview is a new release that provides new functionality being added to ASP.NET 3.5 and ADO.NET in 2008. This release delivers a set of new features that target:
Enabling High Productivity Data Scenarios - including MVC, Entity Framework, ADO.NET Data Services and dynamic data
Supporting Test Driven Development - including a powerful and extensible MVC framework
Creating the best server for Rich Clients - including Ajax history support and Silverlight controls for ASP.NET.
http://www.microsoft.com/downloads/details.aspx?FamilyId=A9C6BC06-B894-4B11-8300-35BD2F8FC908&displaylang=en
Regards
Pankaj
Hi All,
Now Silverlight tools available for Visual studio 2008 Bets2 please download it from below link
http://www.microsoft.com/downloads/details.aspx?FamilyId=B52AEB39-1F10-49A6-85FC-A0A19CAC99AF&displaylang=en
Regards
Pankaj
HI All,
Bill Gates gave a speech at a High School about 11 things they did not and will not learn in school. He talks about how feel-good, politically correct teachings created a generation of kids with no concept of reality and how this concept set them up for failure in the real world.
Rule 1 : Life is not fair - get used to it!
Rule 2: The world won't care about your self-esteem. The world will expect you to accomplish something BEFORE you feel good about yourself.
Rule 3: You will NOT make $60,000 a year right out of high school. You won't be a vice-president with a car phone until you earn both.
Rule 4: If you think your teacher is tough, wait till you get a boss.
Rule 5: Flipping burgers is not beneath your dignity. Your Grandparents had a different word for burger flipping: they called it opportunity.
Rule 6: If you mess up, it's not your parents' fault, so don't whine about your mistakes, learn from them.
Rule 7: Before you were born, your parents weren't as boring as they are now. They got that way from paying your bills, cleaning your clothes and listening to you talk about how cool you thought you were. So before you save the rain forest from the parasites of your parent's generation, try delousing the closet in your own room.
Rule 8: Your school may have done away with winners and losers, but life HAS NOT. In some schools, they have abolished failing grades and they'll give you as MANY TIMES as you want to get the right answer. This doesn't bear the slightest resemblance to ANYTHING in real life.
Rule 9: Life is not divided into semesters. You don't get summers off and very few employers are interested in helping you FIND YOURSELF. Do that on your own time.
Rule 10: Television is NOT real life. In real life people actually have to leave the coffee shop and go to jobs.
Rule 11: Be nice to nerds. Chances are you'll end up working for one.
Regards
Pankaj
Labels: Interesting Information
Hi All,
Visual Studio 2008 delivers key advances for developers in three primary pillars:
1.Rapid application development
2.Effective team collaboration
3.Breakthrough user experiences
These above three pillars has following seven technology areas.
1.Developing Smart Client Applications.
2.Creating Microsoft Office Applications.
3.Building Windows Vista Applications.
4.Handling Data More Productively.
5.Enabling New Web Experiences.
6.Gaining an Improved Overall Developer Experience.
7.Improving Application Lifecycle Management (ALM).
Read the full article by clicking on below link
An Overview of Microsoft Visual Studio 2008
Regards
Pankaj
Labels: Microsoft Dev. Tools
Hi All,
The Visual Studio 2008 Training Kit . The technologies covered in the kit include: LINQ, C# 3.0, VB 9, WCF, WF, WPF, Windows CardSpace, Silverlight, ASP.NET Ajax, .NET Compact Framework 3.5, VSTO 3.0, Visual Studio Team System,.
For download click here
http://go.microsoft.com/?linkid=7602397
Regards
Pankaj
Labels: Microsoft Dev. Tools
Hi all,
In Nov 19,2007 Microsoft has announced to release Visual Studio 2008 and the .NET Framework 3.5.
Get more information on below link
http://msdn2.microsoft.com/en-us/vstudio/default.aspx
Regards
Pankaj
Labels: Microsoft Dev. Tools
Date & Time
Title of Webcast
Details
Day 1 : 12th Nov 1600 – 1730
Developing applications with WPF Build rich-looking GUIs using Windows Presentation Foundation.
Day 2 : 13th Nov 1600 – 1730
Developing applications with WCF Utilize Windows Communication Foundation (WCF) capabilities in .NET applications.
Day 3 : 14th Nov 1600 – 1730
Developing applications with WF Build workflow-enabled .Net applications with Windows Workflow Foundation (WF).
Day 4 : 15th Nov 1600 – 1730
Developing applications with CardSpace Utilize Windows Cardspace for digital identities and virtual cards.
Day 5 : 16th Nov 1600 – 1730
Developing applications with LINQ Use Language Integrated Query (LINQ) features to query varied types of data.
Register Now for Free (limited seats available) for this 5-part webcast series by Bijoy Singhal, an evangelist with Microsoft India.
Regards
Pankaj
Labels: Events
Hi ALL,
Another big change from Google. For the first time in the free webmail world, Gmail starts offering IMAP support. It should be available to all the users in a few days.
http://www.techtalkz.com/blog/google/gmail-introduces-imap-support.html
Regards
Pankaj
Hi All,
Somethimes we need to find the value from Geerics list. So here is the example
public static CustomOBJ GetConfigValue(CustomOBJ Id)
{
List
CustomOBJ m_CustomOBJ= customOBJ.Find(delegate(CustomOBJ customOBJ) { return customOBJ.Any_id_ToSearch == Id; });
return m_CustomOBJ;
}
Regards
Pankaj
Hi All,
Now you can get a free, second shot at any IT professional, developer, or Microsoft Dynamics certification exam. Just register for this offer before your first exam, and you will get two chances to pass.
For more info click here http://www.microsoft.com/learning/mcp/offers/secondshot/default.mspx
Regards
Pankaj
Hi,
Most of the time we require to validate the control in the client side using javascript.Below are some useful function
For removing blank spaces with regular Expression-----------------------
function trimAll(value)
{
var temp = value;
var obj = /^(\s*)([\W\w]*)(\b\s*$)/;
if (obj.test(temp))
{
temp = temp.replace(obj, '$2');
}
var obj = / +/g;
temp = temp.replace(obj, " ");
if (temp == " ")
{
temp = "";
}
return temp;
}
For Zip code validation US Zip Code------------------------------------------
function isValidZipCode(val)
{
var exp=/(^\d{5}$)(^\d{5}-\d{4}$)/;
var re = new RegExp(exp);
return (val.match(re));
}
For checking Alphanumeric value-----------------------------------
function CheckAlphanumeric (e)
{
var key;
key = e.which ? e.which : e.keyCode;
if((key>=48 &&amp; key<=57)(key>=65 && key<=91) (key >=97 && key<=123)) {
e.returnValue= true;
}
else
{
alert("please enter Alphanumeric only");
e.returnValue = false;
}
}
Time in 12 hour foramt-----------------------------------------------
function validateTime(strValue,state)
{
var objRegExp = /^([1-9]1[0-1]):[0-5]\d(:[0-5]\d(\.\d{1,3})?)?$/;
if(!(objRegExp.test( strValue )))
{
alert("Please Enter "+ state +" time in 12 hour format eg 11:30 ");
}
return objRegExp.test( strValue );
}
Hope this will help all
Regards
Pankaj
Labels: Javascript
Hi,
Its really a great news that Visual Studio 2008 Beta 2, .NET FX 3.5 Beta 2 are now available to download.For download click on the below link
http://msdn2.microsoft.com/en-us/vstudio/default.aspx
Regards
Pankaj
Labels: Microsoft Dev. Tools
Hi All,
I don’t know how many people notice that developer favorite portal MSDN now in a new look with all extra features which will help user to search new thing and related thing in one page .With tabbed control it will really help user to navigate to the search related download, related community all in one page.
New msdn site also integrated with live search. so all enjoy searching new thing in
www.msdn.com
Regards
Pankaj
Labels: Interesting Information
Hi,
Windows Live OneCare 2.0 offers the following new features:
· Printer sharing support. Makes it easy to connect printers to local networks so all users in the vicinity can use the same printer.
· Proactive fixes and recommendations. As part of the tune-up process, OneCare also looks at the configuration of the user’s system and makes proactive fixes and recommendations to improve the computing experience.
· Start-time optimizer. Speeds PC boot time by removing rarely used applications from start-up menu.
· Monthly reports. Provides a summary in the Windows Live OneCare dialogue box of key activities and recommended actions for all PCs in a local network.
· Centralized backup. OneCare enables the user to centrally configure and monitor backups for all PCs covered under the same OneCare subscription, with the data from all PCs backed up to a central location.
· Online photo backup. Keeps precious photos safe from theft or accidental loss by backing them up to a secure, offsite location in Windows Live Folders (available at an extra cost)
· Wi-Fi connection security. Makes it easy to secure home WiFi connection and helps protect privacy in wireless data transfers.
click below to download
http://get.live.com/betas/onecare_betas
Regards
Pankaj
Labels: Software
HI,
This is a code that i found online which is used to add a row to a datagrid data it is really nice.
private void dgView_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if(e.Item.ItemType==ListItemType.Item e.Item.ItemType==ListItemType.AlternatingItem)
{
DataGrid dg = (DataGrid)sender;
TableCell tc = new TableCell();
tc.Controls.Add(new LiteralControl(e.Item.Cells[9].Text));
tc.ColumnSpan = 10;
DataGridItem di = new DataGridItem(e.Item.ItemIndex,0,ListItemType.Item);
di.Cells.Add(tc);
Table t = (Table)dg.Controls[0];
t.Rows.Add(di);
}
}
Pankaj
Labels: C#
Hi,
ASPNET AjaxToolKit latest version released - version 10606
Latest Verion
New features like autocomplete text with delimiters, Dynamic context support for controls using Web Services, Accessibility improvements and many more. Check this out.
for sample Toolkit Sample Website.
Regards
Pankaj
Labels: Microsoft Dev. Tools
HI All,
Microsoft visual studio 2008 which is formerly known as Visual Studio code name "Orcas" is now available for download
http://msdn2.microsoft.com/en-us/vstudio/default.aspx
Key Benefits of Microsoft visual studio 2008 :
Faster Development. The Visual Studio Shell accelerates development by providing a base integrated development environment that can host custom tools and programming languages.
A Familiar Environment. Developers can build on the Visual Studio platform and provide end users a familiar user interface, speeding the learning curve for both.
Optimized for Languages & Tools. Created in response to requests from our partners, the Visual Studio Shell gives you the option of integrating your tools with Visual Studio or creating an isolated, custom-branded application.
Pankaj
Labels: Microsoft Dev. Tools
Hi All,
Check out the another cool product by Microsoft
http://www.microsoft.com/surface/
Regards
Pankaj
Labels: Software
Hi All,
TechMela,The great event is going to happen in Mumbai where there will be 150 session on different technologies including APPLICATION PLATFORM,UX PLATFORM,WEB PLATFORM,MOBILE PLATFORM,EMBEDDED DEVICES PLATFORM,INFRASTRUCTURE PLATFORM,COLLABORATION PLATFORM.
you can find event agenda on this link
http://www.techmela.com/tec_agenda.htm
and for registration click here
http://www.techmela.com/technology.htm
Regards
Pankaj
Labels: Events
Hi All,
Silverlight is a cross-browser, cross-platform plug-in for delivering the next generation of Microsoft .NET–based media experiences and rich interactive applications for the Web.
To install Microsoft Silverlight please click below link.
http://www.microsoft.com/silverlight/install.aspx
Regards
Pankaj
Labels: Microsoft Dev. Tools
Hi,
Windows Vista Hardware Assessment The Windows Vista Hardware Assessment solution accelerator is an inventory, assessment, and reporting tool that will find and determine if computers on a network are ready to run the Windows Vista operating system.http://www.microsoft.com/downloads/details.aspx?FamilyID=67240b76-3148-4e49-943d-4d9ea7f77730&DisplayLang=en
Pankaj
Labels: Windows
Hi,
Windows Vista Upgrade Advisor 1.0 Windows Vista Upgrade Advisor is designed to help Windows XP users identify whether their PCs are ready for an upgrade to Windows Vista, which edition of Windows Vista meets their needs, and which features of Windows Vista will be able to run on their PCs.http://www.microsoft.com/downloads/details.aspx?FamilyID=42b5ac83-c24f-4863-a389-3ffc194924f8&DisplayLang=en
Regards
Pankaj
Labels: Windows
HI All,
I have been declared a dotnetspider winner again this time for my community contributions in the month of april, 2007. I was declared a dotnetspider monthly winner in the month of January and february 2007 too.
www.dotnetspider.com
Regards
Pankaj
Labels: Awards
Hi All,
Get an early look at Visual Studio code name "Orcas"The next version of Visual Studio, Microsoft® Visual Studio® code name “Orcas”, will provide an industry-leading developer experience for Windows Vista, the 2007 Microsoft Office system, and the Web. In addition, it will continue in the Microsoft tradition of development language innovation. To enable early feedback, this page provides links to Community Technology Preview (CTP) and Beta releases of Visual Studio code name “Orcas”, and for technologies that we plan to include in it. As previews of additional technologies become available, we will make them available from this page.
http://msdn2.microsoft.com/en-us/vstudio/aa700831.aspx
Regards
Pankaj
Labels: .NET
HI All,
Microsoft .NET Framework 3.5 – Beta 1
The Microsoft .NET Framework 3.5 Beta 1 is a preview release of the latest version of the .NET Framework. Many ISV’s, enterprises and Microsoft product teams are successfully building on the new features Windows Workflow Foundation (WF), Windows Communication Foundation (WCF), Windows Presentation Foundation (WPF) and Windows CardSpace in the .NET Framework 3.0. Microsoft plans to continue to invest in the .NET Framework developer platform and in support of existing users the .NET Framework 3.5 has a minimal number of breaking changes.
Download from below link
Microsoft .NET Framework 3.5 - Beta 1
Rgards
Pankaj
Labels: .NET
Hi ,
Some times we require to clear the control status at one click for our web application. Using javascript its very easy.you can clear the control status
for example(TextBox/Input)
function ClearTextBoxExample()
{
var loTextBox = document.forms[0].elements;
for(var i=0;i
{
if(loTextBox[i]=="input")
{
loTextBox[i].value = "";
}
}
}
Regards
Pankaj
Labels: Javascript
Hi,
Find out about the general-purpose query facilities added to the .NET Framework that apply to all sources of information, not just relational or XML data. This facility is called .NET Language Integrated Query (LINQ).
example
using System;
using System.Query;
using System.Collections.Generic;
class app {
static void Main() {
string[] names = { "Burke", "Connor", "Frank",
"Everett", "Albert", "George",
"Harris", "David" };
IEnumerable
where s.Length == 5
orderby s
select s.ToUpper();
foreach (string item in expr)
Console.WriteLine(item);
}
}
Labels: C#
Hi,
Microsoft released Beta 1 of its upcoming IDE and interim framework late last week. This next version of Visual Studio, called "Orcas" for now, will offer developers as many as 200 new features, according to Microsoft.
http://www.ftponline.com/channels/net/2007_04/krichards/
Regards
Pankaj
Labels: .NET
Hi,
Dynamically rewrite Microsoft Intermediate Language code on the fly? How it sounds? Interesting isn't it? Yes! using the Profiling API of the CLR you can do that. Unlike approaches based on Reflection.Emit, this scheme works with the existing assemblies and doesn't require the creation of proxy or dynamic assemblies. The need for IL code rewriting emerges when you want to make your changes transparent to the client and preserve the identity of classes. This technique can be used for creation of interceptors, pre- and post-processing method calls, and code instrumentation and verification.
Please refer this nice article by Aleksandr Mikunov
http://msdn.microsoft.com/msdnmag/issues/03/09/NETProfilingAPI/default.aspx
Regards
Pankaj
Labels: .NET
Hi Guys,
Well vista is already launched and most of them wanted to know about its new feature so below is the link which will gives you the detail of Windows Vista feature.
http://www.microsoft.com/windows/products/windowsvista/features/default.mspx
Regards
Pankaj
Labels: Windows
Hi,
Have a look this beautiful article which explains about the SQL-Injections .Every developer should take care about this special character to prevent the site hacking.
http://www.criticalsecurity.net/index.php?showtopic=13830
Regards
Pankaj
Labels: Sql Server
Hi All,
Some time we need to generate random sequence of alphanumeric /nemeric/character for password/key etc. Below is static function which takes integer as parameter for the length of the output.
private static string RandomNumberGenerator(int length)
{
RandomNumberGenerator rng = RandomNumberGenerator.Create();
char[] chars = new char[length];
string validChars = "abcdefghijklmnopqrstuvwxyzABCEDFGHIJKLMNOPQRSTUVWXYZ1234567890"; //based on your requirment you can take only alphabets or number
for (int i=0; i< length; i++)
{
byte[] bytes = new byte[1];
rng.GetBytes(bytes);
Random rnd = new Random(bytes[0]);
chars[i] = validChars[rnd.Next(0,61)];
}
return (new string(chars));
}
Regards
Pankaj
Labels: C#
Hi,
I came across an interesting site.which allow you to avoid the default google logo to been seen everday in your browser.Thanks to the guys created the enginepuller site.Not more about to say but still an interesting site.
http://enginepuller.com/engines/1203/Pankaj.aspx
Regards
Pankaj
Labels: Interesting Information
Hi,
Microsoft Windows Live OneCare: All-in-one security and performance for your PC contains
Antivirus
Antispyware
Anti-phishing
Firewall
Performance tune-ups
Backup and restore
Click below link to donload free 90 days trial of this software(Windows Live OneCare)
http://onecare.live.com/standard/en-us/default.htm
Regards
Pankaj
Labels: Software
Hi All,
Below is the link for asp.net 2.0 tutorial.Its really nice have a look at it
http://msconline.maconstate.edu/tutorials/ASPNET20/default.htm
Regards
Pankaj
Labels: ASP.NET
Hi All,
This code sample shows how to convert a string to a byte array and and byte array to string.
//function to convert string to byte array
public static byte[] ConvertStringToByteArray(string stringToConvert)
{
return (new UnicodeEncoding()).GetBytes(stringToConvert);
}
//function to convert byte array to string
public static string ConvertByteArrayToString(byte[] byteArray)
{
return (new UnicodeEncoding()).GetString(byteArray);
}
Regards
Pankaj
Labels: C#
Hi All,
This function is used to convert file into byte array. some time we require to convert file into byte to save into database or send to other system using remoting.
private byte [] StreamFile(string filename)
{
FileStream fs = new FileStream(filename, FileMode.Open,FileAccess.Read);
// Create a byte array of file stream length
byte[] ImageData = new byte[fs.Length];
//Read block of bytes from stream into the byte array
fs.Read(ImageData,0,System.Convert.ToInt32(fs.Length));
//Close the File Stream
fs.Close();
return ImageData; //return the byte data
}
Regards
Pankaj
Labels: C#
Hi All,
Virtual PC is now released for demo and download please click here
http://www.microsoft.com/windows/products/winfamily/virtualpc/default.mspx
Regards
Pankaj
Labels: Software
Hi All,
With MSDN Virtual labs:
§ Evaluate and learn the latest Microsoft technologies
§ No installation or downloads required
§ No test machines required -- work on secure live servers
§ Labs for ASP.NET 2.0, Microsoft Visual Studio Team System, Expression Web, Windows Mobile and lots more
§ Try Express Labs to get a hands-on overview of select Microsoft technologies in just 30 minutes
Log on to www.virtuallabs.in to get started
Regards
Pankaj
Labels: Software
Hi All,
Please check out Microsoft virus removal tools. It help’s get confidence and peace of mind with round-the-clock protection and maintenance—virus scanning, firewalls, tune ups, file backups, the whole nine yards. .
Click here to download the trial version :
http://www.windowsonecare.com/install/default.aspx?pc=FreeTrial
Regards
Pankaj
Labels: Software
Hi All,
The below function will authenticate user using Active Directory.
public bool IsAuthenticated(string domain, string username, string pwd)
{
string _path;
string _filterAttribute;
string servername = "ServerName"; // Give the server Name
string domainAndUsername = domain + "\\" + username;
DirectoryEntry entry = new DirectoryEntry("LDAP://" + servername, domainAndUsername, pwd);
try
{
object obj = entry.NativeObject;
DirectorySearcher search = new DirectorySearcher(entry);
search.Filter = "(SAMAccountName=" + username + ")";
search.PropertiesToLoad.Add("cn");
SearchResult result = search.FindOne();
if (result == null)
{
return false;
}
_path = result.Path;
_filterAttribute = ((string)(result.Properties["cn"][0]));
}
catch (Exception ex)
{
return false;
}
return true;
}
Hope this will help all
Regards
Pankaj
Labels: C#
Hi,
Download XML notepad from here
http://www.microsoft.com/downloads/details.aspx?FamilyID=72d6aa49-787d-4118-ba5f-4f30fe913628&DisplayLang=en
Regards
Pankaj
Labels: Software
Hi All
To quickly add assemblies to the GAC - a registry key can be created
which allows you to right click the DLL and 'GAC it' in one click.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\dllfile\shell\gacutil\command]
@="c:\\windows\\Microsoft.NET\\Framework\\v1.1.4322\\gacutil.exe /i
\"%1\""
Reference link
http://markharrison.co.uk/blog/2005/12/easier-way-to-add-dll-to-gac.htm
Thanks & Regards
Pankaj
Labels: C#
Encrypting Web.Config Values in ASP.NET 2.0
One of the cool new features in the configuration system with ASP.NET 2.0 is the ability to encrypt any of the values stored within them (note: this works with any configuration section -- including ones you build yourself). This is obviously important when storing sensitive information like connection strings -- and now enables you to avoid having to roll your own solution.
Here are a few other good articles I found on the web that discuss it more as well:
http://msdn2.microsoft.com/en-us/library/zhhddkxy.aspx http://blogs.msdn.com/federaldev/archive/2005/11/08/490319.aspx http://msdn2.microsoft.com/en-us/library/dtkwfdky.aspx http://aspdot.net/articles/encryptedconnstring/ http://davidhayden.com/blog/dave/archive/2005/11/17/2572.aspx http://weblogs.asp.net/owscott/archive/2005/07/29/421063.aspx Look at the following simple example to encrypt a section in web.config
The ASP.NET IIS Registration Tool (Aspnet_regiis.exe) can encrypt and decrypt sections of web.config. There is no special code required in an application, as ASP.NET 2.0 will magically decrypt sections at runtime.
The tool and runtime can also work together to encrypt and decrypt custom configuration sections. So if I have the following in web.config:
name="sampleSection" type="System.Configuration.SingleTagSectionHandler" />
FavoriteMusic="Disco" FavoriteLanguage="COBOL" DreamJob="Dancing in the opening ceremonies of the Olympics" />
All I need to do from the command line, is:
aspnet_regiis -pef MySecrets .
Hope this helps,
Pankaj
Labels: ASP.NET
HI Guys,
This is a very good stored procedure which compares 2 databases and gives excellent comparison
http://www.sql-server-performance.com/vg_database_comparison_sp_code.asp>
Hope you find this useful
Regards
Pankaj
Labels: Sql Server
Namespace
C# namespace allow us to organize our class.unlike a file and component namespace provide us a flexibility to group our class and other types
For eg
Namespace MyCustomNameSpace
{
using System;
public int show()
{
return 0;
}
}
Using keyword in C#
C# allows us to abbreviate a class full name for doing this we have to list the class namespace at the top of the file with the “Using” key word
Eg
Using MyNameSpace.CsharpExample
Class MyClass
{
public static int Main()
{
SomeOtherNameSpace.SomeOtherClass loMyObj = new SomeOtherNameSpace.SomeOtherClass loMyObj();
Return 0;
}
}
Namespace Aliases
The another use of the namespace in c# is creating aliases.this is use ful when we have a long namespace for eg
Using myAliases = MyNameSpace.CsharpExample;
Regards
Pankaj
Labels: C#