4
Answers

How to Upload Datepicker value in sql server and asp.net

Maniteja Vegi

Maniteja Vegi

11y
2.2k
1
Hi i'm stucked in here 
i'm using ajax date picker for my contact page please 
tell me how to upload date picker value in sql server 
  
 $(function () {
           $("#datepicker").datepicker({
               showOn: "button",
               buttonImage: "images/calendar.gif",
               buttonImageOnly: true
           });
       });

<input type="text" id="datepicker" />    
<asp:TextBox ID="TextBox1" runat="server" ></asp:TextBox>


aspx.cs file

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;

public partial class Mani : System.Web.UI.Page
{
    public string sqlconnectionstring = ConfigurationManager.ConnectionStrings["AJAXConnectionString"].ConnectionString;  
protected void Page_Load(object sender, EventArgs e)
    {        
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        SqlConnection conn = new SqlConnection(sqlconnectionstring);        
        conn.Open();
    }
}


please help me in this 


Answers (4)
Next Recommended Forum