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
});
});
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
4 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Sanjeeb LenkaPosted Oct 10, 2013, 5:37 AM
Maniteja VegiPosted Oct 10, 2013, 4:55 AM
Sanjeeb LenkaPosted Oct 9, 2013, 3:35 AM
try this:
here i am assign the date to textbox.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default7.aspx.cs" Inherits="Default7" %>
Sunny SharmaPosted Oct 9, 2013, 3:24 AM
You need a method to do it using Ajax. Refer to this post and you'll learn how to do it:
http://trentgardner.net/net/asp-net-webmethods-with-jquery-and-ajax/
Happy Learning :)