I downloaded dotnetopenauth last week and I have seen people mention the samples, but all I see is a desktop sample. Where would I find a web/asp.net sample?
Hi..
Just wondering is there any drawbacks to publishing a ASP .NET web application by copying all the files in it? (That means all the .cs, .csproj files will be included in the published folder)
So far I can think that the published folder's total size may become a little bigger (but that a negligible issue for me).
how to get from such string ' name1{value1,value2};name2{value3}; ... nameN{value12, valueN} '
Array or arrays in such form: Array = {string, int};{string, int};{string, int};
like this:
{
{ name1 ; value1}
{ name1 ; value2}
{ name2 ; value3}
...
{ nameN ; valueN}
}
in C# (.net)?
I have a typical reporting application:
Large report <-- HTTP Compression --> ASP.NET Web Server <-- ??? --> SQL Server 2008
Since I have so much (repetitive) data to send to the client, I would like both network hops to have compression.
Is there a transport-level compression setting for SQL Server?
I've recently started a new project in C#, and, as I was coding some exception throw in a function, I figured out I didn't really know which exception I should use.
Here are common exceptions that are often thrown in many programs :
ArgumentException
ArgumentNullException
InvalidOperationException
Are there any framework exceptions you often use in your programs ?
Which exceptions should every .net programmer know about ?
When do you use custom exception ?
What is the best way to take a string of html and turn it in to something useful?
Essentially if i take a url and go get the html from that url in .net i get a response but this would come in the form of either a file or stream or string.
What if i want an actual document or something I can crawl like an xmldocument object?
I have some thoughts and an already implemented solution on this but I am interested to see what the community thinks about this.
On a Windows PC, is there a way to read the raw bytes from an SD card attached trough a USB card reader? The SD card gets written from an embedded system using no file system at all, so I can't use standard file access routines. This is similar to what the unix dd utility does, but I need to integrate this into a .NET application.
I am trying to export contacts using Yahoo/AOL/Live username credentials.
I have been able to export gmail contacts with their API, but cant find any example for Yahoo/AOL/Live in ASP.Net
Any help appreciated
Title pretty much says it.
I want to store a C#.NET ulong into a T-SQL database. I don't see any provisions for doing this, as the SQL bigint has the same Min/Max values as a normal long.
Is there any way I can do this? Or is catching an OverflowException my only hope?
I'm using silverlight, project structure is similiar to any other .net app. I have a map control that I would like to store what mode it is in (either road or aerial) so that other controls can access this.
Where do I put this enum variable, I plan to use 2 way binding on it so both are updated when either changes.
Thanks.
In .net when a website hosted in IIS how do you get the current user the website is running under. ie the Application Pool user not the the current user accessing the site.
Using windows integrated and impersonate.
<authentication mode="Windows"/>
<identity impersonate="true"/>
i add asp.net file upload control as following
<asp:FileUpload ID="filesFileUpload" runat="server" />
<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="file types not supported"
ValidationExpression="\.(zip.rar|jpg|gif|png|eps|ai|psd|pdf)$" ControlToValidate="filesFileUpload"></asp:RegularExpressionValidator>
and always when i upload file that match the reg expression it show the error .. could any help me why this done ?
I'm looking for an object database for .NET that is open source and free for commercial use. I need something that is available as assemblies and/or source code to embed into a project, i.e. not a stand alone database in its own process.
I am aware of db4o, and it would be perfect except for the commercial license coming at a price.
The only way to install windows-service I know is using "Visual Studio 2008 Command Prompt", Is there a way to install windows-service on a machine which isn't having Visual Studio installed (assume that .Net version 2.X is installed.)
I have a Asp.net web application running with the following config setting.
<xhtmlConformance mode="Legacy"/>
This limits use of AJAX and compatibility with multiple browser.
If my understanding is correct, the HTML code of the aspx pages need to be fixed to comply with XHTML 1.0 Transitional.
There are alot of HTML pages, ~1000, is there a tool that could speed up this process?
I'm going through a phase where I'm not being productive at all. I find it hard to justify to myself getting paid six figures to sit in front of my computer and act busy. Management is completely disengaged, and the users as well. What do you do in this type of situation? I've taken to learning some deeper aspects of .Net and software construction in general, but don't like the feeling that I'm stiffing my employer.
Hello,
I changed some names of nameapces, assemblies in one of exsisting project(C# and ASP.NET). But when I try to debug it; I get this error.
Could not load file or assembly 'HR' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040).
I have replced DFI with HR in the code.
Please help,
Thank you
I am looking for a way to insert javascript code block to end of ASP.NET page.
Page.ClientScript.RegisterClientScriptBlock(typeof(Page), "videoyuGoster", sScript, true);
is appending to body but js codes are always requesting some js files didn't load or some functions are below of the script.
How can i append scripts that i generated dynamically to the bottom of body?
Thanks for your help.
I have a Asp.net web application running with the following config setting.
<xhtmlConformance mode="Legacy"/>
This limits use of AJAX and compatibility with multiple browser.
If my understanding is correct, the HTML code of the aspx pages need to be fixed to comply with XHTML 1.0 Strict.
There are alot of HTML pages, ~1000, is there a tool that could speed up this process?
Hi,
I'm not familiar with Java but I need to make a request to a remote webservice from within my applet.
The webservice (.Net 1.1) uses HttpContext.Current.Request.UserLanguages[0] to determine the language to use. But the value of this member is alway null.
So is there a way to pass the Accept-Language header along with something like "en-GB" set?
Hello,
I have developed my .net web app on XP using IIS6.
It uses just plain old master pages, nothing fancy. No nested master page.
When I deployed it to the server, which is IIS7, suddenly any page that implements a master page, will not be rendered.
Gives a 404 error instead.
Any ideas, about confguration that I need to specify in IIS7 that is not in IIS6?
Thanks
I have an asp.net app that uses System.IO.Path.GetTempFileName() for temporary files. In the production IIS environment (W2K3), the temp folder (System.IO.Path.GetTempPath()) points to C:\Windows\Temp. But on my XP dev machine it's C:\documents and settings\machinename\ASPNET\temp.
Is it possible to change this folder without affecting other accounts on my machine?
I am currently working on an ASP.NET 3.5 and C# web application which deals with users secure information like credit card numbers. What are some of the security measures which I need to take from an application development stand point so that I can sleep peacefully at night :)
Hi all,
i use the asp.net(.aspx) language to develope my website.
i want to create a module of news appearing in home page, and by clicking "more" you will get details in another page of news details !!
so i need help!
Thanks
I running an exe from a .NET app and trying to redirect standard out to a streamreader. The problem is that when I do
myprocess.exe out.txt
out.txt is close to 14mb.
When I do the command line version it is very fast but when I run the process from my csharp app it is excruciatingly slow because I believe the default streamreader flushes every 4096 bytes.
Is there a way to change the default stream reader for the Process object?