I'm new at web development with .NET, and I'm currently studying a page where I have both separated codebehinds (in my case, a .CS file associated to the ASPX file), and codebehind that is inside the ASPX file inside tags like this:
<script runat="server">
//code
</script>
Q1:What is the main difference (besides logical matters like ...
I am trying to send a basic email through Google Apps/Gmail using C# (System.Net.Mail/Framework 4) and I am having trouble doing so.
I am receiving the following exception: "The operation has timed out."
My code is below:
//Create the mail message
MailMessage mail = new MailMessage();
//Set the ...
Hi
I'm so impressed by hanselman 's metholodgie ,However he all the time saying "read the code to learn" and I found this way very very cool
That's why ,I'd like to make a cool appilication with C#/WPF but I don't know from where can I begin I've some experience with C# in the console and GDI
The prob is with WPF
which is the best apps...
Task: I have a camera mounted on the end of our assembly line, which
captures images of produced items. Let's for example say, that we
produce tickets (with some text and pictures on them). So every
produced ticket is photographed and saved to disk as image. Now I
would like to check these saved images for anomalies (i.e. compare
them to...
Hi,
I get an IEnumerable which I know is a object array. I also know the datatype of the elements. Now I need to cast this to an IEnumerable<T>, where T is a supplied type. For instance
IEnumerable results = GetUsers();
Type t = GetType(); //Say this returns User
IEnumerable<T> users = ConvertToTypedIEnumerable(results, t);
I now wan...
Hi All,
I have a MDI child Form which displays items that are already in the database. I use a datagridview (PostedItemsDataGrid) to display the items... I also have a Button which enables user to edit the line selected in the datagridview. There are also other controls on the form other than the two controls specified.
I use a panel...
hai consider that my application name is sApp.exe
when i run my application as
sApp.exe < myValue>
my application should start and i want to get that myValue in my application
how i can do this?
...
My current project consists of 3 standard layers: data, business, and presentation. I would like to use data entities for all my data access needs. Part of the functionality of the app will that it will need to copy all data within a flat file into a database. The file is not so big so I can use SqlBulkCopy. I have found several arti...
I have a class with constructor like this:
public UserRepository(IBlockRepository blockRepos)
{
}
and again, I have another class with the constructor like this:
public BlockRepository(IUserRepository userRepo)
{
}
this causes the Windsor error:
Castle.MicroKernel.Handlers.HandlerException: Can't create component 'UserReposito...
I'm using TeamCity to automatically build my solution with msbuild and it seems that .vdproj are not supported. What are my options to build an msi/installer ?
Install Visual Studio on the build server
Use another installer (WiX, nullsoft, innosetup ?)
?!
I already have TeamCity running and building a .zip and I'm looking for the fa...
What are some of the uses of circular buffer?
What are the benefits of using a circular buffer?
is it an alternative to double linked list?
...
i am trying to run the following code :
Excel.Application xlApp;
Excel.Workbook xlWorkBook;
Excel.Worksheet xlWorkSheet;
object misValue = System.Reflection.Missing.Value;
xlApp = new Excel.ApplicationClass();
xlWorkBook = xlApp.Workbooks.Add(misValue);
xlWorkShe...
In this previous question <How to get COM Server for Excel written in VB.NET installed and registered in Automation Servers list?> there is an example of how to create the full path to a registry key using VS 2008. Everything in the previous answer works correctly except the full path that I am setting (using the registry editor in VS) f...
We use OpenFileDialog across our application to select files. So far, we never used Multiselect. We set RestoreDirectory to true so that any time we open the dialog we get the user to the last directory used. If I set Multiselect to true, the directory from which the files are selected is not remembered. The dialog shows the last directo...
Hi all!
I'm currently working on web application using VB in ASP.NET.
Right now I have 1 page with panels that we are using to show/hide depending on the flow. When the user first comes in, he/she is presented with a gridview containing a list of clients. Then the user, clicks a link from a row and is presented a form where he/she can ...
we will develop a web site that will have some free services and we want to make it as a framework that can any build application over it or can use its api in their site ..
Could any lead me in how to start it , what's the better architecture and design pattern help in that , is there any resources discuss or explain how to do like thi...
Does a vc++ exe require the .Net framework to run, or will it run without the framework?
...
The documentation for the .NET Semaphore class states that:
There is no guaranteed order, such as FIFO or LIFO, in which blocked threads enter the semaphore.
In this case, if I want a guaranteed order (either FIFO or LIFO), what are my options? Is this something that just isn't easily possible? Would I have to write my own Semaph...
Hi I found out that my application causes some errors which are logged in an Event log.
It states:
NET Runtime 2.0 Error
EventType clr20r3, P1 *****.exe, P2 1.0.0.0, P3 4b2a572f, P4 system.web.services, P5 2.0.0.0, P6 4889df18, P7 bc, P8 65, P9 system.net.webexception, P10 NIL.
How can I find out what's going on? I've tried tha...
I need to this at runtime. I checked using Reflector and value types line like Int16, for example, should contain
<Serializable, StructLayout(LayoutKind.Sequential), ComVisible(True)> _
Public Structure Int16
Implements IComparable, IFormattable, IConvertible, IComparable(Of Short), IEquatable(Of Short)
Public Const MaxValue As Sh...