<system.web>
<httpRuntime requestValidationMode="2.0" />
<pages validateRequest="false" />
</system.web>
</location> Hopefully this will help
Netferrets Online Blog, Internet Related Programming Solutions, Created in C# .net, VB .net, MS SQL Server Javascript, HTML and CSS. Proving sample solutions to problems found when creating web application solutions.
string date = [YourTwitterDateHere];
DateTime twitterDate = DateTime.ParseExact(date, "ddd MMM dd HH:mm:ss zzz yyyy", CultureInfo.InvariantCulture);
Why they have this format is beyond me, but this is how you can use it for what ever purpose you require in your project. Enjoy!using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TwitterTest;
namespace TwitterControl
{
public partial class TwitterControl : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
// Setup Request
Twitter.ScreenName = "Test"; // This can be any twitter account
Twitter.Count = 20;
// These can be found in your developers seciton of twitter dev.twitter.com and in your applications
Twitter.oAuthConsumerKey = "";
Twitter.oAuthConsumerSecret = "";
Twitter.oAuth_token = "";
// Generate Random Base 64 Code
Twitter.oAuth_nonce = Twitter.generateNonce();
// Signature Method
Twitter.oAuth_signature_method = "HMAC-SHA1";
// Timestamp
Twitter.oAuth_timestamp = DateTime.Now.ToString();
// API Version
Twitter.oAuth_version = "1.1";
twitterRepeater.DataSource = Twitter.RetrieveTweets();
twitterRepeater.DataBind();
}
}
}
<style>
body {
background::#000;
overflow-x: hidden;
overflow-y: scroll;
background-color: #000;
}
#ghost {
background:url(img/ghost.png) transparent;
height:128px;
width:128px;
position:absolute;
left:-128px;
overflow:hidden;
}
</style>
<script language="javascript" src="js/jquery-1.8.2.min.js"></script>
<script>
$(document).ready(function () {
function ghost(div){
$(div).css("left","-128px");
// Fading Start
$(div).fadeTo(5000, Math.random(), function() {
// Animation complete.
});
// Fading End
$(div).animate({
left: "+=" + ($("body").width() + 140),
top: (Math.ceil(Math.random()*500)),
},
5000,
function() {
var randomize = Math.ceil(Math.random() * 10000);
setTimeout(function() { ghost(div)},randomize);
}
);
}
ghost("#ghost");
});
</script>
Take note of where "function() {" is within .animate as it allows you to callback once the animation is completed.<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
AllowSorting="True" AutoGenerateColumns="False" GridLines="None"
DataKeyNames="Category_ID" DataSourceID="CategoryDataSource"
CssClass="table" onrowcreated="GridView1_RowCreated"
PagerSettings-Mode="NextPreviousFirstLast" AutoGenerateDeleteButton="True">
<Columns>
<asp:BoundField DataField="Category_ID" HeaderText="Category ID"
SortExpression="Category_ID" Visible="false" />
<asp:BoundField DataField="Category_Title" HeaderText="Category Title"
SortExpression="Category_Title" />
<asp:CheckBoxField DataField="Category_Visible" HeaderText="Make Visible?"
SortExpression="Category_Visible" />
<asp:CommandField ShowEditButton="true" />
<asp:CommandField ShowDeleteButton="true" />
<asp:CommandField ShowInsertButton="true" />
</Columns>
</asp:GridView>
is disabled for this control.