Jia Hao

0

votes
1

answer
18

views

How to make endDate's date choose only after startdate's date ASP.NET

I have the current code that make sure the attribute "min" is only today or after. How to make sure that when i choose startDate, I want to make sure enddate is later then the chosen startDate. endDateTb.Attributes["min"] = DateTime.Now.ToString("yyyy-MM-dd"); startDateTb.Attributes["min"] = DateTim...
Jia Hao
0

votes
1

answer
19

views

C# set database to specific data that I want

I am currently trying delete my advertisement. But instead of deleting it from database I just want to set the status from 1 ( which means active ) to 0 (which means inactive). I have tried to use query UPDATE. But I do not know the format. My current code is protected void btnDelete_Click(object se...
Jia Hao