System.Web.UI.WebControls.FileUpload uses a FileInputStream when uploading files. Does this store everything in memory when uploading or does it start writing to disk after a certain buffer size has been filled?
I know it used to work like that years ago, but I would think that has changed now... Can't find it in the docs though.
...
I am good at coding in .NET and I build some my own websites when I am free. Also I want to start a small organization for software development.
In recent days I have found so many open source technologies like NOSQL, HBase, MapReduce and other stuff that support to build scalable applications.
Is it good to learn completely new techno...
Hi,
Can someone guide on how to build and run a simple email form in asp.net ? I just want to provide a textbox for the body on the website and a submit button below it. I however want to be able to wire the submit button such that it sends an email notification and also copies the contents of the email to a database. Detailed help woul...
I would like to pull data from my server and add to a table object. Loop thru the data afterwhich I would like to display the results on the aspx page.
DataTable dTable = new DataTable();
dTable.Columns.Add("idNum", typeof(Int64));
dTable.Columns.Add("Name", typeof(String));
dTable.Columns.Add("Age", typeof(Int64));
//Connection/Comma...
I have a GridView which selectively binds to one of two ObjectDataSources. I make the switch in the Page_Load by setting GridView.DataSourceID. One of the data sources has parameters which refer to ControlIDs which don't always exist. Even if it's not set as a DataSourceID, the data source tries to get the values for the ControlIDs, t...
I have just read about this article about Code Access Security. It has such an example in it:
using System.Security.Permissions;
public class MyFileAccessor
{
public MyFileAccessor(String path, bool readOnly)
{
path = MakeFullPath(path); // helper fcn
FileIOPermissionAccess desiredAccess = readOnly
? FileIOPermissionA...
We have a java desktop application that uses JAXB to generate an XML file which is then read by a .Net application and stored in a SQL server database.
We're finding that carriage returns in Java and not coming over as carriage return/line feeds in .Net/SQL.
Is there a way to tell Java or Jaxb to include both the carriage return and li...
I have an XSD:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://a.com/a.xsd"
targetNamespace="http://a.com/a.xsd"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:element name="A">
<xs:complexType>
<xs:sequence>
...
I have basically to select all employee from companies which are being passed so a variable -
CompanyListIds - Contains list of all company ids..
var result=DataContext.Employee(e=>e.CompanyId==companyId).ToList();
The above is a query I have for selecting from one company, now how would I modify it to compare with all the companyi...
Hi, I am newbie in C#. How can I create http(s) post, get request on server with TcpClient.
I don’t use HttpWebRequest class. Any good example? Thank you
But, I will use SOCKS proxy, such as TOR. I need used this library starksoft.com/prod_proxy.html, and this library works with TcpClient.
...
does a DLL(dynamic linking library) contains more than one class? if it contains how to get the classes and their methods separately in .net in c#
...
I want to use the Silverlight DataGrid to show notes. When they select an item in the grid I am going to show the note in a different area of the screen. However, I am hoping to also do something similar to Outlook AutoPreview, where the first few lines of the note are shown beneath each row in the grid.
What is the best way to accomp...
Has anyone successfully complied the Apache FOP v1.0 library to a .NET DLL? I am using the IKVM syntax found at http://onjava.com/pub/a/onjava/2004/08/18/ikvm.html; however, the compiled DLL seems to be incomplete. For example, I cannot instantiate FopFactory object as:
using org.apache.fop.apps;
namespace Utils
{
public class P...
I have been given an old dll and the assignment of accessing it through C# .NET 3.5. I believe the dll was originally built with VB6, but am not positive. There is no documentation or source for the dll aside from an example for how to use the it in VB6. I have been able to succesfully access it through VB.NET 3.5. Example code for acces...
I'm writing a small command line utility whose purpose is to parse the output of another utility. I want it to be invokable in two ways:
c:\> myutility filewithoutput.txt
Or,
c:\> otherutility -args | myutility
So, basically, standard in or a file argument. My first attempt at this looked like this:
TextReader reader;
if (args.Le...
Hi i have a problem in mailing in the C#.net. I want to mail to the email address but i do not want to open the Outlook. Is there any procedure to do this. Please help to mail in c#.net.
...
I'm generating a WCF service using the message contract model.
I have created a generic request message contract like so:
[MessageContract]
public Request<T>
{
[MessageBodyMember]
public T Details { get; set; }
}
I'm used to using [DataContract(Name="Contract{0}")] to produce readable names for generic data contracts, but thi...
Unhandled Exception: System.IO.FileLoadException: Could not load file or assembl
y 'TheLibrary, Version=1.2.3905.36284, Culture=neutral, PublicKeyToken=14
04827c3a8f2601' or one of its dependencies. The application has failed to start
because its side-by-side configuration is incorrect. Please see the application
event log for more detai...
Hi, I'm using the ManualResetEvent WaitOne(timeout) method and set the timeout value to 30ms.
I log using log4net at either side of the WaitOne. The log messages show the WaitOne returned false after only waiting for 22ms. What would cause this? A .Net bug?
Thanks in advance.
...
How can I use Html.RadioButtonFor to create radio button which when clicked runs code on the server and controls visibility of certain text box. earlier I used to create <asp:control with autopostback="true" Thanks
...