Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 29th, 2005, 01:57 AM
Authorized User
 
Join Date: Feb 2005
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to kumarop
Default How to get test.doc from string

Dear All,
How to get test.doc from following string

"Files uploaded:test.doc (54326B)"

File size and file name may vary dynamically,and I have to pick file name with ext from them.

Regards


om prakash kumar
__________________
om prakash kumar
 
Old March 31st, 2005, 12:37 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

There are two approaches:

1. You can use regular expressions
2. "Files uploaded:test.doc (54326B)" - Split the content with colon and space and get the file name.


Om Prakash
 
Old March 31st, 2005, 03:05 AM
Authorized User
 
Join Date: Feb 2005
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to kumarop
Default

Hi Om,
thanks for reply,i too have done it like that,I thought there should be some other method? it is working fine.

Regards

om prakash kumar





Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating XML doc ; writing string(xml format) into KamalRaturi XML 5 May 28th, 2008 05:51 AM
How to pass query string into doc.SelectSingleNode vishnu108mishra XML 2 November 7th, 2007 06:15 AM
Test mikedeepak Classic ASP Professional 0 October 30th, 2007 01:30 AM
Working on Doc Array inside another Doc Array? chriscym XSLT 5 April 4th, 2007 05:56 AM
Copy text from 1 doc to other doc thru vba in word itchock Word VBA 2 December 29th, 2006 02:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.