How would you implement a user message stack in ASP.Net MVC? (you set messages for the user in any place inside your app. and they are shown as hints of your app to the user anywhere inside the app)
Membership/Role/Profile providers API appeared in early days of asp.net Nearly everytime I can't live with standard API & have to add some extra functionality (for sorting, retrieving e.t.c.). I also have to use different database structure often (with foreign key to some tables for example) or think about performance improvements.
These considerations forced teams I took part in to build own providers but I can't stand to implement providers API (because we don't use 70% of standard functionality at least). Moreover, providers that were built for exact projects were rarely reused.
I wonder if someone found swiss-knife early-days-API providers implementation that is usefull for any kind of project without refactoring. Or do you use your own implementations of early-days-API's Or may be you abandon standard architecture and use lightweight implementations?
have here a (internal intranet) site where users can preserve places for the lunch and pause... :)Now, meanwhile the users count grows more and more and the ajax site that speeks with a webservice for the calculations und checks geting slower and slower... user 900+The site checks every 5 seconds for the actual state and uses groups for the users.Ok, now i have researched on the web, and found the comet/reverse ajax aproach that the service can push the clients with events.But i have not found any good asp.net tutorial with visual studio (2010) how i can use the asp.net standard controls and vs design mode.Is there a framework for that stuff?
Following is my case in detail.I have a class against which I will configure an objectDatasource(I have a datatable in the class which the data will be initially loaded from the database.)A gridview which has provisions to add/update/delete records will be bound to the objectdatasource
My methods i.e. insert/update/delete will be manipulating the datatable and NOT the database directly(I DONT WANT TO CONNECT TO THE DATABASE IN THESE STEPS. THE REASON IS THAT THE INSERTS/UPDATES/DELETES WILL BE PERSISTED ONLY WHEN THE USER CLICKS A SAVE BUTTON(MAY BE PLACED OUTSIDE THE GRID) . My class to which the objectDatasource points to will have anadditional AcceptChanges method which will be called on clicking the save button. This method is the one which connects to the database and where the adapter.update will be called.The query here is that how do I call the AcceptChanges method of my class instance which is bound to the grid? Also I would like to get some websites where I can see the real world implementations of gridview(with insert/update/delete options) so that I can improve my implementation.
We have an issue when our web application runs under reverse proxy.
The reverse proxy change the URL for the website from for example: "http://TestWebApp/" to: "http://ProxyDomain/Test/" when it runs under reverse proxy which is mapped to "http://TestWebApp/" and rout requests to it.
This raise an issue of root relative paths (paths that start with "/" to be relative to the root of the web application i.e. "/Folder1/Test.aspx"). Generally all paths that need to be rendered to client we use ResolveClientUrl method and all is good.
When using Ajax controls and ScriptManager WebResource.axd paths are rendered in script tags as a relative url paths ("/WebResource.axd?blablabla") because the root under reverse proxy is the proxy domain itself the path is useless - the web resouce is not downloaded and the application break.
To fix this we tried to set a Response.Filter in OnPreRender event handler of our base page. In our custom filter we use Regex to search and replace all "/WebResource.axd" occurences with the resolved to client root path using the ResolveClientUrl method of the page. This works great and the web resources are downloaded to client.
But this is not the end of our troubles.
In Ajax requests the response output is fixed as described but when recieved at the client end it is not valid and the partial update fails with Sys.WebForms.PageRequestManagerParserErrorException.
It fails to parse the response because the rendered response have numbers that states the actual count of bytes per rendered component (which includes the script tags referencing the WebResource.axd). The client reciever validates the recieved response according to the numbers, but, our filter altered the response so the numbers are not correct and the response validation fails.
We can try and code a smart filter that parse the response and recalculate the numbers according to the ammount of paths fixed, but I hope there is an elegant and better solution for this.
what version of ajax control toolkit should i download @ codeplex for .NET 3.5 (vs 2008). i want a version that is best suited for a production (live) environmnet
Thinks at a backgammon online multiplayer game with over 100, or even 1000 online users. The game communication is done using Ajax + 3 seconds Comet connection interval + ASP.NET technology. Is this a real scenario ?
Didn't so many Comet open connections block the server resulting in big latency ?
I'm trying to implement an auction website and I search in web the Ajax Push is the best way where I can use! So, I'm finding some samples in web to learn how to implement Ajax Push (comet) in client and server. By the way, I find some samples in ASP.Net Webforms, but no in MVC version. I'd like to find a demo, sample, anything ... that use MVC
I implemented a chat using the COMET "way" described in this article: http://www.codeproject.com/KB/aspnet/CometAsync.aspx
In this example, the client connects for 5 seconds every time. I wanted to hold the client longer, for about 10 minutes.
My problem is - how to detect if the client disconnected during those 10 minutes? I tried using Response.IsClientConnected but it returns true even if I close the client. There must by some inidicator since the socket gets disconnected if I close the client.
I am currently making a line chart of Ajax control toolkit referring to an article [URL] .....
It works fines as described. My question is how to reverse Y axis of the line chart.
I need to place 1 (not 0) at the top of Y axis and biggest number near the bottom with some margin from axis X. The described chart is biggest number neat the top and 0 at the bottom.
So my asp.net is very very rusty, and i'm trying to get back into best practices and what not. So, I whip out google and start looking for examples and samples and tutorials, but what do I find? Old crusty stuff that tends to be written even before "the latest" technology was released back in the stone age.Sure, the concepts may still hold up. But the actual implementations are basically useless. I'm looking for something using Linq, n-layers (not tiers. Tiers can be a layer, but a layer is not necessarily a tier) some kind of current ORM (L2S, EF, etc..) and some real-world stuff, not abitrary and useless examples.
There are a lot of articles devoted to working with data in MVC, and nothing about MVC 2.So my question is: what is the proper way to handle POST-query and validate it.Assume we have 2 actions. Both of them operates over the same entity, but each action has its own separated set of object properties that should be bound in automatic manner. For example:
Action "A" should bind only "Name" property of object, taken from POST-request Action "B" should bind only "Date" property of object, taken from POST-request
As far as I understand - we cannot use Bind attribute in this case.So - what are the best practices in MVC2 to handle POST-data and probably validate it?UPD:After Actions performed - additional logic will be applied to the objects so they become valid and ready to store in persistent layer. For action "A" - it will be setting up Date to current date.
Let's say I asked Microsoft to describe the perfect, modern, Microsoft-based technology stack to power a standard e-commerce web site, which perhaps has a simple 2-tier web/database architecture. What would it be like? Yes, I'm just looking for a list of product / technology names.
For example, in the J2EE world, I might describe a stack that includes:
J2EE 6 standard JavaServer Faces Glassfish 3 MySQL 5.1.x
I'm guessing this stack includes some combination of .NET, SQL Server, ASP.NET, IIS, etc. but I am not familiar with this world. Looking for ideas on the equivalent in Microsoft-land.
I implement many themes in Blogengine.net 2.0 for many users and have lots of problems with it then i need to thing first that are it is really stable.
when i use Be.net 2.0 pagination in the stable version wrongly coded they never update them even someone reported them many time. means no one care about bad thing populated in Be.net 2.0 when i learn them their is too much blog but not as much as wordpress no problem but if you have a question their is no one answer you or answer you got from community going too late. this is not like a wordpress community then you question and get response quickly.
the first and 2nd is small issue no problem i have from that but a big problem is that functionality in blogengine.net not working well as in wordpress and in some other cms have every functionality well designed. i found many issue i reported from other when i implement theme from them like.
3.1 if someone write a post who are in future date , in draft , or published then sometime they show addpost page instead of editpost page. this make sometime user feel dirty because you know what they thing when they write a big post and found that all their craft goes left
3.2 Be.net have less functionality then any average other CMS no problem if it's less the issue that sometime you not found what's going wrong whenever their is a issue in the code you write or refactor existing pattern in blogengine.net
SO i want to know are Blogengine.net 2.0 really have stable version or they make them only for showing that they have really same thing as other.
What is the standard way to maintain a stable user session in ASP.NET without worrying about IIS recycles, disconnected users, re-opening browsers and so on. I would like for our users to not have to login except once per month, whatever happens!
Also does it matter if I am using my own login control (not the standard asp.net login control)? If I understand correctly, I think I would need to create an authentication ticket manually.
I need to create an Asp.net Calendar Control with Daily-weekly-Monthly & Yearly view This Control should Have Some Events , Properties and some Methods as its clear.
This Control should be capable to add tasks ( jobs) and some photos in each day Also Should have Remainder and should be Full Ajaxable.
So As I'm not familiar with Custom Control, What Do you recommand to read and whats your advise to have a fast and Stable Control.
Do You know Any Open Source ASP.net Control like this ?
Do all comet style applications require a loop somewhere in the application on the serverside to detect updates/changes? how the logic behind a loopless comet style application would work?
I'm making an application with server sided variables that change every second. Every second those new variable need to be shown at all the clients that have the webpage open. Now most people told me to go with comet because I need to push/pull the data every second, now I've got a few questions: What would be a better solution looking at the fact that I need the new data EVERY SECOND, pulling from the client or pushing with the server?
Also the item ID's that are on the server side (with the variable's that ID got) can change and when the client refreshes the page he needs to get the oldest (and living) ID's. This would mean that my jquery/javascript on the client side must know which ID's he got on the page, what is best way to do this? Last thing is that I can't find a good (not to expensive) comet library/api for asp.net (C#). Anyone ever used a comet library with good results? We're looking at a site that should be able to have 2000 comet connections at every moment.
I am looking for a free implementation for Comet or Push. Here is an example of chat done by comet:http://www.phpchatsoftware.com/phpbb/I have my own server.Is there any thing like this?P.S. I am using asp.NET, on server and jQuery on client.Is there anything new? or maybe this is the last technological free open source achievement:http://www.codeproject.com/KB/aspnet/CometAsync.aspx ?
I am a new to WCF. I have written ajax to use a web service before, but on this project I am trying to use ajax to WCF.After I build the project and wcf using ajax, I receive the return successfully. But, 10 or more minutes later I don't get a return, the ajax calls the error function, and the fiddler returns nothing.
If I rebuild the project without any source modifying, I receive the return successfully again.