473,386 Members | 1,748 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,386 software developers and data experts.

File Manipulation

Hi,

I am having number of files in directory. Intially i want to load the first file without passing query string, with the first file there should have next file link. Once the next link button is clicked then only have to pass the query string.

how to pass the query string from second file to end of the file,

DirectoryInfo oImageFolderInfo = new DirectoryInfo(this.ImagePath);
FileInfo[] oFileList = oImageFolderInfo.GetFiles("*.*");


string fileName=string.Empty;

if (Request.QueryString["filename"] != null)
{
fileName=(Request.QueryString["filename"]);

}

else
{
fileName = oFileList[0].Name;
}

HtmlImage imag = new HtmlImage();
imag.Src = Url + fileName;


HtmlAnchor nextAnchor = new HtmlAnchor();
nextAnchor.Href=??
nextAnchor.InnerText = "Next>>";

HtmlAnchor prevAnchor = new HtmlAnchor();
prevAnchor.Href=??
How to proceed this same upto reaching the end of the file?
Mar 25 '11 #1
0 988

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

Similar topics

6
by: Paul Moore | last post by:
Does anyone know of a Python library which handles sound file formats (MP3, Ogg, FLAC are the three I'm nost interested in). I'd like something that can manipulate "metadata" - stuff like artist,...
1
by: Darren | last post by:
Hi All, could anyone PLEASE halp me, i'm very new to c++, but i need to do the following: open data file read file from X to Y create a new file called X.txt write data inbetween X and Y...
3
by: Chad | last post by:
I was wondering what the best method of updating a file was. heres my prob, ive got a file with say 1million urls and I want to take the first 10,000 and store them in memory. I want to 10k of...
9
by: Alexandre | last post by:
Hey im serializing objects to files am i forgeting something it works great but once they are written i dont have access to deleting them or overwriting them.. my folder properties are everyone...
0
by: Sean Grebey | last post by:
I have multiple generations of a flat file database that I need to compare and update to show were rows have been added, updated, or deleted. Anybody have any thoughts on the best way to go about...
1
by: ma740988 | last post by:
Trying to some of my reading on file manipulation (ifstream/ofstream/fstream) into action. So now consider. # include <iostream> # include <fstream> # include <cstring> # include <sstream> ...
2
by: PFI | last post by:
Hi, I recently installed SQL Server 2005 Enterprise Edition (9.0.1399) and I have problems on queries concerning system file manipulation... For example, when I try to increase the Log File of...
4
by: magix | last post by:
Dear Guru, I'm not so good in file manipulation, but would like to seek for help here. I have following basic code of command line argument as starting point (the code below output the...
4
by: for.fun | last post by:
Hi all, I have a really short time to perform a C++ development task and I need to : - find some string in a file - move some text data from one place of the file to another - replace some...
1
by: ritesh247 | last post by:
I am using a text file in the form of 200 columns and 4 rows i.e 4 5 6 7 3 4 5 6 an so on.. i tried using: openfile =open("variables.txt") for item in openfile:
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
0
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...

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.