You can consider EF to be your "data tier" so there is no real need to create your own. You'll see lots of projects that look like this
public Person GetPerson(int id)
public Person AddPerson(Person person)
if your entire data tier is a list of single-line functions that simply "pass through" to EF then your tier is fairly redundant. The exception to this would be if you didn't want to tie your business tier to EF, and in that case you would probably give access to EF via a repository pattern rather than direct.
Are you really meant to convert the DataTable to byte array? Or by any chance you want to convert the field's content?
Change GetData so it will return only the data you need, something like this:
Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.
Your code is vulnerable to SQL Injection[^]. NEVER use string concatenation to build a SQL query. ALWAYS use a parameterized query.
Also, you won't have a control called imgss at the page level. The control is defined within a data-bound list; once the list is data-bound, there will be one copy of the control for each item in the list.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
I am working in asp.Net with c# Language. I am using Date Time Picker with Text Box. If i am pick the Text Box date time picker is show in first time after Refresh the page date time picker is not shown again.(Note:I am using master page).