Using VS2005
I am using GridView in my web page, i want to print the gridview values....
How to write a code for the printing the grid view values.....
I want to print the full contents of the gridview by pressing the button.
Can any one provide a code.
...
I have been asked these question in interviews...
1.How iis recognize that which web application we are requesting?
2.How iis recognize that web application is developed in
which language?
Can anyone explain them in detail...
...
I am working on a project where I need to generate approximately 1 billion GUIDs.
I know GUIDs are not guaranteed to be unique but are unique almost all of the time.
If I generated a billion GUIDs, what is the probability that there will be a match?
...
Hello,
I'm having trouble serializing an immutable instance with the DataContractSerializer, since the properties on the class I'm serializing is missing setters. The problem is that I only want to serialize the instance (just so it can be written to a log), and I will never need to deserialize it. Is there a way to bypass this behavior...
How can we show grid lines in the WPFListView control?
...
I know random errors don't really exist in our business, but I've got no clue as to why this method is not working.
In short, this method searches for some properties starting from the root domain. It works great, except that it randomly gives me the following exception:
Error
System.ApplicationException: No
free/busy public fol...
Possible Duplicate:
Breaking changes in .NET 4.0
Does anyone know if there is a complete list with .NET 4 gotcha's and breaking changes?
I found this one: ASP.NET 4 Breaking Changes but I also know that SmtpClient nowadays implements IDisposible and that's something I couldn't find on the page mentioned above.
So is there a c...
I have .net 2.0 application (third party) is window's application(DLL's) -> future plans to move to .net 4.0
.net 2.0 my application(web service /asmx) interacts with above windows application (DLL) . these DLL's are updated frequently every 2 months, so direct reference will not work hence my web service has bindings set in web config...
I have a very, very large unsorted string array and i need to check to see if there are duplicates.
What is the most efficient method of checking this?
...
How would you implement a cache class that supports timeouts using the new Concurrent Collections of .Net 4?
The cache class will be typically holding hundreds of thousands of entries. A very large part of the cache may expire simultaneously.
Unlike a typical web cache, which may shrink due to memory pressure, this class should only a...
Hi,
I'm looking for an IoC container to use in my Compact Framework application. Trying out Funq I noticed that I can't find a way to do Property Injection with it.
I've looked through the discussion on the project's site and the unit tests for it, but I can't find any example of Property Injection.
Does Funq support Property Injecti...
Hi, how do I delete an assembly file after application shutdown? This is not as easy as it sounds, because it is used in my default appdomain. For several reasons I cant simply create a new appdomain and put it there, but app domain solution is not really what I'm looking for anyway since this is complicated and I have a hard time juggli...
I need to write method which returns Image for passed URL or HTML.
Am using WebBroser control to get screenshot, only problem is I am capturing screenshot at documentcompleted event, and I could not do this in single function say 'GetBrowserScreenshot(string html)' cause this event is getting fired asyc (this is what I think).
How to w...
Hi,
How can I retrieve HDD Firmware Serial number in .net? I am able to retrieve HDD Serial number using WMI calls but not able to find any way to retrieve HDD Firmware Serial number.
Thanx in advance
...
Hi,
I want to validate the xml requests received in my WCF webservice. I created business classes by converting the xsd's to code with Xsd2Code.exe (Xsd2Code@Codeplex).
Q: Why does the validator not fire when Element BrancheInfo is null?
Validation functions:
/// <summary>
/// If a servicerequest enters our domain, we have to...
Hello everybody
In my personal project ,i have never used Events.I have never feel it neccesary.Especially using Events create some problems about restriction on methods with same parameters and this is why i haven't used it any.What is benefit of using it ? When time and where we need it ?
Edit: Using Events is more for closed source ...
Question: I have an xml element + attributes, which all need to be in a namespace.
I set the element + all attributes into the namespace oai, and I get:
<oai:room building="AB" rmName="001">
but the XML i need to generate should look like this:
<oai:room oai:building="AB" oai:rmName="001">
Why does it remove the oai namespace in t...
I am using this standard code for populating list of countries:
static void Main(string[] args)
{
List cultureList = new List();
CultureInfo[] cultures = CultureInfo.GetCultures(CultureTypes.AllCultures & ~CultureTypes.NeutralCultures);
foreach (CultureInfo culture in cultures)
{
try
{
Regio...
string basepath = @"C:\somefolder\subfolder\bin"; // is defined in runtime
string relative = @"..\..\templates";
string absolute = Magic(basepath, relative); // should be "C:\somefolder\templates"
Can you help me with Magic method? Hopefully not too complicated code.
Is there the "Magic" method in .NET Framework?
...
How can i create a simple aspx page with a dropdown have two enteries
1. Translate to greek
2. Translae to english
I'll be getting the data from a db table which is in English. While choosing the items from the dropdown the text should change accordingly. How an I achieve this ?
code snippets would be helpful
...