How do i create message queuing mechanism for real time chat in asp.net ? At least post some points to start with because for now i'm using synchronous calls to DB for any change.
I would like bind an array data to view in ASP.NET MVC, how can I do that?
sorry for not clear about my question.
Right now, I creat a custom object(not array), I tried to pass it to View, but the error shows
"The model item passed into the dictionary is of type 'ContactView' but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable"
I am using below code to validate interger and float in asp.net but if i not enter decimal than it give me error
<asp:TextBox ID="txtAjaxFloat" runat="server" />
<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" TargetControlID="txtAjaxFloat" FilterType="Custom, numbers" ValidChars="." runat="server" />
i have this regex also but its giving validation error if i enters only one value after decimal.. http://stackoverflow.com/questions/617826/whats-a-c-regular-expression-thatll-validate-currency-float-or-integer
i need to import live/hotmail contacts using asp.net. I have done gmail and yahoo. i looked at opencontactsnet.dll and it doesnt work for live. none of the contacts are retrieved from that dll. does anyone know anything specifically for hotmail contacts?
All,
I am looking for an asp.net xml editor control. Not a WYSIWYG editor like freetextbox or a javascript syntax highlighter but something that would make editing xml in the browser a bit easier than just as text in a textarea.
maybe some non-editable areas, collapsable nodes, xsd validation etc.
any ideas?
Are there enums available in the .NET framework that have values for build flavor (Debug, Release) and build platform (Any CPU, x86, x64 etc)? I haven't been able to find anything on MSDN or Google.
It seems unnecessarily cumbersome to create my own.
ok this is my code in vb.net behind where i am creating the radiobutton -
TD = New HtmlTableCell
Dim rdb As New RadioButton()
rdb.ID = "rdb_ads_" & DR("ID")
TD.Controls.Add(rdb)
TR.Cells.Add(TD)
It displays the radiobutton, but doesnt select single. i can select all at one time. how do i make it to select only 1 at a time.
i know its basic for u guys, but will help me a lot
Is there anyone already implement memcached for production use in Windows environment?
Because many blogs that I've read, it's not recommended to run memcached in Windows especially for production use, for example running memcached on windows.
And one more thing, which memcached client that is good to use with c# and .net 3.5 ?
I've found many alternate such as Memcached Providers @ Codeplex, Beitmemcached, and memcached provider @ Sourceforge
With the CheckListBox in VB.NET in VS2005, how would you make it compulsory that at least one item is selected?
Can you select one of the items at design time to make it the default?
EDIT: How can I make it so the last item the user tries to uncheck is the one that stays checked? So it's like the user tries to uncheck the only checked item but can't because it checks back straightaway.
Hi guys,
I am required to write a report contrasting PHP5 and ASP.NET after building an application in both languages. I've been looking for papers and resources to reference and quote on the subject but i am running a little short.
I was wondering if anyone directions as where i could find such papers / resources.
Thanks in advance.
Hello,
Is it possible to use strongly typed controller name and action name in asp.net mvc?
for example instead of
ActionLink("ActionName", "ControllerName");
somthing like this
ActionLink(ControllerName(x=x.ActionName()), ControllerName)
Thanks,
Alexander.
Is it possible to load routes from the database with ASP.NET ?
For each r as SomeRouteObject in RouteDataTable
routes.MapRoute( _
r.Name, _
r.RouteUri, _
r.RouteValues, _ //??
r.Constraints _ //??
)
Next
How should I store the routevalues / constraints? I understand that there are several 'default' routevalues like .Controller and .Action, however I also need entirely custom ones like .Id or .Page...
Hi,
I am creating an ASP.NET page where I need a couple of variables which hold pathnames and a chosen language etc... Not that many, let's say about 5.
Should I use session variables for this? Atm I'm using public static variables but I'm not sure if this is the right way to do this.
Any thoughts?
Thx
I'm implementing a solution in ASP.NET MVC that later can be applied to couple of other fields. To do so it will require to re-brand the UI even though the underlying business logic wont need to change. I'd like to write the code in such a way that will allow other developers to only develop code that will only changes the UI. This is similar to the way that themes can be written against Wordpress Blog software.
Can any one suggest how to organize my project to make such feature work?
In CruiseControl.NET there appears to be the same xsl stylesheets in the server directory as well as the webdashboard directory?
Is one for transformation for saving to the build report xml and the other for display on the web dashboard?
What are the different directories of xsl stylesheets used for?
-- Lee
Hi
I want to migrate one of our databasis from SQL Server Express to SQL Server Compact 3.5.
I'm using iBatis.Net but do not know what the providers.config must look like for me to be able to access SQL CE 3.5.
Can anyone help me out with this?
Thanks
Johan
Dear All,
I have a list of all words in the document. I want to index it and latter I want to retrieve a particular word and some near by words (10 words before the result and 10 words after the result).
What is the proper way of indexing and searching in Lucene.net?
Please reply me as soon as possible.
Thanking you,
Ashish
I'm looking for a example or article that demonstrates using SimpleModal in an ASP.NET webforms project.
Ideally the article would show creates and edits of a grid row using simplemodal.
All,
Is there a WebSphere MQ .NET API I can download ?
I am basically trying to write a C# app that listens for messages in an MQ queue.
Thanks,
Marios
What would a simple unit test look like to confirm that a certain controller exists if I am using Rhino Mocks, NUnit and ASP.NET MVC 2? I'm trying to wrap my head around the concept of TDD, but I can't see to figure out how a simple test like "Controller XYZ Exists" would look. In addition, what would the unit test look like to test an Action Result off a view?
Hi folks,
what's the proper way to display an image stored in sqlserver database as an varbinary(max) datatype in CrystalReports for .NET?
I have added a 'blobfieldobject' item in crystal reports & it is bound to a datatable with the column of type 'varbinary(max)' but the image won't show up instead a dark background is diplayed.
TIA
Why is locking a type considered very bad?
For example, lock(typeof(DateTime)) I understand that static methods of any class in .net is considered thread safe, and that instance members are not. So it isn't necessary to lock DateTime while you are using it. The book I am reading doesn't explain why it is bad it just says it is. Any explanation will be great.
Hello!
I'm making a website that requires ads being repeated down the length of a page with dynamic length. I want the ads to be displayed down the entire length of the page, but I won't know that length until after the data has been displayed. Is there built in functionality for this in .NET? If not, does anyone see any workarounds I could employ to do this for me?
Thanks!