Skip to content
Loading


0
  • Raja T
    0
    Hi, Please change id for dropdownlist like . Y means DropDownList this already given id it is DropDownList class(reserved keyword )not use in ids. Id is unique in a form..
    0
  • 0
    so i have to just remove the 'ID' ?
    0
  • Raja T
    0
    No no just change id as DropDownList1
    0
  • 0
    sorry i dont understand.. can u write the code? thanks
    0
  • Raja T
    0
    Sure Please wait
    0
  • 0
    Thank you so much Raja. I have one more problem. How do i insert date into the database?
    what is the datatype for the database? and the code using Calendar in visual studio 2012. 
    0
  • Raja T
    0
    If this is helpful for you then please accept my Answer.
    0
  • Raja T
    0
    In ASPX page create one Calendar control . After that in code behind page get the seleted date value Calendar1.SelectedDate.ToShortDateString().
    0
  • Raja T
    0
    Please change datatype as DateTime in table for Date column...
    0
  • 0
    sure i have accepted your answer.. i will now try the Date in database. hold on.
    0
  • Raja T
    0
    Thanks :)
    0
  • 0
    using my previous codes, how to i add the date into the database?
    0
  • Raja T
    0
    Are you added calendar control in your aspx page?
    0
  • Raja T
    0
    Done?
    0
  • Raja T
    0
    Hi,drag and drop the calendar control in your design page(aspx page) from toolbox. After that in your code behind change like cmd.Parameters.AddWithValue("@Date", Calendar1.SelectedDate.ToShortDateString());
    0
  • Raja T
    0
    Are you clear? If you facing any error back to me..
    0
  • 0
    hi thank you i got. it worked! thank you so much! can u give me your email address? if i have any questions i can ask u directly next time! thank u so much!
    0
  • Raja T
    0
    Hi, Thanks for the appreciation.... All the best :)
    0
  • 0
    hi raja, youre welcome. Can you also teach me how do i upload picture to the database.. also using the above code. thanks
    0
  • Raja T
    0
    Hi Rajveer, Please create new thread/link for this question. :)
    0
  • 0
    hey i have created please check thanks
    0
  • Raja T
    0
    Hi,Sure i will check
    0