C# (Visual C# & VS.Net) Latest KB Comments

Ordered newest to oldest.
To view comments to your KB Articles, go to your My Knowledge Base page. To view user contributions to your blogs, go to your My Blog page.
 Anonymous
|
|
Regarding...
Getting Website Root Directory in C# ASP.NET
This code shows how to ask the webserver where the site's root directory is, and how to convert a relative path (like /Uploads) to the full filesystem path. This will work across environments (i.e. Development/QA/Production).
|
|
|
 Anonymous
|
|
Regarding...
C# Report Tools Overview
Languages Focus: Report Tools OverviewBuilt-In: Some development tools have a reporting tool built-in and some do not. For example, typically desktop databases such as Paradox and Access have a built-in reporting tool and typically that reporting tool is used with nearly every application built with it. A built-in reporting tool makes development of reports across many clients and applications consistent and therefore easy.
Add-On: Development tools that do not have a built-in reporting tool need to use either a currently bundled report writer, or one of the popular reporting tools that integrates well with the development tool. For example, popular reporting tools include Crystal Reports, ReportBuilder, and MS SQL Reporting Services (tied to MS SQL).C# Report Tools OverviewFor WebForm applications the client target is the browser (a document interfaced GUI), a common solution is to simply output an HTML formatted page with black text and a white background...
|
|
|
 Anonymous
|
Thank you to clear my concept of overriding.---jatin arora
|
Regarding...
C# Overriding (virtual, override)
Where you define or implement a virtual method in a parent class and then replace it in a descendant class.
When you decide to declare a method as virtual, you are giving permission to derived classes to extend and override the method with their own implementation. You can have the extended method call the parent method's code too.
In most OO languages you can also choose to hide a parent method. When you introduce a new implementation of the same named method with the same signature without overriding, you are hiding the parent method. C# OverridingIn C#, you specify a virtual method with the virtual keyword in a parent class and extend (or replace) it in a descendant class using the override keyword.
Use the base keyword in the descendant method to execute the code in the parent method, i.e. base.SomeMethod().
|
|
|
 Wes Peterson
|
Thanks, Bryan, for posting such a useful article. Your writing style is very understandable. Nice work!
|
Regarding...
How to open a URL in a pop-up window.
Every now and then you want a link to open not only in a new browser, but you may want to give the new window the appearance of a pop-up window.
This ASP/Javascript method gives you a lot of control and is easy to figure out and implement.
|
|
|
 markus
|
Great article! I tried to publish one of my applications as ClickOnce and instantly ran into one problem: I am using the configSource parameter in my app.config file to point to another file (dev,test,prod configs) and when running the application it did not find these config files.Similarly, if I skipped this attribute and put all my settings in one config file, it did not find an application style library that is stored in a subfolder "Styles", even though this file and the config files are marked with the "copy always" or "copy if newer" attributes.Is there a way to specify which files (other than application files), can be included in the setup?Markus,
|
|
 ASPGuy
|
Thank you for posting this. Just what I needed.
|
Regarding...
Get all components in an ASPX page recursively
Retrieves an array of all the components of any given type within a starter control (such as a page, table, panel, etc.) This routine is recursive and will keep iterating down until all the embedded components are found.
This C# code can be invoked to produce an array as follows:CheckBox[] myCheckboxes = GetAllCheckboxes(Table1); ,
|
|
|
|