How can I emulate Expression.Default (new in .NET 4.0) in 3.5?
Do I need to manually check the expression type and use different code for reference and value types?
Duplicate: although this is a good discussion, this is a duplicate of Web Services — WCF vs. Standard. Please consider adding any new information to the earlier question and closing this one.
Could anyone recommend me some documents to describe why WCF is better than legacy ASP.Net web services? I am especially interested in performance and security. Thanks!
We have an ASP.NET 3.5 application which we need to run on 64bit, but when we do the performance is worst than when we enable 32 bit on the App Pool. It seems like there is something we use in the project which requires 32 bit, but we cannot find what.
Is there a quick and dirty way of using a query passed as follows:
domain.com/mypage.aspx/product/toycar/
I've done it before in PHP, but this needs to be done in page (in this instance).
--
I only have access to the aspx page and code behind, and have to work in asp.net 2 (i wish i was using 3.5)
I am looking for a good obfuscater that has visual studio integration, can be commercial or free, and has to work with vs 2010 and .net v4.
Something that is as hassle free as possible, and can obfuscate my release builds
This question is not about what is a cross-thread operation, and how to avoid it, but why internal mechanics of .NET framework does not allow a cross-thread operation.
I can`t understand why a SerialPort DataReceived event cannot update a simple text box on my form and why using delegates this is possible?
I have a asp.net table inside a scrollable div. I have created a matrix table in which the leftmost table cell acts as a fixed column by using css Position:relative. Now i have a ModalPopupExtender Over that table. When I am trying to open that on the left most cell(the cell which is relative) by clicking on it, the left cell disappears.
How can I click the cell keeping it relative?
I sincerely appreciate the Help
- Manoj
I have a link like this
<a href="#thumb" id="ctl00_allContent_btnThumb" onclick="javascript:__doPostBack('ctl00$allContent$btnThumb','')"><img alt="" src="../../images/bullet-thumb.gif"></a>
On Firefox it does what it supposed to. But it won't work on IE or Chrome.
I know there are some questions on the subject here, but they haven't helped me. I'm guessing it's more specific since it envolves ASP.NET postback.
thank you
Hi,
I am using Drools.NET and got an exception when it is being called.
The type initializer for 'org.drools.compiler.PackageBuilderConfiguration' threw an exception.
InitializeComponent();
_Form = this;
PackageBuilder builder = new PackageBuilder();
the exception comes a the line PackageBuilder builder = new PackageBuilder();
how to convert avi file to an jpg's images array using .net , i need to develop a task that will take the avi file and save it as jpg images on another folder
Hi everybody,
I develop a simple file manager inside an ASP.NET Web site (not web application).
I notice that every time I rename or delete a folder, the site gets recompiled - i.e. the very next web request after delete or rename operation takes considerably much time to execute.
It's only true for folders, not for files.
Why does this occur?
P.S. I use WebDev server (Cassini), haven't tested in on IIS yet.
Hi, Recently the study vb.net but I still have not figured out how do I remove an image or an executable from the resource.
If I put an image and add to the resource and I would extract
C: \ foto.jpg
how can I do?
Thanks in advance, I apologize for my vb knowledge is that English
How do I get my .NET Winforms app 2.0 to automatically update it's publish revision integer subsequent to issuing the publish command from within VS08.
Trying to use the following C# as a guide
object[] attrs =
System.Reflection.Assembly.GetEntryAssembly().GetCustomAttributes(true);
foreach (object o in attrs)
if (o.GetType() == typeof(System.Reflection.AssemblyFileVersionAttribute))
label1.Text = ((System.Reflection.AssemblyFileVersionAttribute) o).Version;
Is it possible to restart server from ASP.NET application that is hosted by LocalSystem or LocalService account. This is working when I create custom administrative account and put AppPool to run under that account:
Process.Start("shutdown", "/r /d 4:1 /t 10");
However, I don't want to have custom accounts (because of password expiry and need to update all AppPools when User passwords are changed).
So, is this possible?
How do I reset an asp.net validation control via JavaScript? The current code sample clears the error message text but does not reset the validation control for the next form submission.
var cv= document.getElementById("<%= MyValidationContorl.ClientID %>");
cv.innerHTML = '';
Is there a limit on the amount of generic parameters you can have on a type in .NET? Either hard limit (like 32) or a soft limit (where it somehow effects performance to much, etc.)
What I'm referring to is:
class Foo<T0, T2, T3, T4, etc.> {
}
Hi guys:
Assume the JSON returned is
{"2010143545":{"info":[1,"soccer"]},
"2010143547":{"info":[0,"Basketball"]}
}
How do I use JQuery to render the array on ASP.NET page? More precisely, what kind of HTML template do I need to set to stuff the JSON with JQuey?
Thanks you.
how to call a oracle database storedprocedure from asp.net mvc using nhibernate and how to use sys_refcursor to display a data in view pages give me sample application . thanks
I'm trying to remove all BBCode Tags from a string.
[url]www.google.com[/url]
becomes
www.google.com
I have a regex that works in php to find them all, just dont know how to remove them in .net
RegEx to Find BBCode
|[[\/\!]*?[^\[\]]*?]|si
In visual studios i can run code analysis on my .NET project. I am running basic correctness and have 85 warnings. Which is a little much. Also majority of them are in external code.
How do i disable specific warnings so i can focus on the more important warnings? I tried the below but it does not recognize code analysis warnings. (I first tried w/o the CA)
#pragma warning disable CA1820 CA1065 CA2100
Hi,
I'm just wondering if there's a web hosting site that offers hosting for PHP and ASP.NET at the same time. It would be great if you give me a site that offers free service. I would like to use it for testing purposes only. But I could still look for affordable one.
Comments/Suggestions are welcome. Thanks.
For some reason it takes 7 seconds to open a connection to a sql server database for the firt time, subsequent connections takes a second. any idea what could be the reason?
I'm using C# and asp.net
Hi,
I have a requirement to show a list of all users along with the Last Activity Date. The application is .Net based.
I found the MemberShip class provides the Last Activity date. However, this does not work when the MemberShip provider is ActiveDirectory
Link to MSDN page because the ActiveDirectoryMemberShipUser does not implement the LastActivityDate property.
Is there any workaround or other way, I can get the LastActivityDate of the user in the application.
Thanks for any info
I have made search about books dealing with developing apps for smart card using dot net framework but I havn't found any
If some one please know a name for a good book
please help me with it
Hello all,
I'm trying to read all filenames from a specified (server- not client) folder, and insert all the filenames into a javascript Array.
It should behave like the Directory.GetFiles method in ASP.NET C#.
I created a new array, and I just need the loop method (Javascript or jQuery) to iterate in the specific folder, and insert all the filenames into the array.
Thanks all helpers!