Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:58018
More Search Options
RSS Available
Matching Posts
Re: Reading & Writing All Files of a Directory
Thank you! You both helped me a lot. I was able to achieve my goals with the DirectoryInfo and FileInfo classes. =] Thanks again!
Posted to
Getting Started
(Forum)
by
Daniel P.
on 7/16/2004
Reading & Writing All Files of a Directory
Hi, I'm having a problem - here's the description: I would like to create an image gallery (more or less). I have a folder and in it, there are x files (x = a random number), for example, 46 JPG files. I want my ASP.NET (C#) file to read all the files in that directory and write them to the user's browser. In this special case, the user would see 46 JPG files. The files have absolutely random names, but they all end with ".jpg". I know that I maybe need to use the DirectoryInfo, FileInfo
Posted to
Getting Started
(Forum)
by
Daniel P.
on 7/14/2004
Re: ASP vs CF
In this special case, I agree. Maybe ColdFusion is newer - I don't know, just a guess - and thus has better support in this case. However, you cannot generally say that ColdFusion code looks much easier than ASP code. It really depends on what you would like to do/achieve/develop.
Posted to
Getting Started
(Forum)
by
Daniel P.
on 7/6/2004
Re: How to retrieve the last char of in string?
This would be even shorter: string str = "test 123"; str = str.Substring(str.Length-1);
Posted to
Getting Started
(Forum)
by
Daniel P.
on 3/18/2004
Re: httpRequest
That is because eventually, there is no UrlReferrer. For instance, if you open a new browser window and visit a website, there is no referrer. Only if you're coming from a website and visit a new one, there's a referrer.
Posted to
Getting Started
(Forum)
by
Daniel P.
on 3/17/2004
Re: Checking for broken tags
This makes it a bit more complicated, but I'll try to answer your questions 1) and 2) anyway using the following code example: private void Button1_Click(object sender, System.EventArgs e) { string inputText = TextBox1.Text; string formattedText = string.Empty; Regex regex = new Regex(@"(?<l>.*)\[quote source='(?<qb>.+)'](?<qt>.+)\[/quote](?<r>.*)"); MatchCollection matchCollection = regex.Matches(inputText); foreach(Match match in matchCollection) { Label1.Text
Posted to
Getting Started
(Forum)
by
Daniel P.
on 3/16/2004
Re: How do I add a second parameter to this URL?
Alternatively, this works:<code>addToCart.NavigateUrl = "AddToCart.aspx?ProductID=" + ProductID + "&"Sizes=" + Sizes; Colt's method is definitely better for your eyes. :)
Posted to
Web Forms
(Forum)
by
Daniel P.
on 3/16/2004
Re: Foreign characters
Try UTF-8 encoding in your meta tag.
Posted to
Web Forms
(Forum)
by
Daniel P.
on 3/16/2004
Re: what's the different from "<page src="">" and "<page codeBehind="">"
You can set a new value for the Session Timeout in your web.config file. Or, you can do it in a page through this property: Session.Timeout Note that if you choose the second method, the timeout will only be modified on this page, but not on others.
Posted to
Web Forms
(Forum)
by
Daniel P.
on 3/16/2004
Re: session destroyed when oledbconnection opens
What happens if you use this code: Session.Add("test", "created"); instead of Session["test"] = "created"; ?
Posted to
Web Forms
(Forum)
by
Daniel P.
on 3/15/2004
Page 1 of 6 (57 items) 1
2
3
4
5
Next >
...
Last ยป
WindowsClient:
Tale of two tweets - VS beta - is it busy 70% of the time or is it brilliantly fast?
Mix Online:
Using the HTML5 Video and Audio Tag with Gestalt
WindowsClient:
Subclassing Shape (or more accurately, Path)
WindowsClient:
Having trouble deleting files? Try this
Channel 9:
Nick Baker: Xbox Architecture
TechNet Edge:
Thrive Live! Behavioral Interviewing: A behavioral answer is always the correct answer
ASP.NET:
PDC and Tech-Ed Europe Slides and Code
WindowsClient:
JScript location bar silliness
WindowsClient:
Anybody build a XAML parser in C or C++ yet?
WindowsClient:
Silverlight use, power and deployment keeps growing; so does WPF
ASP.NET:
T4CSS: A T4 Template for .Less CSS With Compression
WindowsClient:
JSON-P: An Elegant Hack
Channel 9:
Photosynth Update and New UI
Channel 9:
First Look: Streetside in Bing Maps
Channel 9:
Coding4Fun at PDC 2009
WindowsClient:
10 Must-See PDC 09 Sessions
Channel 10:
Photosynth Updated with New Release and New UI
Channel 10:
WindowsBlinds 7 Now Works with Windows 7
Channel 10:
Zune HD Launches New Colors
ASP.NET:
PDC09: ASP.NET MVC 2: Ninjas Still on Fire Black Belt Tips
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online