I know that .NET assembly is self-descriptive because of the metadata. Now suppose I have a black-box assembly which I know nothing about. Could I find out the types contained in it and use their methods and pass arguments? How? Sampe code snippets will be deeply appreciated.
Many thanks.
How can I detect if .Net 2.0 SP1 is installed from my installer msi, and abort the install if it is not present?
I know how to do this in code, but it seems cleaner do it in the vdproj. It feels more declarative.
hi folks,
Good morning!
I would like to ask some help from you guys on how do i do this problem. I'm using asp.net and my problem is on getting the list of filename inside the folder. Is there a function on this? I tried this on console apps there's a function like GetFileName. Hope somebody could help me on this.
Thank you so much.
Regards,
Is there a library for .NET that does parenthesis or expression reduction and optimization?
Something that would take an expression such as (A & (((B) | (C)) | D))) and return
A & (B | C | D)
But also take (A & A) and return A
how to get varchar as byte[] data using DataReader in Ado.Net? We have tried the following code.
if (!objDataReader.IsDBNull(i))
{
long len = objDataReader.GetBytes(i, 0, null, 0, 0);
byte[] buffer = new byte[len];
objDataReader.GetBytes(i, 0, buffer, 0, (int)len);
}
But the above code gives the error ("Unable to cast object of type 'System.String' to type 'System.Byte[]'.")
I have a scanned driver license file in bmp format,is it possible to read license information in vb.net.
Please help me,how to read drver license OCR details?
Can we Get those Values which is in Session directly in asp.net MVC Views?
I have tried it in Controller it Works,I can easily get & set the Value,
But how to Get value directly from Session in Views?
I have some old code in Javascript that interfaces to Java DWR. I'm looking to port the back-end to .NET/C# possibly, and I was just wondering if there was an equivalent AJAX framework that would work in the same manner as the DWR framework in Java.
I'm using Protobuf-net. Suppose I have a list of Gizmo objects serialized and that each gizmo object reference a Gazoo object. The Gazoo object might be the same object referred by several Gizmo objects.
How would deserialization work in this situation?
Would I get more than one copies of Gazoos for the same referred one in the gizmo objects?
What I would expect would be one copy of Gazoo for all the duplicates in the serialized data.
I just want to see error insteas of asp.net showing me default error Server Error in '/' Application. What should i change in web config?
I used this,
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
Any suggestion i want to see errors in browser as i do live testing...
Does anyone know of any tools for generating ASP.NET MVC CRUD User Interfaces (E.g. the controllers and views for Admin tools), given:
A set of model objects.
A set of repositories for retrieving those objects.
Thanks
Hi,
I am Developing a web Application in ASP.NET 3.5. I have to create UI that customize user. That means, user change their profile Background Color, Fore color, size, etc.
How Can I create this!!!
Which control should i use?
I don't want the records to be displayed on the Windows Application list in the same way records displayed in database as this:
I want the records to be displayed statically and a user when right click a record, he/she gets Edit and Remove choices. Of course there has to be static headers at the top.
I hope my request is clear.
I'm using C#.NET - VS 2008
The .NET WebClient class is nice and all, but it doesn't parse the JavaScript in the page.
What I mean is, sometimes a page is forwarded to a different page via JavaScript, or sometimes DOM elements get added to the page via JavaScript with an onload event. I need to deal with both of these situations.
What can I do to deal with this? I'm using WPF if that matters.
Hi,
I have created an application for which I want to create an installer using .NET's Setup and Deployment project. The problem is that my application requires certain setups (Drivers, SDKs etc.) to be installed before it. I want these to be installed first and then the main application. How do I do it?
Mathematically I suppose it's possible that even two random GUIDs generated using the built in method in the .NET framework are identical, but roughly how likely are they to clash if you generate hundreds or thousands?
If you generated one for every copy of Windows in the world, would they clash?
The reason I ask is because I have a program that creates a lot of objects, and destroys some too, and I am wondering about the likelihood of any of those objects (including the destroyed ones) having identical GUIDs.
can we get the multiple values from a select tag through Ajax script in controller in asp.net MVC?
I Have tried for Single Value that I have done by .val Function..
But not for Multiple Values
Any suggestion Please Help
Hi there,
I'd like to somehow hook into the local system's network stack to capture outgoing network packets without using Winpcap. Unfortunately it tends to crash my system every now and then.
Is there a way to "sniff" outgoing traffic of the local system from a user space process written in a .NET language?
Thanks a lot!
Hendrik
MVC.net 2 by default outputs validation messages like this:
<span id="UserName_validationMessage" class="field-validation-valid">A Validation message</span>
I would like it to do it like this:
<label id="UserName_validationMessage" class="field-validation-valid">A Validation message</label>
Is there a way to do it like the display and editor templates? Or is there another way to do it globally?
Translate the vb6 code to vb.net or c# or java, too difficult to me, thank you.
Dim dom As New DOMDocument
Dim http As XMLHTTP
Dim strRet As String
If not Dom.load(c:\voucher.xml)then msgbox “file not exist”
http.Open "Post", "http://127.0.0.1/import.asp", True
http.Send dom.xml
I am currently learning asp.net MVC2. I was trying to do a simple project similar to tadalist.com
Could you please guide me to some articles on how to create the dynamic textboxes and how to capture the user input for persistance?
Thanks