Sexy Toolz released these new set of sizzling photos in anticipation for the2nd season of the popular Ndani Tv show "The Juice" show which is set to air in March.. Lovely photosMore below...
http://news-these-days.blogspot.com/feeds/5878093295848068041/comments/default
Rabu, 26 Februari 2014
Incredible: Boy sold in exchange for 2 bags of rice in Lagos (PICTURED)
A 15-year-old boy, Seun Aderinwale, was said to have been traded for two bags of rice valued at N2o,ooo at Igando in Alimosho area of Lagos State. According to sources, the yet-to-be identified man reportedly went to Igando to buy two bags of rice from a shop owned by a woman identified as Iya Ibrahim. The woman was not available at the time but her son, identified as Ibrahim, agreed to the
http://news-these-days.blogspot.com/feeds/5411536779769720997/comments/default
http://news-these-days.blogspot.com/feeds/5411536779769720997/comments/default
Photos:- Actress Fathia Balogun Shows Off Her Adorable Kids & Mum
At the Premiere of her movie on Monday, the proud mum showed off her adorable kids and mumWhile giving her vote of thanks she said "They have been my pillar of support, I love them die", she also praised her mum too. See more Photos Below:
http://news-these-days.blogspot.com/feeds/3930298714786073468/comments/default
http://news-these-days.blogspot.com/feeds/3930298714786073468/comments/default
Photo: Actress Rukky Sanda shines in all white ensemble
She posted the pic on her instagram page on her way to the Africa Magic Viewers' Choice Awards' nominees brunch happening today. She looks great!
http://news-these-days.blogspot.com/feeds/5429324604082087328/comments/default
http://news-these-days.blogspot.com/feeds/5429324604082087328/comments/default
PSqaure Debuts Cartoon Series Called 'The Alingos'
If you can remember vividly that Peter shared a tweet that something is coming which isn't a music video ,song or endorsement but its definitely going to be entertaining and mind blowing. Well he was talking their cartoon series titled 'The Alingos'He said *Bin working on dis project for over 5yrs plus and am so happy it's a huge success .
http://news-these-days.blogspot.com/feeds/3865941059392253764/comments/default
http://news-these-days.blogspot.com/feeds/3865941059392253764/comments/default
Federal Government Increases International Passport Fee By 50% [READ DETAILS]
The Federal Government has increased passport fee by 50%. According to a circular signed by the Deputy Comptroller in charge of Operations/Passport and released a few days ago titled ‘Passport Reforms’, applicants will now pay N15,000 instead of N10,000. Also applicants for change of data will pay now N30,000. A newly introduced 64-page passport for frequent travelers will cost N20,000,
http://news-these-days.blogspot.com/feeds/8831994557357775142/comments/default
http://news-these-days.blogspot.com/feeds/8831994557357775142/comments/default
Super Eagles player, Kalu Uche and wife welcomes baby boy (LOOK)
Nigerian football player, Kalu Uche became a proud father again as his wife Stephanie Uche, an ex-beauty queen gave birth to a son yesterday. The couple already had a 2-year old daughter in October 2011, months after their wedding. Congratulations to the new parents.
http://news-these-days.blogspot.com/feeds/3408763083247648203/comments/default
http://news-these-days.blogspot.com/feeds/3408763083247648203/comments/default
Selasa, 25 Februari 2014
The Great BITCOIN CRASH
BITCOIN BAGHOLDERS!Customers Lose $100's of MILLIONSThe money just disappearedIs that why BITCOIN is called VIRTUAL CURRENCY?:-)Mt. Gox on the runCould it be BrotherJohnF and DavinciJ15 are criminals? Who else in the "truther community" is involved in this scam?We will find out...http://news-these-days.blogspot.com/2014/02/bad-news-for-bitcoin-exchanges.htmlThese TRUTHERS that have left their
http://news-these-days.blogspot.com/feeds/3139713178200822086/comments/default
http://news-these-days.blogspot.com/feeds/3139713178200822086/comments/default
WINDOWS XP Support Ends April 8, 2014
CINCINNATI, Feb. 25, 2014 /PRNewswire/ -- Windows XP support will end April 8 and many organizations have not yet decided how to address the problem. IGEL Technology recommends a painless and highly cost-effective solution: the IGEL UDC2 software thin client. TO READ MORE CLICK BELOW: The IGEL Universal Desktop Converter 2 (
http://news-these-days.blogspot.com/feeds/142796171939759587/comments/default
http://news-these-days.blogspot.com/feeds/142796171939759587/comments/default
Are you a VICTIM of WORKPLACE BULLYING?
Targets of WORKPLACE BULLYING lost their jobs 61% of the timeSerious health-harming abuseBELLINGHAM, Wash., Feb. 25, 2014 /PRNewswire/ -- The Workplace Bullying Institute (WBI) defined workplace bullying as "abusive conduct that is threatening, intimidating, humiliating, work sabotage or verbal abuse" in its 2014 national survey. Key results: 27% of all adult
http://news-these-days.blogspot.com/feeds/7659040464796548727/comments/default
http://news-these-days.blogspot.com/feeds/7659040464796548727/comments/default
Bitcoin Foundation Announces Bitcoin 2014 Event in Amsterdam
Pete Rizzo (@pete_rizzo_) | Published on February 25, 2014 at 11:00 GMT | Bitcoin Foundation, NewsThe Bitcoin Foundation has officially announced “Bitcoin 2014: Building the Digital Economy”, an international exhibition centred on digital currencies.The event will be held at the Passenger Terminal venue in Amsterdam, The Netherlands, from 15th-17th May. Registration is now open at
http://news-these-days.blogspot.com/feeds/6099110201139400012/comments/default
http://news-these-days.blogspot.com/feeds/6099110201139400012/comments/default
Photography Hint, It's All About The Lighting
Whoops!Filed under Unintentional Hilarity.
http://news-these-days.blogspot.com/feeds/565101881356729318/comments/default
http://news-these-days.blogspot.com/feeds/565101881356729318/comments/default
Minggu, 19 Januari 2014
Tokens and its Types used in NetBeans: Java
In a passage of text, individual words and punctuation marks are called tokens. In fact, every unit that makes a sentence in Java programming is a token.
The following character sequence, formed from ASCII letters, are reserved for use as keywords and cannot be used as identifiers:
The keywords const and goto are reserved, even though they are not currently used. This may allow a Java complier to produce better error message if these Java keywords incorrectly appear in programs.
While true and false might appear to be keywords, they are technically Boolean literals. Similarly, while null might appear to be keywords, it is technically the null literal. Thus true, false and null are not keywords but reserved words.
The smallest individual unit in a program is known as a Token.Java has the following types of tokens:
Keywords
Keywords are the words that convey a special meaning to the language complier. These are reserved for special purpose and must not be used as normal identifier names.The following character sequence, formed from ASCII letters, are reserved for use as keywords and cannot be used as identifiers:
The keywords const and goto are reserved, even though they are not currently used. This may allow a Java complier to produce better error message if these Java keywords incorrectly appear in programs.
While true and false might appear to be keywords, they are technically Boolean literals. Similarly, while null might appear to be keywords, it is technically the null literal. Thus true, false and null are not keywords but reserved words.
Character Set used in NetBeans: Java Programming
Java programming have its own character set that is used by the programmers to write code easily. Character set is composed of valid characters in a language that may be any letter, digit etc.
In any language, there are some fundamentals that you need to know before you can write even the most elementary programs. This article introduce Java fundamentals to you so that you may start writing efficient code for your GUI applications.
Character set is a set of valid characters that a language can recognize. A character represent any letter, digit or any other sign. Java uses Unicode character set. Unicode is two-byte character code set that has character representing almost all character in almost all language and writing systems around the world including English, Arabic, Chinese and many more.
The first 128 character in the Unicode character set are identical to common ASCII character set. The second 128 characters are identical to the upper 128 characters of the ISOLaptin-1 extended SCII character set. Its next 65,280 that are capable of representing character of nearly all recognized of the world.
You can refer to a particular Unicode character by using the escape sequence \u followed by a four digit hexadecimal.
For example
\u00AE © The copyright Symbol
\u0022 “ The double quote
\u00BD ½ The fraction ½
\u0394 ∆ The capital Greek letter delta
You can even use the full Unicode character sequence to name your variables. However, chances are your text editor won’t be able to handle more than basic ASCII very well.
In any language, there are some fundamentals that you need to know before you can write even the most elementary programs. This article introduce Java fundamentals to you so that you may start writing efficient code for your GUI applications.
Character set is a set of valid characters that a language can recognize. A character represent any letter, digit or any other sign. Java uses Unicode character set. Unicode is two-byte character code set that has character representing almost all character in almost all language and writing systems around the world including English, Arabic, Chinese and many more.
The first 128 character in the Unicode character set are identical to common ASCII character set. The second 128 characters are identical to the upper 128 characters of the ISOLaptin-1 extended SCII character set. Its next 65,280 that are capable of representing character of nearly all recognized of the world.
You can refer to a particular Unicode character by using the escape sequence \u followed by a four digit hexadecimal.
For example
\u00AE © The copyright Symbol
\u0022 “ The double quote
\u00BD ½ The fraction ½
\u0394 ∆ The capital Greek letter delta
You can even use the full Unicode character sequence to name your variables. However, chances are your text editor won’t be able to handle more than basic ASCII very well.
Sabtu, 18 Januari 2014
About the Folders in MVC Web Application in Visual Studio
In Visual Studio, when programmer creates a new MVC 4 Web Application some folders and files added by default. These folders contains Controllers, Models, and Views etc. to be complete MVC framework basis. The following figure shows the solution explorer created by default application:
These views may have aspx or razor pages according to the requirement of the programmer.
App_Data
As the name implies, this folder will contains all the data related to our application. In further articles, we will use this folder to add a database (SQL database).App_Start
All the files used to start the application are placed in this folder. These files contains AuthConfig, BundleConfig and RouteConfig etc. To specify routes for the application, add some files dynamically may be done by using these files.Content
Content folder contains themes folder including css files, static files, icons and images used by the application. A default Site.css file is added in this folder that creates standard theme for the application. Programmer can change these themes as per the roles, account by using these folder.Controllers
MVC gives all the controller the standard name suffix with “Controller”. The default mvc application have two controller i.e. AccountController and HomeController. These controller have some actions defined, used for redirection of the user. Programmer can add more controllers as per the requirements and any controller have multiple actions discussed later.Models
Classes represents the application model for your application are defined in this folder. These classes may be used to create validation for the fields entered by the user. We will add some model classes in this folder in later article. It have default model added in the visual studio MVC application.Views
Pages shown to the user, according to the controller classes are stored in this folder. Related views may be placed in a folder having the same name of controller by which these views relates. Any controller have some standard actions like Index, Create, Edit and Delete. The related views folder have all these views having the same name.These views may have aspx or razor pages according to the requirement of the programmer.
Scripts
JavaScript files used by the application are stored in this folder. By default MVC add approx. 15 js files in the folder which are standard java script files. Programmer can also add some new files and use them in the application.Kamis, 16 Januari 2014
How to search item from database using stored procedure in ASP.NET
Step-1: First create a Database Table in visual studio
I have some columns like
SNO int primarykey with auto increment by 1
Title nvarchar(50) Allow Null
MetaDescription nvarchar(MAX) Allow Null
URL nvarchar(200) Allow Null
Step-2: Add TextBox, Button and GridView control into the .aspx page
Step-3: Create a static class for connection.
Step-4: Handle Button_click event
<p>
Enter Text Here :
<asp:TextBox ID="TextBox1" runat="server" Height="32px" Width="237px"></asp:TextBox>
</p>
<p>
<asp:Button ID="Button1" runat="server" Height="33px" onclick="Button1_Click"
Text="Search" Width="122px" />
</p>
<p>
<asp:GridView
AutoGenerateColumns ="false"
ID="GridView1" runat="server"
Height="180px" Width="426px"
GridLines ="None"
AllowPaging="True"
onpageindexchanging="GridView1_PageIndexChanging" PageSize="5"
ShowHeader="False">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:HyperLink ID="HyperLink1" runat="server" Text ='<%# Eval("title") %>' NavigateUrl='<%# Eval("URL") %>'/>
<br />
<asp:Label ID="Label1" runat="server" Text='<%# Eval("title") %>'/><br />
<asp:Label ID="description" runat="server" Text='<%# Eval("metaDescription") %>'/>
<asp:Label ID="Label2" runat="server" Text='<%# Eval("keywords") %>'/>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</p>
<p>
</p>
I have some columns like
SNO int primarykey with auto increment by 1
Title nvarchar(50) Allow Null
MetaDescription nvarchar(MAX) Allow Null
URL nvarchar(200) Allow Null
Step-2: Add TextBox, Button and GridView control into the .aspx page
Step-3: Create a static class for connection.
Step-4: Handle Button_click event
<p>
Enter Text Here :
<asp:TextBox ID="TextBox1" runat="server" Height="32px" Width="237px"></asp:TextBox>
</p>
<p>
<asp:Button ID="Button1" runat="server" Height="33px" onclick="Button1_Click"
Text="Search" Width="122px" />
</p>
<p>
<asp:GridView
AutoGenerateColumns ="false"
ID="GridView1" runat="server"
Height="180px" Width="426px"
GridLines ="None"
AllowPaging="True"
onpageindexchanging="GridView1_PageIndexChanging" PageSize="5"
ShowHeader="False">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:HyperLink ID="HyperLink1" runat="server" Text ='<%# Eval("title") %>' NavigateUrl='<%# Eval("URL") %>'/>
<br />
<asp:Label ID="Label1" runat="server" Text='<%# Eval("title") %>'/><br />
<asp:Label ID="description" runat="server" Text='<%# Eval("metaDescription") %>'/>
<asp:Label ID="Label2" runat="server" Text='<%# Eval("keywords") %>'/>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</p>
<p>
</p>
.aspx.cs file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;
using System.Data;
public partial class _Default : System.Web.UI.Page
{
SqlConnection con = new SqlConnection();
SqlCommand cmd = new SqlCommand();
DataSet ds = new DataSet();
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
loadgrid();
}
private void loadgrid()
{
con.ConnectionString = connection.Connectionstring;
con.Open();
cmd.CommandText = "GetEngine";
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@parameter", TextBox1.Text);
cmd.Connection = con;
SqlDataAdapter da = new SqlDataAdapter(cmd);
da.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();
}
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
loadgrid();
}
}
Connection Class file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;
/// <summary>
/// Summary description for connection
/// </summary>
public static class connection
{
private static string DBConnectionString;
static connection()
{
DBConnectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ToString();
}
public static string Connectionstring
{
get
{
return DBConnectionString;
}
}
}
Stored Procedure code
Create Procedure GetEngine
@parameter nvarchar(100)
As
Select * from SearchEngine where Title like '%'+@parameter+'%' or MetaDescription like '%'+@parameter+'%' or URL like '%'+@parameter+'%'
Code generate the following output
Rabu, 15 Januari 2014
Search Engine project with source code in ASP.NET
Introduction
Search engine means , you can search any item from the database. Basically a search engine depends on various algorithms. In this project we use simple search algorithm. That algorithm isFirst you fill the table by some value like insert title, description, URL, keywords etc. After feeding the data you can search in it.
Software requirement of the project are
1. Visual Studio 2010 with sql server 2008Download
mail to me : narenkumar851@gmail.com for project source codeDesigning patterns
1. First prepare master page for outer structure.2. Search item using TextBox from database also take output in Gridview.
3. Design Admin Login page for feeding data into database table.
4. Also set permission for admin (admin can remove item from database table)
Search Code using stored procedure
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="_Default" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<p>
Enter Text Here :
<asp:TextBox ID="TextBox1" runat="server" Height="32px" Width="237px"></asp:TextBox>
</p>
<p>
<asp:Button ID="Button1" runat="server" Height="33px" onclick="Button1_Click"
Text="Search" Width="122px" />
</p>
<p>
<asp:GridView
AutoGenerateColumns ="false"
ID="GridView1" runat="server"
Height="180px" Width="426px" GridLines ="None" AllowPaging="True"
onpageindexchanging="GridView1_PageIndexChanging" PageSize="5"
ShowHeader="False">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:HyperLink ID="HyperLink1" runat="server" Text ='<%# Eval("title") %>' NavigateUrl='<%# Eval("URL") %>'/>
<br />
<asp:Label ID="Label1" runat="server" Text='<%# Eval("title") %>'/><br />
<asp:Label ID="description" runat="server" Text='<%# Eval("metaDescription") %>'/>
<asp:Label ID="Label2" runat="server" Text='<%# Eval("keywords") %>'/>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</p>
<p>
</p>
</asp:Content>
Csharp File code
using System;using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;
using System.Data;
public partial class _Default : System.Web.UI.Page
{
SqlConnection con = new SqlConnection();
SqlCommand cmd = new SqlCommand();
DataSet ds = new DataSet();
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
loadgrid();
}
private void loadgrid()
{
con.ConnectionString = connection.Connectionstring;
con.Open();
cmd.CommandText = "GetEngine";
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@parameter", TextBox1.Text);
cmd.Connection = con;
SqlDataAdapter da = new SqlDataAdapter(cmd);
da.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();
}
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
loadgrid();
}
}
Selasa, 14 Januari 2014
How to create and read Profile Group in ASP.NET
Step-1: Add this code into web.config file
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<authentication mode="Windows" />
<profile>
<properties>
<group name ="AuthorInfo">
<add name="AuthorName"/>
<add name ="age"/>
<add name="rights"/>
</group>
<group name ="EditorInfo">
<add name ="EditorName"/>
<add name ="EditorMail"/>
<add name ="Editorrights"/>
</group>
</properties>
</profile>
<compilation debug="false" targetFramework="4.0" />
</system.web>
</configuration>
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<authentication mode="Windows" />
<profile>
<properties>
<group name ="AuthorInfo">
<add name="AuthorName"/>
<add name ="age"/>
<add name="rights"/>
</group>
<group name ="EditorInfo">
<add name ="EditorName"/>
<add name ="EditorMail"/>
<add name ="Editorrights"/>
</group>
</properties>
</profile>
<compilation debug="false" targetFramework="4.0" />
</system.web>
</configuration>
Step-2: Add this code into .aspx file
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void Page_Load(object sender, System.EventArgs e)
{
// Author Information
Profile.AuthorInfo.AuthorName = "Rhett Butler";
Profile.AuthorInfo.age = "30";
Profile.AuthorInfo.rights = "Article writing";
// Editor Information
Profile.EditorInfo.EditorName = "Jacob Lefore";
Profile.EditorInfo.EditorMail = "narenkumar851@gmail.com";
Profile.EditorInfo.Editorrights = "full rights";
}
protected void Button1_Click(object sender, EventArgs e)
{
Label1.Text += "<b>Author Information</b><br/>";
Label1.Text += Profile.AuthorInfo.AuthorName+"<br/>";
Label1.Text += Profile.AuthorInfo.age + "<br/>";
Label1.Text += Profile.AuthorInfo.rights + "<br/>";
Label1.Text += "<b>Editor Information</b><br/>";
Label1.Text += Profile.EditorInfo.EditorName + "<br/>";
Label1.Text += Profile.EditorInfo.EditorMail + "<br/>";
Label1.Text += Profile.EditorInfo.Editorrights + "<br/>";
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Get Lastupdated Date</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<h2>Create user Group</h2>
<asp:Label ID="Label1" runat="server" Text=""></asp:Label>
<br />
<br />
<asp:Button ID="Button1" runat="server" Text="Get user Group"
Width="169px" onclick="Button1_Click" />
<br /><br />
</div>
</form>
</body>
</html>
Code Generate the following output
How to Get Last Activity Date of Profile user in ASP.NET
Step-1: Add this code into web.config file
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<authentication mode="Windows" />
<profile>
<properties>
<add name="UserName"/>
</properties>
</profile>
<compilation debug="false" targetFramework="4.0" />
</system.web>
</configuration>
Step-2: Add this code into .aspx page (Before add this code, please create profile first )
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void Page_Load(object sender, System.EventArgs e)
{
}
protected void update_date(object sender, EventArgs e)
{
Label1.Text += "current Date and Time is " + DateTime.Now.ToString() +"<br/>";
Label1.Text += "Profile LastUpdate Date is " + Profile.LastActivityDate;
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Get Last Activity Date</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<h2>Get Last activity Date</h2>
<asp:Label ID="Label1" runat="server" Text=""></asp:Label>
<br />
<br />
<asp:Button ID="Button1" runat="server" Text="Get Last Activity Date"
Width="169px" onclick="update_date" />
<br /><br />
</div>
</form>
</body>
</html>
Code Generate the following output
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<authentication mode="Windows" />
<profile>
<properties>
<add name="UserName"/>
</properties>
</profile>
<compilation debug="false" targetFramework="4.0" />
</system.web>
</configuration>
Step-2: Add this code into .aspx page (Before add this code, please create profile first )
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void Page_Load(object sender, System.EventArgs e)
{
}
protected void update_date(object sender, EventArgs e)
{
Label1.Text += "current Date and Time is " + DateTime.Now.ToString() +"<br/>";
Label1.Text += "Profile LastUpdate Date is " + Profile.LastActivityDate;
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Get Last Activity Date</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<h2>Get Last activity Date</h2>
<asp:Label ID="Label1" runat="server" Text=""></asp:Label>
<br />
<br />
<asp:Button ID="Button1" runat="server" Text="Get Last Activity Date"
Width="169px" onclick="update_date" />
<br /><br />
</div>
</form>
</body>
</html>
Code Generate the following output
Senin, 13 Januari 2014
How to Get Last Updated Date of Profile user in ASP.NET
Step-1: Add this code into web.config file
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<authentication mode="Windows" />
<profile>
<properties>
<add name="UserName"/>
</properties>
</profile>
<compilation debug="false" targetFramework="4.0" />
</system.web>
</configuration>
Step-2: Add this code into .aspx page (Before add this code, please create profile first )
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void Page_Load(object sender, System.EventArgs e)
{
}
protected void update_date(object sender, EventArgs e)
{
Label1.Text += "current Date and Time is " + DateTime.Now.ToString() +"<br/>";
Label1.Text += "Profile LastUpdate Date is " + Profile.LastUpdatedDate;
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Get Lastupdated Date</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<h2>Last updated Date</h2>
<asp:Label ID="Label1" runat="server" Text=""></asp:Label>
<br />
<br />
<asp:Button ID="Button1" runat="server" Text="Get Last Updated Date"
Width="169px" onclick="update_date" />
<br /><br />
</div>
</form>
</body>
</html>
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<authentication mode="Windows" />
<profile>
<properties>
<add name="UserName"/>
</properties>
</profile>
<compilation debug="false" targetFramework="4.0" />
</system.web>
</configuration>
Step-2: Add this code into .aspx page (Before add this code, please create profile first )
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void Page_Load(object sender, System.EventArgs e)
{
}
protected void update_date(object sender, EventArgs e)
{
Label1.Text += "current Date and Time is " + DateTime.Now.ToString() +"<br/>";
Label1.Text += "Profile LastUpdate Date is " + Profile.LastUpdatedDate;
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Get Lastupdated Date</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<h2>Last updated Date</h2>
<asp:Label ID="Label1" runat="server" Text=""></asp:Label>
<br />
<br />
<asp:Button ID="Button1" runat="server" Text="Get Last Updated Date"
Width="169px" onclick="update_date" />
<br /><br />
</div>
</form>
</body>
</html>
Code Generate the following output
Langganan:
Postingan (Atom)

