From my previous experiences , what i have found out is that sometimes we need to disable the previous and coming dates in a calendar control. So finally i thought to post it out. It goes like this....,
protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
{
if (e.Day.Date< DateTime.Today)
{
e.Day.IsSelectable = false;
e.Cell.ToolTip = "This date is not available";
}
else if (e.Day.Date> DateTime.Today)
{
e.Day.IsSelectable = false;
e.Cell.ToolTip = "This date is not available";
}
}
Keep rockiin........
8c3ab124-55a3-4dff-88c1-bc924faa4334|0|.0
Tags:
asp,
asp.net,
c#,
disable dates,
calendar
Categories:
ASP.NET
Posted by Talib on July 9, 2009 23:28
Actions:
E-mail |
Permalink |
Comment RSS
If your website contains sensitive data and you don't want any spamming or any malicious use of your website ,then one thing you can do is to keep a track of the visiting user's system IP and this can be done in some easy steps given below,
string strHostName = System.Net.Dns.GetHostName();
string clientIPAddress = System.Net.Dns.GetHostAddresses(strHostName).GetValue(0).ToString();
Now set the value of clientIPAddress to either a Textbox or label or any control as per your requirement.
6f4cce80-5e41-420f-93e9-cd1425067d06|2|4.5
Tags:
asp,
asp.net,
.net,
ip,
detecting,
address,
user
Categories:
ASP.NET
Posted by Talib on July 9, 2009 23:26
Actions:
E-mail |
Permalink |
Comment RSS
I hope that every one has thought of using the infamous Google Search in their projects/applications but couldn't figure out as to how to do this..
Fine... now you can integrate Google Search into your applications..
Check out the below article and figure out the truth..
http://www.communitymx.com/content/article.cfm?page=1&cid=E8E8CE970C6AB073
Happy Programming. :)
80b3c693-21ea-4117-a908-518134b74d0f|1|5.0
Tags:
google,
search,
asp,
asp.net,
c#,
vb
Categories:
ASP.NET
Posted by Talib on July 9, 2009 23:25
Actions:
E-mail |
Permalink |
Comment RSS
This has been a question of concern for quite sometime now.. So to solve the issue , i suggest you to have a look at the below article .
Hope you like it . :)
http://encosia.com/2008/04/16/why-do-aspnet-ajax-page-methods-have-to-be-static/
3db410ca-14f6-4b3d-9d8f-5ae550c9ed4c|0|.0
Tags:
asp,
asp.net,
ajax,
page,
.net,
static
Categories:
AJAX
Posted by Talib on July 9, 2009 23:24
Actions:
E-mail |
Permalink |
Comment RSS