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:620145
More Search Options
RSS Available
Matching Posts
Re: Problem with closing the executed external exe in IIS
OK- I think this article will be of use in that case. HTH
Posted to
Web Forms
(Forum)
by
booler
on 10/9/2009
Re: Conditional statement within a Repeater
If you hook up your repeater's ItemDataBound event, you can do the foloowing in your code-behind: protected void rpt_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { CheckBox chk = (CheckBox)e.Item.FindControl("CheckBoxPaid"); chk.Checked = Convert.ToBoolean(DataBinder.Eval(e.Item.DataItem, "PAID")); } }
Posted to
Web Forms
(Forum)
by
booler
on 10/8/2009
Re: Object reference error by file upload control
Can you post your code...
Posted to
Web Forms
(Forum)
by
booler
on 10/8/2009
Re: Problem with closing the executed external exe in IIS
The code above will open notepad on the web server- not on the client. Is this what you're trying to do?
Posted to
Web Forms
(Forum)
by
booler
on 10/8/2009
Re: line count of uploaded file in vs2005
You could do something like this: int lines = 0; using (FileStream fs = File.Open("file_path", System.IO.FileMode.Open, System.IO.FileAccess.Read, System.IO.FileShare.Read)) { using (StreamReader reader = new StreamReader(fs)) { while (reader.ReadLine() != null) { lines++; } } } Response.Write(string.Format("There are {0} lines.", lines)); If the file is within a virtual directory in your application, then your code should be able to read it. If it's not finding it, check
Posted to
Web Forms
(Forum)
by
booler
on 10/7/2009
Re: Using Response.Write got problem with "
Is there any specific reason you are using Response.Write to write the content to the response stream? ASP.NET has a control object model- you don't need to use Response.Write at all in ASP/NET pages (though it is occasionally useful for debugging purposes). Have a look into using the databound controls such as the GridView. You can find some examples here . However, in VB, when you want to escape a double-quote, you use another double-quote. For example: Dim str As String = "This is ""An
Posted to
Web Forms
(Forum)
by
booler
on 10/7/2009
Re: Upload file from client to server
The Request.Form collection contains all the posted form data. The Request.Files collection contains all the posted files, so you should use this collection instead- e.g: if (Request.Files.Count > 0) { foreach (HttpPostedFile file in Request.Files) { if (file.ContentLength > 0) { //save it } } }
Posted to
Web Forms
(Forum)
by
booler
on 10/7/2009
Re: line count of uploaded file in vs2005
You should ensure that the ASP.NET worker process has read permissions on the Files subdirectory. It should be granted these automatically if the directory is within your project, but sometimes the directory permissions can get in a mess. One easy way to check if the problem is permissions-related is to allow 'Everyone' read access to the subdirectory using the security tab on the directory properties in windows explorer. If this fixes the problem, then you know it is a permissions thing
Posted to
Web Forms
(Forum)
by
booler
on 10/7/2009
Re: Application Pool Timeout Error
The is not an application pool issue, this is a database connection pool issue. Have a look at this thread for more info. HTH
Posted to
Web Forms
(Forum)
by
booler
on 10/7/2009
Re: FileUpload
You could do something like this: using (FileStream fs = File.Open("file_path", System.IO.FileMode.Create, System.IO.FileAccess.ReadWrite, System.IO.FileShare.Read)) { byte[] buffer = null; int bytesRead = -1; while (bytesRead != 0) { buffer = new byte[4096]; bytesRead = this.file1.PostedFile.InputStream.Read(buffer, 0, buffer.Length); if (bytesRead > 0) { fs.Write(buffer, 0, bytesRead); } } }
Posted to
Web Forms
(Forum)
by
booler
on 10/6/2009
Page 1 of 220 (2193 items) 1
2
3
4
5
Next >
...
Last »
Channel 9:
Channel 9 Live at PDC09: Dr Jeff Norris, NASA
Channel 10:
Flickr Drive Integrates Flickr into Windows Explorer
Channel 10:
Playfire: A Growing Network for Gamers
Channel 10:
Find the Top iPhone Apps with Bing (Yes, Really!)
Channel 10:
Xbox to Become Emergency Alert System
Channel 10:
Progression of the Iconic Background
WindowsClient:
ASP.NET AJAX 4.0 Data Binding on MSDN Magazine
WindowsClient:
Don’t miss out..
TechNet Edge:
Improving Collaboration with SharePoint - Tech Focus December 2009 Part 1
Channel 9:
Channel 9 Live at PDC09: Scott Guthrie
Channel 10:
Get Discounted Concert Tickets at the New Windows Section 7
Channel 10:
Get Bing Wallpapers on the iPhone
Channel 10:
Bing Gets a New Toolbar
ASP.NET:
More on medium trust: what permission are you missing?
Channel 9:
Channel 9 Live at PDC09: Bob Muglia
WindowsClient:
Adventures With Windows Azure Diagnostics
Mix Online:
Adventures With Windows Azure Diagnostics
Channel 9:
Channel 9 Live at PDC09: Ray Ozzie
Channel 9:
Coding4Fun: DrinkTendr
Channel 9:
TWC9: Scott Hanselman, John Galloway, Bing, parallel unit tests, more
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online