Search

You searched for the word(s): userid:790684

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 ยป