I am a bit confused about the difference between Silverlight and Expression Blend. From my understanding, Silverlight is used to create a better interface, and Blend is used to create animations? Meaning you can use Silverlight without having to use Expression Blend (there is much demand for Silverlight developers, but I from what I know...
This is my DIV
<div id="MyDiv">
<div class="fa_close"><a href="#" onclick="hFa()"><img src="fadead/close1.jpg" /></a></div>
<h1><i>THIS WEEK'S</i></h1>
<img src="fadead/special.jpg" alt="special" />
</div>
And I am trying to hide it like this but it does not want to work
document.getElementById("MyDiv").style.visibility =...
Hi all
I've got a COM object implemented in .NET and its definition it has a function
F(IData [] data). When I try to use it from VBA, I get the 'Function or interface marked as restricted. or the function uses an Automation type not supported in Visual Basic'.
I believe this error has to do with the fact that the function receives IDa...
What is the most recommended data type to use in scientific calculation in .Net? Is it float, double or something else?
...
I'm using a LINQ query to translate data inside a DataTable object to be a simple IEnumerable of a custom POCO object.
My LINQ query is:
Dim dtMessages As DataTable
'...dtMessages is instantiated ByRef in a helper data access routine... '
Dim qry = From dr As DataRow In dtMessages.Rows
Select New OutboxMsg...
Using C# & MySQL
When i select a particular value from the combobox then i clicked the button, the corresponding value should display in the other textbox
code
protected void Button1_Click(object sender, EventArgs e)
{
cmd2 = new OdbcCommand("Select name from users where username = '" + combobox1.Text + "' ", con);
...
I'm trying to evaluate whether to use classic Principal based authorization vs. IdentityModel authorization. It seems like Microsoft is recommending the latter these days, but I haven't seen enough in terms of maturity or support for it. Specifically, I really like the ability to set a PrincipalPermissionAttribute and allow the framework...
I currently have a C# application which makes frequent web requests that have to potentially go through proxy authentication. In this situation, a large PAC file (200kb+) is used to automatically configure the proxy and is stored on a remote server.
When initializing the HttpWebRequest I have been setting the default proxy by using 'Web...
Can I serialize POCO classes? I'm using the C# POCO entity generator.
I tried to edit the .tt file which generates the entity classes to add the Serializable attribute. Is it right?
...
MSDN states that
you do not need to specify the
attribute suffix when using attributes
in code
Example: You have an attribute named HelpAttribute. You can decorate a property with [Help] (no Attribute suffix) or with [HelpAttribute]; either is allowable. But, does the code run faster when you use the full attribute name rather...
I want to create a C++ library. I want its API functions to be accessible from .net (C#). I will have a lot of unmanaged code that is compilable under clr. Where can I get a tutorial on creating such library\sln?
...
I struggled to write a more appropriate 'title' to this question - I will try and clean it up when I have a better understanding of the solution and the correct terminology. :D
There is a pattern that is repeating in the last two projects I've been working on (the projects are both heavily event driven).
The pattern is:
public interfa...
MSDN documenation for DbConnection.GetDBSchema says -
Returns schema information for the data source of this DbConnection using the specified string for the schema name and the specified string array for the restriction values.
Regarding the restriction values
The restrictionValues parameter can supply n depth of values, whi...
Hi
I have a page that shows inside an iframe. The iframe uses an UpdatePanel Ajax control to update a form inside it. However the whole page refreshes in IE although Firefox is fine. The validators dont wotk either. My code (with Ajax) works outside the iframe. What's happening? Thanks for your help. My code is:
container page:
<I...
When copying and pasting a bit of sample code from MSDN, I came up with the error in the title - Variable '' hides a variable in an enclosing block,
All I copied was a very basic example of a try loop.
As it says in the suggestion "A common cause for this error is the use of Catch e As Exception inside an event handler. If this is the ...
When thinking about traditional layered application design, I often think in terms of 3 layers:
The bottom-most layer which actually talks to the database (let's call this the "data access layer"). It returns objects (in some form) to the next layer.
The layer above the bottom-most layer (the middle layer, which I'll term the "data la...
My requirement is to create temp table then exec a store procedure which will insert rows into the temp table then drop the temp table.
However if there is an error when doing this, I want to always drop the temp table at the end. I know with enterprise libary managing connections, the table is dropped once the connection is closed anywa...
Updated: See end of question for how I implemented the solution.
Sorry for the poorly-worded question, but I wasn't sure how best to ask it. I'm not sure how to design a solution that can be re-used where most of the code is the exact same each time it is implemented, but part of the implementation will change every time, but follow si...
I need to know how does svcutil and Visual Studio decide which types can be re-used from referenced assemblies when generating a web service proxy class.
I have an assembly with some types that are declared like this:
namespace MYCOMPANY.BO.Accounting
{
[Serializable, DataContract]
public class AccountingPackagePutRequest : Req...
I simply want to copy all the files and folders from a network location to the build location (where the script is run). The following runs without error but no files are copied.
<PropertyGroup>
<FileRepositry>\\network_machine\c$\some_folder</FileRepositry>
</PropertyGroup>
</Target>
<Target Name="CopyFileRepository...