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:25340
More Search Options
RSS Available
Matching Posts
Re: How can I pass a null value for an integer (value type) parameter and then check if this integer parameter is null?
If you are using .NET 2.0 you can use nullable types. All you have to do is declare you int as int? instead. The nullable type will give you some extra properties you don't have with a strict value type. For instance you can do the following: int? mID = null; if(mID.HasValue) { ProductService.GetAllProductsByID(mID.Value); } If you aren't using .NET 2.0 then you can use the MinValue of whatever value type you are using. Technically there is a risk that the following method is unsafe code
Posted to
Visual Basic .NET
(Forum)
by
drazz75
on 8/9/2007
Re: Deleting a file
Well you wouldn't do this with a Webservice, you would want a Windows service. You can schedule windows services to run automatically. Here's an article on writing windows services.. http://www.developer.com/net/csharp/article.php/2173801 Just a word of caution, keep all of your business logic out of the service project. Windows services are very difficult to debug. If you have a class that does all the work and you just call one method on that class to do all that you need then you can wire
Posted to
Web Forms
(Forum)
by
drazz75
on 8/9/2007
Filed under: Windows Service
Re: Deleting a file
There are many ways to approach this problem. One way I would consider is to write a simple windows service that cleans up this folder on a schedule.
Posted to
Web Forms
(Forum)
by
drazz75
on 8/9/2007
Re: Copy any URL page data to your data base
Can you restate your question another way? I am having trouble understanding what you are trying to do...
Posted to
Web Forms
(Forum)
by
drazz75
on 8/9/2007
Re: Delete file from folder....
you want to use the FileInfo class in System.IO. This is pseudo code, but it goes something like this.. FileInfo file = new FileInfo(@"C:\SomeFileToDelete.txt"); if(file.Exists) { file.Delete(); } That should do it...
Posted to
Web Forms
(Forum)
by
drazz75
on 8/9/2007
Filed under: System.IO, delete file, FileInfo
Re: Wrapping table columns to fit on one page
Instead of trying to do this with tables, you could achieve the desired effect by using a series of DIVs and setting the container DIV to a class that uses the CSS float:left property. This will stack as many DIVs next to each other as long as there is room on the screen. Should you have left over DIVs they will break to the next line... this will make your layout liquid as well.
Posted to
SQL Server Reporting Services
(Forum)
by
drazz75
on 8/7/2007
Re: LinkButton Post back
The standard approach which you suggest here is ususally the right way, but won't work in your situation. The browser decides what links have been visited by looking at the browsing history. Since this is an ASP.NET postback the link in the href of your anchor tag is to a JavaScript function. Therefore the browser can't tell if you have been to that link or not. The best way to achieve your desired result is to assign the control a .visited class that you can create on post back. HTH, Craig
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
drazz75
on 8/7/2007
Re: External Folder Access..
What do you want to do in this folder, read and write or just read data? Where did you set impersonation to true? When you use impersonation you have to provide a set of credentials to pass as the impersonation...
Posted to
Getting Started
(Forum)
by
drazz75
on 8/7/2007
Re: ASP Page contents loses position in Firefox
What is generating the reports? Perhaps the CSS being rendered is targeted toward IE only...
Posted to
Getting Started
(Forum)
by
drazz75
on 8/7/2007
Re: Proper way to populate a DDL with n-tier architecture?
There's an old saying that goes something like, "If you dare to ask for the proper way to do a thing, expect to get 5 answers from the 4 people you ask." I like the method of having a class that will handle talking to your data access classes to get the data from the database and then return the collection up to the user interface. Taking abstraction even a step further I like to use a class I call DataSourceContainer which contains the data source, DataTextField value and the DataValueField
Posted to
Architecture
(Forum)
by
drazz75
on 8/7/2007
Page 1 of 21 (202 items) 1
2
3
4
5
Next >
...
Last »
Channel 9:
Channel 9 Live at PDC09: Dave Campbell
Channel 9:
Channel 9 Live at PDC09: Yousef Khalidi
Channel 9:
Twitter App for Zune Launches
WindowsClient:
Incarnate
WindowsClient:
Track Fedex packages with Bing
Channel 10:
Twitter App for Zune Launches
WindowsClient:
Rotate your text in the WPF DataGrid Column Headers
WindowsClient:
New gameplay video with D&D on Surface
WindowsClient:
ViewModel Pattern and Speech as UI. Help me Obi Wan, where’s the View?
Channel 9:
Karsten Januszewski and Tim Aidlin: Introducing Incarnate
Channel 9:
Reactive Extensions API in depth: Retry
Channel 10:
iBing uBing: Bing iPhone App Arrives
WindowsClient:
Migrating an Outlook Client to .NET Framework 4 in Visual Studio 2010
Channel 10:
A Look Behind Mouse 2.0
WindowsClient:
Using Speech Synthesis in .NET 4 and Windows 7
Channel 10:
Office 2010 "5 Rules" Presentation
Channel 10:
30% off Expression Web 3 until Dec 28th
ASP.NET:
Live Preview jQuery Plugin
WindowsClient:
Remember JScript closures capture all variables in scope
TechNet Edge:
UAG reaches RTM
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online