Can I use static methods in my ASP.NET Pages and UserControls classes if they don't use any instance members? I.e.:
protected void gridView_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
gridStatement.DataSource = CreateDataSource();
gridStatement.PageIndex = e.NewPageIndex;
gridStatement.DataBind();
}
private ...
I'm wondering if I can create a Property that returns a Dictionary where a user can not add any new items.
Example:
private readonly Dictionary<string, IMyObject> _myDictionary;
public Dictionary<string, IMyObject> MyDictionary
{
get { return _myDictionary; }
}
Now, this should be a "readonly" Dictionary: pe...
Is there are way to uniquely identify a file (and possibly directories) for the lifetime of the file regardless of moves, renames and content modifications? (Windows 2000 and later). Making a copy of a file should give the copy it's own unique identifier.
My application associates various meta-data with individual files. If files are ...
I have the following classes...
public class Order
{
private Guid id;
public Guid ID
{
get { return id; }
set { id = value; }
}
private List<Items> orderItems;
public List<Items> OrderItems
{
get { return orderItems; }
set { orderItems= value; }
}
}
public class Item
{
...
hey
i want to get from facebook
the events that my friends are going to them.
for example
eventId1 (friend1,friend2,friend3)
eventId2 (friend10,friend55);
and so on...
how can i accomplish it ?
thank for replays.
...
Hi Folks.
I've got an Accordion control in my Silverlight app, and I'd like to be able to insert a carriage return in the title of one of the AccordionItems.
I've tried inserting various symbols such as "" and ""... but nothing has worked.
Appreciate any help. Thank you.
...
A user logins into the SharePoint site we have created using their email address and this becomes their username. However this creates a problem for MySites.
When the user creates a MySite the URL it cuts of anything after the @ symbol in the username, so if the users email address is [email protected] the URL to their MySite becomes:
htt...
There have not been any log4net release for some time. This has not presented any problems with 3.5, but what about .NET 4? Has anyone heard any rumblings about a release to support the version 4 framework when it comes out?
...
I need GUI control for audio file presentation. The language is not very important but it should run on windows platform.
I should be able to :-
load the file
play the sound
put and move markers across the audio bar.
it would be nice if it can load itself from RTP wireshark captures (and not wav files).
An example may be seen in ...
I'm drawing a custom diagram of business objects using .NET GDI+. Among other things, the diagram consists of several lines that are connecting the objects.
In a particular scenario, I need to shorten a line by a specific number of pixels, let's say 10 pixels, i.e. find the point on the line that lies 10 pixels before the end point of t...
I have a client WinForm that uses a web service to write to a server database. When it loads, it starts a thread that polls the server for new entries to the database. When found, the new entries are downloaded and stored in a cache (embedded database). The thread flow is as follows:
while(continueSynchronizing)
{
foreach(Table t i...
Hi all,
I am using AJAX toolkit controls like DragControlExtender, AccordianPane etc on my page.
I am plotting the Accordian Div on the map. Now on click of a button I want an another div (draggable, regardless through javascript or by DragControlExtender) should be visible and draggable. It should remain on the top of the google map b...
In Java there is a nice class called Scanner for reading strings and streams of a certain format to data-structures like integers, floats,... Is there any equivalent in Mono? In .Net there is a binary-reader, but it reads the data as binaries. I want a class that read the data by parsing it from a string.
EDIT: reaction on the current a...
It's there a way to invoke a method and the return type is strong typed ?
There is an example of code
public static IQueryable<T> FilterVersion<T>(this Table<T> t, IVersionIndexFilter version)
where T : class
{
try
{
// Define the new type of my table
Type versionTableType = Type.GetType(typeof(T)...
I'm attempting to make use of configuration transformations in a continuous integration environment.
I need a way to tell the TFS build agent to perform the transformations. I was kind of hoping it would just work after discovering the config transform files (web.qa-release.config, web.production-release.config, etc...). But it doesn't....
I am working on a system that is recognizing paper documents using OCR engines. These documents are invoices containing amounts such as total, vat and net amounts. I need to parse these amount strings into numbers, but they are coming in many formats and flavors using different symbols for decimal and thousands separation in the number i...
Hi,
I use classes (autogenerated from a schema) to generate xml documents. It has worked fine, until now, when I need to use inline HTML elements. I've tried several different methods, but as soon as I use the inline HTML, the "<" and ">" gets replaced with %lt; etc.
Example:
<meta>
<name>test</name>
<value>test <br />new row...
HI
What are the pros and cons for using ADO.NET entity model as a data layer? And should i use LINQ if i'm going to use this technology?
Thanks
...
How do you tell if a .Net application is running as a Desktop application or running as a service?
We are trying to test our application with Fitnesse, which loads the app up as a service then makes calls into it.. but when a modal error box is pushed then it blows up.. I want to put a check to see if it is running in a service and if i...
Can Windows find the unmanaged (non-COM) DLLs of a mixed-mode application if these DLLs are not in the application directory or Windows path? I noticed VS 2008 does not appear on the path, and I was wondering how this is done.
...