-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: mavis
Message 3 in Discussion

Dear Keang Loan,

I can answer to question 1. But i am not user with ur second one.

Solution for Que 1
--------------------------
Assumptions
----------------

I assume that u r using <Input type= file runat=server> for selecting ur 
file.
and filechoose is the name of that control.

Sol
----

            strFNWithPath = filechoose.PostedFile.FileName
            strContType = filechoose.PostedFile.ContentType
            strContLen = filechoose.PostedFile.ContentLength
            strFileName = System.IO.Path.GetFileName(strFNWithPath)

            If strFileName = "" Then Exit Sub
                    intPos = InStrRev(strFileName, ".")
                    strImgType = Mid(strFileName, intPos + 1)
                    strImgType = LCase(strImgType)
            end if
------
now strImgType holds the Extension of file name

With regards,

Sadha Sivam S






>From: "KeangLoan" <[EMAIL PROTECTED]>
>Reply-To: "BDOTNET" <[EMAIL PROTECTED]>
>To: "BDOTNET" <[EMAIL PROTECTED]>
>Subject: 2 Questions... Help
>Date: Tue, 23 Dec 2003 17:00:45 -0800
>

_________________________________________________________________
NRI�s, Free Money transfer to India. 
http://server1.msn.co.in/msnleads/citibankrca/citibankrca2.asp?type=hottag 
Click here.


-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to