473,371 Members | 1,507 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,371 software developers and data experts.

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
Jun 26 '06 #1
6 9447
"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
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
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
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
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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: David Thomas | last post by:
Hi there, I am trying to store data in a text file and output it to the browser using PHP. All very easy - if I was using English! the problem is, I want to use Japanese and I'm finding it a tad...
1
by: Erik Kullberg | last post by:
I have a text file, produced on a Macintosh. I want to read that file on my PC. Can you tell me how to proceed? / Erik
1
by: Feng | last post by:
I have a web form A that contains a TextBox. A pop up window started by my form A will return a value and put it into the TextBox. What I need to do is that when this happens (when the value gets...
1
by: Saravanan | last post by:
I need to read in a text file as strings and then write some of these strings into another text file. The output file is in the working directory while the input text file is not. how can I...
6
by: arf | last post by:
Hello, i have a problem where i need read dataset from text file and keep them into a vector. e.g. dataset: "0012 0033 00045 0044 0047" Based on this dataset, i need to keep every 4...
3
by: Joh | last post by:
I have a vb.net application where I have a client side html input: <td><input name="CurrentUserStatus" type="text" id="UserStatus" /></ td> Is there anyway I can acces the value of this control...
4
by: parveen | last post by:
Can We read client side files using javascript? not only text files
5
by: memiller | last post by:
I know this generally not recommended, but I'm working in the confines of the company's intranet. Goal: permit managers to load an XML file from thier PC into an intranet ASP.NET webpage where...
2
by: kino | last post by:
Hello, I am supposed to read from a text file a series of numbers and then store them in a struct array. Here's my code: int main() { ifstream In; string folder, filename, name2,...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.