The blog is created to discuss Prince2 methodology any issues faced in project management to be resolved or discussed and .Net Technology
Tuesday, August 14, 2012
Turn view state off makes page light and load faster
If we choose to set the attribute of label control "EnableViewState" to false.
It will keep our page lighter and unnecessary state of the control will not be maintained and page will load faster.
Tuesday, July 10, 2012
Android Jelly Bean 4.1 source code is released to AOSP
The Source Link:
Wednesday, June 27, 2012
CyanogenMod 9.0 RC1 released for 50 Devices
The CyanogenMod 9.0 has been in the works for quite a long time now but it seems it is only a matter of time now before the final version gets released. But before we get there, the CyanogenMod team has decided to release the first Release Candidate today, that includes support for 50 devices....
Source
Monday, June 25, 2012
Made in Pakistan Tablets,Note Books and E-Books
I have gone through this site and was overwhelmed with joy that we have products like these made in Pakistan.
PAC-PAD Takhti 7 (second generation tablet)
PAC-PAD 1 (first generation tablet discontinued)
PAC-eBOOK 1 (E-Book)
PAC-nBOOK 1 (Note Book)
You can visit the following site to have a look.
PAC Electronic gadets
Buy these products instead of Chinese.
Sunday, June 24, 2012
Introduction to ASP.Net MVC architectural pattern
1) Model
2) View
3) Controller
The MVC framework is defined in System.Web.Mvc namespace.The MVC provide full control over javascript, css, html.
1) Models
Model components are part of application that deals with data source.Models are used to retrieve and store objects into the data source. For example a car information is retrieved and then work is performed on the data and then the update data is saved into the data source.
2) Views
Views are components that makes up the UI segment.The views are created from the Model data. For example View is the interface of the vehicle's information edit view.
3) Controllers
Controllers are the components that handles the user interaction. Controller read data from the view, control user input and send the data to model.
Saturday, June 2, 2012
Difference Between Asp.net Web Pages, Asp.net Web Forms, Asp.net MVC
1) ASP.Net Pages
ASP.NET Web Pages focuses on adding dynamic (server-side) code and database access to HTML pages, and features simple and lightweight syntax.
2) ASP.Net Web Forms
ASP.NET Web Forms is based on a page object model and traditional window-type controls (buttons, lists, etc.). Web Forms uses an event-based model that's familiar to those who've worked with client-based (Windows forms) development.
3) ASP.Net MVC
ASP.NET MVC implements the model-view-controller pattern for ASP.NET. The emphasis is on "separation of concerns" (processing, data, and UI layers).
Summary
All three frameworks are fully supported and continue to be developed by the ASP.NET team. In general, the choice of which framework to use depends on your background and experience with ASP.NET.
ASP.NET Web Pages in particular was designed to make it easy for people who already know HTML to add server processing to their pages. It's a good choice for students, hobbyists, people in general who are new to programming. It can also be a good choice for developers who have experience with non-ASP.NET web technologies.
Tuesday, May 29, 2012
Razor syntax with C#
Razor Syntax Article on MSDN
Saturday, December 31, 2011
Ways to Transfer Data Between Asp.net Pages
1. Use the querystring:
protected void QueryStringButton_Click(object sender, EventArgs e)
{
Response.Redirect("QueryStringPage.aspx?Data=" + Server.UrlEncode(DataToSendTextBox.Text));
}
2. Use HTTP POST:
protected void HttpPostButton_Click(object sender, EventArgs e)
{
// The PostBackUrl property of the Button takes care of where to send it!
}
3. Use Session State:
protected void SessionStateButton_Click(object sender, EventArgs e)
{
Session["Data"] = DataToSendTextBox.Text;
Response.Redirect("SessionStatePage.aspx");
}
4. Use public properties:
public string DataToSend
{
get
{
return DataToSendTextBox.Text;
}
}
protected void PublicPropertiesButton_Click(object sender, EventArgs e)
{
Server.Transfer("PublicPropertiesPage.aspx");
}
5. Use PreviousPage Control Info:
protected void ControlInfoButton_Click(object sender, EventArgs e)
{
Server.Transfer("ControlInfoPage.aspx");
}
// target page:
protected void Page_Load(object sender, EventArgs e)
{
var textbox = PreviousPage.FindControl("DataToSendTextbox") as TextBox;
if (textbox != null)
{
DataReceivedLabel.Text = textbox.Text;
}
}
6. Use HttpContext Items Collection:
protected void HttpContextButton_Click(object sender, EventArgs e)
{
HttpContext.Current.Items["data"] = DataToSendTextBox.Text;
Server.Transfer("HttpContextItemsPage.aspx");
}
// target page:
protected void Page_Load(object sender, EventArgs e)
{
this.DataReceivedLabel.Text =(String) HttpContext.Current.Items["data"];
}
7. Use Cookies:
protected void CookiesButton_Click(object sender, EventArgs e)
{
HttpCookie cook = new HttpCookie("data");
cook.Expires = DateTime.Now.AddDays(1);
cook.Value = DataToSendTextBox.Text;
Response.Cookies.Add(cook);
Response.Redirect("HttpCookiePage.aspx");
}
// target page:
protected void Page_Load(object sender, EventArgs e)
{
DataReceivedLabel.Text = Request.Cookies["data"].Value;
}
8. Use Cache:
protected void CacheButton_Click(object sender, EventArgs e)
{
Cache["data"] = DataToSendTextBox.Text;
Server.Transfer("CachePage.aspx");
}
// target page:
protected void Page_Load(object sender, EventArgs e)
{
this.DataReceivedLabel.Text = (string) Cache["data"];
}
Actually, there are a number of other methods. You can use a database, a Data Store such as Redis or BPlusTree, file storage, or even the Appdomain Cache. But as these are not as common, we'll leave those as an exercise for the reader. I should mention that the use of Cache and Application (not shown) are not user - specific, but they can easily be made so by prepending the key used with something unique to the user such as their SessionId.
Courtesy:Peter Bromberg
Wednesday, October 5, 2011
History of Management
It may not be present with the current glittering terms used today but we can date back to people management during Egyptian Pharos.
Things to ponder at that time they have to manage people,raw material,logistics etc
For a single pyramid it approximately requires 100,000 workers for 20 years, so there is some sort of basic management.
Thus the term Management took many shapes over the years and now it is in this current shape.