[重新发布]如何用其他值检查标头值 [英] [Re-post] how to check a header value with other value

查看:128
本文介绍了[重新发布]如何用其他值检查标头值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在上传.xls文件.但我想检查文件是否正在上传,包括产品名称和价格(此r 2标头),那么只有它应该上传.否则它不应该...任何人都可以使用vb.net发送代码.这就是我如何上传.xls文件...现在添加下一个代码如何2检查?

请回复
感谢在广告中.



im uploading .xls file. but i want to check whether the file im uploading consist productname and price(this r 2 header), then only it should upload. otherwise it shouldnot....can anybody send the code using vb.net. this how im uploading .xls file... now add next code how 2 check?

please reply
thanks in adv.


Protected Sub UploadBtn_Click(ByVal sender As Object, ByVal e As System.EventArgs)


      If (FileUpLoad1.HasFile And FileUpLoad2.HasFile) Then

          FileUpLoad1.SaveAs("C:\Documents and Settings\Administrator\My Documents\anil\" + FileUpLoad1.FileName)

          Label1.Text = "File Uploaded: "; + FileUpLoad1.FileName

          FileUpLoad2.SaveAs("C:\Documents and Settings\Administrator\My Documents\anil\"; + FileUpLoad2.FileName)
         
 Label2.Text = "File Uploaded:" + FileUpLoad2.FileName

      Else

          Label1.Text =  "No File Uploaded."
          Label2.Text = " No File Uploaded."

      End If

  End Sub

推荐答案

请在此处关注问题:
http://www.codeproject. com/answers/66208/How-to-compare-a-excel-sheet-with-a-value-productn.aspx [
Please follow the question here:
http://www.codeproject.com/answers/66208/How-to-compare-a-excel-sheet-with-a-value-productn.aspx[^]

Please don''t repost the same question.
Thanks.


这篇关于[重新发布]如何用其他值检查标头值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