473,803 Members | 3,758 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to import text contents from a textfile to a datagrid

2 New Member
I am new to ASP.NET. I am facing a problem to import contents of a textfile to my ASP.NET Web Application datagrid.
Jun 18 '07 #1
2 1836
radcaesar
759 Recognized Expert Contributor
Whats inside the text file. Is the content in text file was formatted in some way ?

Explain.

:)

I am new to ASP.NET. I am facing a problem to import contents of a textfile to my ASP.NET Web Application datagrid.
Jun 18 '07 #2
arunaksha7
2 New Member
The task is that in a Web Application, there will be 2 input text boxes which will be for the user name and the KEYWORD that is to be searched in a text file under that user folder.

Now, if the KEYWORD is found, then in the data grid, I need to display the user name, the keyword and the line in which the keyword has been found as the three columns.
Jun 18 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2029
by: dmiller23462 | last post by:
Hi again guys.... This is my first source of help, by far the best ASP intellectual collective....Thanks in advance for any assistance...Anyway.... The forms I'm still working on (finishing touches) have one issue that I've found in my testing.... I have online submission forms that email to a party and then also append to a plain-text file. I have a link to an "archive" which is
1
2547
by: Larry Rekow | last post by:
I have a report that's created each day as a flat textfile. Because I came from the Access world, I created a macro that imports it with a schema that gives meaningful names to the various columns, and then uses a query to massage some of the data for me (deletes the first blank row and does a couple of calculations) Then I use DTS to import the Access query as a table. the textfile has a column called "File_num", and among several...
4
5297
by: mibispam | last post by:
Hello, I'm trying to import a textfile into an Access table. I want to write a macro to do all the work automatically. My textfile looks like that: artNr;description;sellingValue 111111;top;0.34 The different colums are divided by ";" and the sellingValue is a
1
3135
by: Michael Schindler | last post by:
Ich habe es nun erreicht, ein textfile einzulesen das nun zeile für zeile im datagrid angezeigt wird. Nun wäre es toll wenn ich das textfile zum beispiel nach jedem blank in eine spalte zerstückeln könnte und meine frage hier wie geht sowas? Ich habe nun das ganze mit folgendem code im datagrid, nur zu welchem zeitpunkt zerstückle ich das und meine eigentliche frage wie kann ich das dann in die jeweiligen spalten stellen?
1
3784
by: ghadley_00 | last post by:
Hi, I have a MS access database table for which I regularly need to import fixed width text data. At present I have to to cut and paste the text data from its source to a text file, save the file, import the text file as fixed width text , and then run an update query to copy the appropriate info into fields of a different table. Is it possible to write a macro to do all these steps? Also, is it
3
5431
by: brianwalker | last post by:
hello all. I have a text document that stores text for use in a flash movie. I'm also using PHP to displace the same text on another page. However the text document includes 2 tags for use by the flash movie... title= and &content= ... see text file at end of post .... when i use the php command <?php include ("info.txt"); ?> it also displays those tags. Is there any way to use php to just display what apprars after the &content= in...
9
5792
by: a | last post by:
Dear friends I want import data from CSV file to mdb file How can I do that in vb.net?
5
2331
by: kashif73 | last post by:
i have a text file which has a fixed length lines. How can I update a particular line (record ) basing on a record ID provided? below is my code which retrieves a particular line from the textfile & display it in xtboxes in my update form.: If System.IO.File.Exists(FILE_NAME) = True Then Dim fs As New FileStream(FILE_NAME, FileMode.Open, FileAccess.Read) Dim sr As New StreamReader(fs) Dim Contents As String = sr.ReadToEnd() Dim strSearch...
0
865
by: adarshyam | last post by:
Hi, I am trying to import contents of excel spread sheet to the "dynamic textboxes" that i have created NOT using datagrid. can anybody please tel me how to import the contents into the textboxes that are created like this.. For i As Integer = 0 To numofper - 1 TxtDyn1(i) = New TextBox TxtDyn1(i).ID = "TxtDyn1_" & i TxtDyn1(i).EnableViewState = True ...
0
10546
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10310
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10292
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9121
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6841
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5498
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5627
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2970
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.