I have an excel sheet which contains fields like
employee ID,Employee Name,Email,Phone
and their respective values.
I want to import that excel sheet and then apply data validations to each field.
I have created two folders in my local system, if the validation succeeds then move the excel sheet to first folder and if there is any validation error then move it to second folder.
What i tried is to import the excel sheet in a data table using oledb connection.
The problem is that after that how to do validations. I am implementing the project in asp.net using c#
, if it was a MVC
then I could have added Data Annotations
in model class but i have to implement it in asp.net.
根据您的选择使用 asp.net webforms 身份验证可能是此链接会有所帮助https://msdn.microsoft.com/en-us/library/cc488527.aspx或使用像这样的正则表达式单击此处
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.