Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Read Client Side Text File in ASP.Net?

 
Thread Tools Search this Thread
Old 06-26-2006, 04:08 PM   #1
Default Read Client Side Text File in ASP.Net?


Hi,
I would appreciate if some one could help me out.
I have to read a client side ini file in Aspx page and use that data in
server side processing. Can any one help me out here?

Please refer to a link if possible.

Thanks,
Dinoo


=?Utf-8?B?ZGlub28=?=
  Reply With Quote
Old 06-26-2006, 04:11 PM   #2
Mark Rae
 
Posts: n/a
Default Re: Read Client Side Text File in ASP.Net?
"dinoo" <> wrote in message
news:66D735A8-2CC8-4163-B1F0-...

> I would appreciate if some one could help me out.
> I have to read a client side ini file in Aspx page and use that data in
> server side processing. Can any one help me out here?


Presumably, this is an enclosed environment where every client PC is set up
so that this INI file is in precisely the same location...?




Mark Rae
  Reply With Quote
Old 06-26-2006, 04:26 PM   #3
Ken Cox [Microsoft MVP]
 
Posts: n/a
Default Re: Read Client Side Text File in ASP.Net?
Hi Dinoo,

If the ini file is on the client, you're going to have to use an ActiveX
control inside the browser (and adjust permissions to get it) and then send
the contents to the server. That's messy.

Or, you have to convince the user to upload the ini file using the browser
so the server can process the contents.

Perhaps you could explain more about what you need to do?

Ken
Microsoft MVP [ASP.NET]


"dinoo" <> wrote in message
news:66D735A8-2CC8-4163-B1F0-...
> Hi,
> I would appreciate if some one could help me out.
> I have to read a client side ini file in Aspx page and use that data in
> server side processing. Can any one help me out here?
>
> Please refer to a link if possible.
>
> Thanks,
> Dinoo





Ken Cox [Microsoft MVP]
  Reply With Quote
Old 06-26-2006, 06:48 PM   #4
=?Utf-8?B?ZGlub28=?=
 
Posts: n/a
Default Re: Read Client Side Text File in ASP.Net?
There is a INI file which is shared across applications. One of the
applications would be converted to web applications now and will require the
ini settings details to process the request. Hence I need to read this ini
file at the client and send some of the details to server for further
processing.

Can you recommend a activex control/ code to do this?

If I go for uploading a ini file to server then is there a way that I can
automatically upload the file to the server without user's intervention. The
path is always the same for all the clients.

Thanks,
dinoo

"Ken Cox [Microsoft MVP]" wrote:

> Hi Dinoo,
>
> If the ini file is on the client, you're going to have to use an ActiveX
> control inside the browser (and adjust permissions to get it) and then send
> the contents to the server. That's messy.
>
> Or, you have to convince the user to upload the ini file using the browser
> so the server can process the contents.
>
> Perhaps you could explain more about what you need to do?
>
> Ken
> Microsoft MVP [ASP.NET]
>
>
> "dinoo" <> wrote in message
> news:66D735A8-2CC8-4163-B1F0-...
> > Hi,
> > I would appreciate if some one could help me out.
> > I have to read a client side ini file in Aspx page and use that data in
> > server side processing. Can any one help me out here?
> >
> > Please refer to a link if possible.
> >
> > Thanks,
> > Dinoo

>
>
>



=?Utf-8?B?ZGlub28=?=
  Reply With Quote
Old 06-26-2006, 07:08 PM   #5
Ken Cox [Microsoft MVP]
 
Posts: n/a
Default Re: Read Client Side Text File in ASP.Net?
Hi Dinoo,

I've never needed to do that, so I can help you except to say that a search
on Google for

activex read .ini file

shows quite a few components.

Good luck!

Ken
Microsoft MVP [ASP.NET]


