Jia Hao

1

votes
1

answer
190

views

UIKeyboardWillHideNotification delay in animation

I have registered the two UIKeyboardNotifications (keyboardWillShow and keyboardWillHide) and both are being triggered. The issue comes in when the animation for textfield to move back to the original position only gets fired after the keyboard disappears. Is there anyway to reduce the lag between...
Woo Jia Hao
1

votes
1

answer
0

views

I am currently retrieving the path of the image, how can I retrieve the image itself?

I'm using asp.net so there is no picturebox. protected void lnk_OnClick(object sender, EventArgs e) { int AdvertisementID = Convert.ToInt32((sender as LinkButton).CommandArgument); if (sqlCon.State == ConnectionState.Closed) sqlCon.Open(); SqlDataAdapter sqlDa = new SqlDataAdapter('ViewByID', s...
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
1

votes
1

answer
0

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