As is known to everyone, if you learn and master each and every aspect of the subject and get a hand on experience on it, and then you will not have any problems, that is to say, you absolutely will get 70-536!!But, we could not become a master in .net framework-application Development Foundation in singe [...]
Archive for the ‘.net framework 2’ Category
Best advice for your preparation for 70-536
Posted in .net framework 2, 1, Certifications, Transcanders for dotnet, asp.net 2 on September 4, 2009 | Leave a Comment »
whats new in asp.net 4.0
Posted in .net framework 2, asp.net 1.1, asp.net 2, c# on June 26, 2009 | Leave a Comment »
read the following link
http://www.asp.net/learn/whitepapers/aspnet40/
How to get month date view between two dates in c#
Posted in .net framework 2, asp.net 1.1, asp.net 2, c# on March 24, 2009 | Leave a Comment »
Scenario I got while developing some application. I required month and year view in drop down list between contract starting and ending date. Like “March 2009” “April 2009” until march 2011 so on.
I handled it as follow
DateTime _LoopDate = “1/1/2009”;
[...]
How to get Month name from current date using c#
Posted in .net framework 2, asp.net 1.1, asp.net 2, c# on March 18, 2009 | 1 Comment »
Hi i found two methods to do so.
Using Globliziation
System.Globalization.DateTimeFormatInfo d = new System.Globalization.DateTimeFormatInfo();
string month = d.MonthNames[DateTime.Now.Month-1];
Using new date object as follow
string MonthName = GetMonthName(DateTime.Now.Month);
static string GetMonthName(int monthNum)
{
return GetMonthName(monthNum, false);
}
static string GetMonthName(int monthNum, bool abbreviate)
{
if (monthNum < 1 || monthNum > 12)
throw new ArgumentOutOfRangeException(“monthNum”);
DateTime date = new DateTime(1, monthNum, 1);
if (abbreviate)
return date.ToString(“MMM”);
else
return date.ToString(“MMMM”);
}
Chears
how to send mail smtp with authentication with web.mail class
Posted in .net framework 2, asp.net 2 on November 19, 2008 | Leave a Comment »
hi i used following code
MailMessage message = new MailMessage();
message.To = “myemailaccount@yahoo.com”;
message.From = “myemailaccount@thecrystalrosary.com”;
message.Subject = “Testing Internet SmtpMail”;
message.BodyFormat = MailFormat.Html;
message.Body = “body”;
message.Fields.Add(“http://schemas.microsoft.com/cdo/configuration/smtpserver”, “smtp.thecrystalrosary.com”);
message.Fields.Add(“http://schemas.microsoft.com/cdo/configuration/smtpserverport”, 25);
message.Fields.Add(“http://schemas.microsoft.com/cdo/configuration/sendusing”, 2); //2 to send using SMTP over the network
message.Fields.Add(“http://schemas.microsoft.com/cdo/configuration/smtpauthenticate”, 1); //1 = basic authentication
message.Fields.Add(“http://schemas.microsoft.com/cdo/configuration/sendusername”, “username”);
message.Fields.Add(“http://schemas.microsoft.com/cdo/configuration/sendpassword”, “password”);
try
{
SmtpMail.Send(message);
}
catch (Exception e)
{
// trap here
}
how to get oracle sequence numbers in .net
Posted in .net framework 2, asp.net 2, c#, tagged Orcale on October 24, 2008 | Leave a Comment »
hi the main Query to get sequence number is follow
select JOB_ID_SEQ.NEXTVAL from dual;
i get the required Sequence number value form following method
public int GetOracleSequenceValue(string _SequenceValue)
{
OdbcCommand _command = new OdbcCommand();
[...]
How to resize image in .net
Posted in .net framework 2, Windows form, c#, vb.net on October 9, 2008 | Leave a Comment »
use follwing Code change image path at load event method for downloading Code
Imports System
Imports System.Drawing
Imports System.Drawing.Imaging
Imports System.Drawing.Drawing2D
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim WorkingDirectory As String = “c:\AliPicture”
‘create a image object containing a verticel photograph
Dim imgPhotoVert As Image = Image.FromFile(WorkingDirectory + “\pravs-j-the-first-step.jpg”)
Dim imgPhoto As Image = Nothing
imgPhoto = [...]
how to get server.mappath in c# class
Posted in .net framework 2, asp.net 1.1, asp.net 2, c# on August 25, 2008 | Leave a Comment »
i face a problem that server.mappath did not available in c# class at my utillity framework at app code folder of one of my asp.net application. While it is available at asp.net page code behind. Because ASP.NET pages contain a default reference to the System.Web namespace (which contains the
HttpContext class), you can reference the members [...]
Design Patterns Interview Questions
Posted in .net framework 2, c#, design pattern on June 30, 2008 | 2 Comments »
What is a Design Pattern?
Design Pattern is a re-usable, high quality solution to a given requirement, task or recurring problem. Further, it does not comprise of a complete solution that may be instantly converted to a code component, rather it provides a framework for how to solve a problem.
In 1994, the release of the book [...]
Registering ASP.NET on IIS after installing the .NET Framework
Posted in .net framework 2, asp.net 1.1, asp.net 2, c# on June 6, 2008 | Leave a Comment »
Usually this problem occur when we install iIs after installation of Visual studio or .net framework. For this purpose use aspnet_regiis.exe, it is located under %WindowsDir%\Microsoft.NET\Framework\vx.y.zzzz\ and you should call it with the -i parameter: aspnet_regiis.exe -i