"dinoo" <> wrote in message
news:3843E50D-1B96-4235-B44C-...
> There is a INI file which is shared across applications. One of the
> applications would be converted to web applications now and will require
> the
> ini settings details to process the request. Hence I need to read this ini
> file at the client and send some of the details to server for further
> processing.
>
> Can you recommend a activex control/ code to do this?
>
> If I go for uploading a ini file to server then is there a way that I can
> automatically upload the file to the server without user's intervention.
> The
> path is always the same for all the clients.
>
> Thanks,
> dinoo
>
> "Ken Cox [Microsoft MVP]" wrote:
>
>> Hi Dinoo,
>>
>> If the ini file is on the client, you're going to have to use an ActiveX
>> control inside the browser (and adjust permissions to get it) and then
>> send
>> the contents to the server. That's messy.
>>
>> Or, you have to convince the user to upload the ini file using the
>> browser
>> so the server can process the contents.
>>
>> Perhaps you could explain more about what you need to do?
>>
>> Ken
>> Microsoft MVP [ASP.NET]
>>
>>
>> "dinoo" <> wrote in message
>> news:66D735A8-2CC8-4163-B1F0-...
>> > Hi,
>> > I would appreciate if some one could help me out.
>> > I have to read a client side ini file in Aspx page and use that data in
>> > server side processing. Can any one help me out here?
>> >
>> > Please refer to a link if possible.
>> >
>> > Thanks,
>> > Dinoo

>>
>>
>>





Ken Cox [Microsoft MVP]
  Reply With Quote
Old 06-26-2006, 07:16 PM   #6
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
 
Posts: n/a
Default Re: Read Client Side Text File in ASP.Net?
dinoo,
to be a little more specific, browser security restrictions prevent
client-side code from reading / writing to the client machine's filesystem
(except for cookies and IE userData behavior xml files, if the browser is set
to accept them).

Same with "automatically uploading" - the only way to upload is to present
an HtmlInputFile control and have the user click it's "Browse" button, select
a file, and press the "upload" (submit) button.

If you are still working on digesting this as new information, then it's
unlikely that you are quite ready to author an ActiveX control to perform
these functions, although as other posters have indicated, this is likely
your only choice.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com




"dinoo" wrote:

> There is a INI file which is shared across applications. One of the
> applications would be converted to web applications now and will require the
> ini settings details to process the request. Hence I need to read this ini
> file at the client and send some of the details to server for further
> processing.
>
> Can you recommend a activex control/ code to do this?
>
> If I go for uploading a ini file to server then is there a way that I can
> automatically upload the file to the server without user's intervention. The
> path is always the same for all the clients.
>
> Thanks,
> dinoo
>
> "Ken Cox [Microsoft MVP]" wrote:
>
> > Hi Dinoo,
> >
> > If the ini file is on the client, you're going to have to use an ActiveX
> > control inside the browser (and adjust permissions to get it) and then send
> > the contents to the server. That's messy.
> >
> > Or, you have to convince the user to upload the ini file using the browser
> > so the server can process the contents.
> >
> > Perhaps you could explain more about what you need to do?
> >
> > Ken
> > Microsoft MVP [ASP.NET]
> >
> >
> > "dinoo" <> wrote in message
> > news:66D735A8-2CC8-4163-B1F0-...
> > > Hi,
> > > I would appreciate if some one could help me out.
> > > I have to read a client side ini file in Aspx page and use that data in
> > > server side processing. Can any one help me out here?
> > >
> > > Please refer to a link if possible.
> > >
> > > Thanks,
> > > Dinoo

> >
> >
> >



=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
  Reply With Quote
Old 06-26-2006, 11:32 PM   #7
Mark Rae
 
Posts: n/a
Default Re: Read Client Side Text File in ASP.Net?
"dinoo" <> wrote in message
news:3843E50D-1B96-4235-B44C-...

> There is a INI file which is shared across applications. One of the
> applications would be converted to web applications now and will require
> the
> ini settings details to process the request. Hence I need to read this ini
> file at the client and send some of the details to server for further
> processing.
>
> Can you recommend a activex control/ code to do this?


Apart from what has already been suggested, I would *strongly* suggest that
you take a step back here and consider replacing the INI file with a
server-side solution - maybe a database table or ActiveDirectory...




Mark Rae
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SONY DVD RW DW-G120A SOMETIMES FAILS...... atlantic965 DVD Video 0 06-18-2006 10:36 PM
problems backing up dvds Lawrence Traub DVD Video 11 09-27-2005 07:34 PM
Re: Ripping DVDs. Please answer the attached question. - Question.txt Stan Brown DVD Video 19 02-09-2005 11:19 PM
Burn process failed - help! Log file posted for help troubleshooting Michael Mason DVD Video 1 08-16-2004 09:24 PM
Pioneer A05 Problems Bill Stock DVD Video 8 11-28-2003 05:03 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46