User Profile

Collapse

Profile Sidebar

Collapse
siddu1281
siddu1281
Last Activity: Sep 7 '12, 05:45 PM
Joined: Aug 17 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • how to caluclate the days between the two selected dates

    hello friends,

    Iam developing an leave management application. i want to find number of days a member applied the leaves. iam getting error in finding the days between the two selected dates in ajax calender tool kit.

    my error is
    Compiler Error Message: CS0029: Cannot implicitly convert type 'System.TimeSpa n' to 'System.DateTim e'

    my code is


    Code:
    tbStartdate_CalendarExtender.StartDate
    ...
    See more | Go to post

  • Parse the textbox string into datetime, using below line and pass it to SQL server. If your date format is change from below thing, change it accordingly.
    DateTime Startdate= DateTime.ParseE xact(txtfromdat e.Text, "dd/MM/yyyy", System.Globaliz ation.CultureIn fo.InvariantCul ture);

    Thank you
    See more | Go to post

    Leave a comment:


  • how to store date of ajax calender extender from asp.net to sql server

    hiii

    how to store the date of ajax calender extender from textbox to database(sql server 2005).

    how to pass the date inthe following statement
    ExecuteInsert(T extBox1.Text, TextBox2.Text, date);



    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using
    ...
    See more | Go to post

  • siddu1281
    replied to error in execute reader
    my full code which some what i tried to develop

    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Configuration;
    using System.Data;
    using System.Data.Sql;
    using System.Data.SqlClient;
    
    
    public partial class Applying : System.Web.UI.Page
    {
    String connectionString
    ...
    See more | Go to post

    Leave a comment:


  • siddu1281
    started a topic error in execute reader

    error in execute reader

    hello iam getting an error as follows

    ExecuteReader requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated...
    See more | Go to post
No activity results to display
Show More
Working...