Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:790684
More Search Options
RSS Available
Matching Posts
Re: why does this loop thru twice when a user selects a radio button?
Check whether ur calling the method you want to bind else where , Put all ur binding code in if(!Page.IsPostBack) { } check whether u have declared multiple handles for the radio buttons
Posted to
Getting Started
(Forum)
by
rajeshthangarasu
on 6/2/2009
Re: Convert a string to a date format
This code is Working: string input_Date = "20090731"; string output_Date = (DateTime.ParseExact(input, "yyyyMMdd", null)).ToString("MMM-dd-yyyy");
Posted to
Getting Started
(Forum)
by
rajeshthangarasu
on 6/2/2009
Re: hiiiiiiiiiiiiiiiiiiiii
Try this code for updating: public DataSet CreateCmdsAndUpdate( string connectionString, string queryString) { using (OleDbConnection connection = new OleDbConnection(connectionString)) { OleDbDataAdapter adapter = new OleDbDataAdapter(); adapter.SelectCommand = new OleDbCommand(queryString, connection); OleDbCommandBuilder builder = new OleDbCommandBuilder(adapter); connection.Open(); DataSet customers = new DataSet(); adapter.Fill(customers); //code to modify data in dataset here adapter.Update
Posted to
Getting Started
(Forum)
by
rajeshthangarasu
on 6/4/2008
Re: error while sending mail in asp.net 2005
Try this code: protected void Button1_Click(object sender, EventArgs e) { System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage(); System.Net.NetworkCredential cred = new System.Net.NetworkCredential("rajesh.thangarasu@gmail.com", "urpassword"); mail.To.Add("rajesh.agf@gmail.com"); mail.Subject = "subject goes here"; mail.From = new System.Net.Mail.MailAddress("rajesh.thangarasu@gmail.com"); mail.IsBodyHtml = true; mail.Body = "This
Posted to
Getting Started
(Forum)
by
rajeshthangarasu
on 6/4/2008
Re: IsPostback
Page.IsPostBack - Gets a value indicating whether the page is being loaded in response to a client postback, or if it is being loaded and accessed for the first time. Ispostback means in the time of page load its property is false so in the time of button submission or clicking only its property is true and the page can display if the page is being loaded and accessed for the first time ( IsPostBack returns false ), or if the page is being loaded in response to a client postback ( IsPostBack returns
Posted to
Getting Started
(Forum)
by
rajeshthangarasu
on 6/4/2008
Re: Calendar Control - Formatting String
Try this code: protected void Calendar1_SelectionChanged( object sender, EventArgs e) { TextBox1.Text = Calendar1.SelectedDate.ToString( "MMMM dd,yyyy" ); }
Posted to
Web Forms
(Forum)
by
rajeshthangarasu
on 6/2/2008
Re: Prevent user from going back
Try this out: <head runat="server"> <script language="javascript" type="text/javascript"> function prevent_previous_page_return() { window.history.forward(); } </script> </head> <body onload="prevent_previous_page_return()"> I also add the following in the code-behind: Response.Buffer = true; Response.ExiresAbsolute = DateTime.Now.AddDays(-1d); Response.Expires = -1500; Response.CacheControl = "no-cache"; Response.Cache
Posted to
Web Forms
(Forum)
by
rajeshthangarasu
on 5/31/2008
Re: Prevent user from going back
Try this out: Protected void Page_Init(object Sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetExpires(DateTime.Now.AddDays(-1)); }
Posted to
Web Forms
(Forum)
by
rajeshthangarasu
on 5/31/2008
Re: error message when sending email through gmail
This code is working: protected void Button1_Click(object sender, EventArgs e) { System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage(); System.Net.NetworkCredential cred = new System.Net.NetworkCredential("rajesh.thangarasu@gmail.com", "urpassword"); mail.To.Add("rajesh.adsa@gmail.com"); mail.Subject = "subject goes here"; mail.From = new System.Net.Mail.MailAddress("rajesh.thangarasu@gmail.com"); mail.IsBodyHtml = true; mail.Body
Posted to
Web Forms
(Forum)
by
rajeshthangarasu
on 5/31/2008
Re: validation
This code is working: protected void Page_Load(object sender, EventArgs e) { Button1.Attributes.Add("onclick", "javascript:isNumeric();"); } JavaScript: <script type="text/javascript"> function isNumeric(){ var numericExpression = /^[0-9]+$/; var str=document.getElementById('TextBox1').value; if(str.match(numericBLOCKED EXPRESSION { return true; } else { alert('Only Numbers'); elem.focus(); return false; } } </script>
Posted to
Web Forms
(Forum)
by
rajeshthangarasu
on 5/31/2008
Page 1 of 26 (254 items) 1
2
3
4
5
Next >
...
Last ยป
ASP.NET:
Microsoft AJAX CDN โ Now with SSL Support
Channel 9:
TWC9: XAML tools, Silverlight for Live Writer, Surface SDK,
ASP.NET:
PDC09 Talk: Building Amazing Business Applications with Silverlight 4, RIA Services and Visual Studio 2010 โ Now in Visual Basic!!
Channel 9:
C9 Conversations: Brian Beckman on Complexity [C9 Conversations: Brian Beckman on Complexity]
Channel 10:
Black Friday Deals on Windows 7 Machines
Channel 10:
Holiday Shopping on Bing Cashback = Big Online Savings
Channel 10:
Black Friday Deals at the Microsoft Store
Channel 10:
Incredible Black Friday Deal: Windows 7 Notebook for $197
ASP.NET:
Presenting in Europe Next Week
TechNet Edge:
AlignIT IT Manager Podcast #30 - Straight Talk about Windows 7
WindowsClient:
You know your post rate has gone down...
Silverlight:
Geek Profiles โ Scott Guthrie
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 9 of 13
TechNet Edge:
Managing Your Virtual World - Tech Focus November 2009 Part 2
ASP.NET:
Silverlight and RIA Services: Implementing Search
Channel 9:
C9 Lectures: Brian Beckman - Covariance and Contravariance in Physics 1 of 1
Channel 9:
Set Your Data Free
Channel 9:
Implementing a Silverlight SharePoint WebPart with Visual Studio 2010
WindowsClient:
New WPF Showcase Addition: Enterprise
Channel 9:
Reactive Extensions API in depth: Contract
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online