By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,686 Members | 1,558 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,686 IT Pros & Developers. It's quick & easy.

Read Client Side Text File in ASP.Net?

P: n/a
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
Jun 26 '06 #1
Share this Question
Share on Google+
6 Replies


P: n/a
"dinoo" <di***@discussions.microsoft.com> wrote in message
news:66**********************************@microsof t.com...
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...?
Jun 26 '06 #2

P: n/a
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" <di***@discussions.microsoft.com> wrote in message
news:66**********************************@microsof t.com...
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

Jun 26 '06 #3

P: n/a
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" <di***@discussions.microsoft.com> wrote in message
news:66**********************************@microsof t.com...
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


Jun 26 '06 #4

P: n/a
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" <di***@discussions.microsoft.com> wrote in message
news:66**********************************@microsof t.com...
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


Jun 26 '06 #5

P: n/a
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" <di***@discussions.microsoft.com> wrote in message
news:38**********************************@microsof t.com...
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" <di***@discussions.microsoft.com> wrote in message
news:66**********************************@microsof t.com...
> 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


Jun 26 '06 #6

P: n/a
"dinoo" <di***@discussions.microsoft.com> wrote in message
news:38**********************************@microsof t.com...
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...
Jun 26 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.