i have a winsock component made with vb.net in a class library that has events.
how do i make it appear in tool box if i reference the dll in another project.?
How do i use it in my c# program?
thanks
how to get a list of files / folders as an IEnumerable and not an array?
the reason I want to do this is a have many folders with 20,000+ files in them, and i need to loop through all of them but do not want to wait for them to be compiled into an array. but just want to go through one at a time.
also i'm using .net 3.5 not v4
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 have a asp htmleditor where the user will enter any text or a message...is there any javascript to save the message every 5 seconds as drafts in vb.net .
Hey
I am getting the following error
Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.
but all I am trying to do is inside a ASP.NET REPEATER Control
<% if ( Eval("Message").ToString() == HttpContext.Current.Profile.UserName) %>
<% { %>
<asp:ImageButton runat="server" etc.... />
<% } %>
.Net has the built in ToShortDateString() function for DateTime that uses the CultureInfo.CurrentCulture.DateTimeFormat.ShortTimePattern format. It returns something like this for en-US: "5:00 pm". For a 24 hour culture such as de-DE it would return "17:00".
What I want is a way to just return just the hour (So "5 pm" and "17" in the cases above) that works with every culture. What's the best/cleanest way to do this?
Thanks!
For example I have class to serialize
[Serializable]
class Person
{
[XmlAttribute("name")]
string Name {get;set;}
}
I need to make Name attribute required. How to do this in .NET?
I used Server side code for HIDE a DIV. but when i click button tool for another event but DIV is always open. I use ASP.net c# code.
how i solve this problem
thanks
I want to write a basic if statement on my site to display either item 1 or item 2 depending on if a variable is set to true.
I am not to familiar with .Net and need a little help with the basic structure of how to get an if statement to work on the aspx page.
thank you for your help.
Hi,
I have an ASP.NET application. On some pages it requires a specific querystring to be called with the page, so data can be processed.
Where is the most appropriate place to check whether the required querystring is included in the URL, otherwise redirect to somewhere else?
I have only used one masterpage.
Thoughts and suggestions would be appreciated.
Thanks.
Hello,
I need to execute 3 parallel tasks and after completion of each task they should call the same function which prints out the results.
I don't understand in .net why we have Asychronous calling (delegate.BeginInvoke() & delegate.EndInvoke()) as well as Thread class?
I'm little confused which one to use when? Now in this particular case, what should I use Asychronous calling or Thread class?
I'm using C#.
Hello, I have a master detail screen In ASP.NET MVC, when I submit something, It instantly returns to me a grid with the inserted value via Ajax, my problem is: I want to pass a message of failiure or successful via an jquery modal dialog or infobar and I can't pass a viewdata for the jquery to process It. Any ideas?
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
In .net objects like DataTable when you have two grids(Master and Detail) and add a row to the second one(Detail), The new row will have the Foreign-Key Values automatically.
How can i do it(I don't use DataTables because they suck)?
thanks.
I am building a desktop application that needs to update current user's status frequently. This status will be available as RSS feed.
In order to do this, I think I can create a asp.net folder and secure it using form authentication. When the desktop application written as winform in c# needs to update status, it can set WebRequest.Credentials and upload data.
Is there any better way of doing this?
Thanks
I have found few links but could not decide which one is the best way.
http://fabiomaulo.blogspot.com/2009/06/localized-property-with-nhibernate.html
(This stores all localised language data in one field. Can be a problem if we query from Sql)
http://ayende.com/Blog/archive/2006/12/26/LocalizingNHibernateContextualParameters.aspx
(This one has a warning at the beginning that it is a hack and no longer supported)
http://www.webdevbros.net/2009/06/24/create-a-multi-languaged-domain-model-with-nhibernate-and-c/
(This does not describe how multilingual data will be structured in the database.)
I'm doing course 3354 (Implementing System Types and Interfaces in the .NET Framework 2.0) and it is said that for simple classes, with members variables and functions, it is better to use a struct than a class because of overhead.
I have never heard of such a thing, what is the validity of this claim?
As per title. I want to be able to save some data in a cache object but this object must be available to all users/sessions and can expire.
What is the best method to achieve this in a asp.net web app?
On the sqlite-net github page, it indicates that in addition to this library, I also need the compiled sqlite2 binaries:
0 dependencies aside from a compiled form of the sqlite2 library.
I checked that page and I am unable to determine what binaries I should use in order to use it on IOS via MonoTouch; the instructions make it quite clear that this particular use-case was actually the genesis of this project, so this must be supported.
Does anyone know what binaries I am supposed to use on IOS?
I need to get the path (not the executable) where my application is running from:
System.AppDomain.CurrentDomain.BaseDirectory()
When I run the above statement with & "/images/image.jpg" on my local machine it works fine but when I install the application on another machine it says it cannot find the file and there is a lot of extra path information some.
I just need the directory of where the app is running. I am coding in VB.NET with Visual Studio 2008.
Thanks!
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 constants in my cs file Constants.cs. In the asp.net mvc controllers I use the constants like this ViewData[Constants.Whatever] = ...;
How can I use the constants in my aspx file? When I try to use it I get an error saying:
CS0103: The name 'Constants' does not exist in the current context
I'm developing a CMS aplication in ASP .Net using WebForms and I'm looking for a way to create new PDF files based on a template.
This feature will be used to generate contracts where some placeholders will be replaced with the customer data.
What's the best approach to do that?
Is it possible to add other menu items to other pinned applications right click menu in the Windows 7 taskbar? I'm using .NET, but I will accept P/Invokes as well. I've been reading the documentation on the API, and can't seem to find a way to do this. I just thought I'd check here as a last ditch effort to find a way.