MVC :: Implement UrlHelpers For Generating Url's As In The First Version Of Our Application?
Feb 8, 2010
I finally managed to upgrade to mvc 2 with areas and get routes working.
At the moment I'm using actionlinks like this:
[Code]....
I would like to implement UrlHelpers for generating url's as in the first version of our application (See Best Practices #1 )
However, I'm unsure how to go about to do this, as it's not as simple as before now.
View 1 Replies
Similar Messages:
Sep 13, 2010
I need to get data from a database and I need to spit out this data in html formatk using my command line app. For this I am planning to use some sort of template-engine. I was wondering if there is anything in .NET that can do this for me?
The best option would be if I could reuse the asp.net mvc template engine (razor) in my app, this way I should not need to reinvent the wheel.
View 1 Replies
Sep 4, 2010
Here i want to generate the designer file like default.aspx.designer.cs file for the page default.aspx. i had been seen it in may application.
View 1 Replies
Oct 4, 2010
I am looking for a way of coding a system tray alert, you know something like the box which comes out from MSN messenger when there is a new mail or a new version is available with that funny sound.
View 1 Replies
Feb 20, 2011
there are some way of generating the application form source code for an database tables in c#, but i not need a dynamic application form like Scaffolding i need the source code of application form
View 2 Replies
Mar 18, 2011
I've created a deployment package in visualStudio, the package is generated, but it has an awfull structure, which is basically, the path where I've my project(e.g "CONTENT/D_C/WorkSpace/MyCustomer/TheProjectName/TheDevelopmentBranchFolder/TheCurrentBranch/TheWebApplicationName/obj/Release/Package/PackageTmp/TheSiteIsFinallyHere!!!"
It's problematic, because with the web deployer of IIS, it recreate this path.
So how can I avoid the "D_C/WorkSpace/MyCustomer/TheProjectName/TheDevelopmentBranchFolder/TheCurrentBranch/TheWebApplicationName/obj/Release/Package/PackageTmp" part in visual studio?
View 1 Replies
Mar 15, 2010
I have two different version of AjaxControlToolkit dll and I have added reference of both dll in my web application. I also set up different tagprefix for both the version.
View 4 Replies
Apr 6, 2010
We are developing a web solution for our clients to handle their business processes. With reality in check, clients' requirements change over time; sometimes adding a new field, changing the calculation logic etc. When it was still a small scale solution, whenever an upgrade occurs, we will upgrade any existing data to the latest change i.e by having a empty property for it. I would admit this isn't the best of scenarios as old products that previously don't possess certain properties are now 'new' again which doesn't reflect the product correctly.
I am looking for a solution to introduce versioning to this solution before things get out of hand. What I've come up with is like this:
Realising that data is semi-structured (it changes from time to time), we've decided to go with an XML / XSLT approach. Storage of the data will be a mix of columns storing individual properties (e.g. ProductID, ProductName, VersionNumber) and XML columns that holds XML data to cater to fields that will change.
These XML and XSLT will have version numbers to tell the system which version of XML works with the other.Logic wise, we were thinking of developing our business logic to support multiple versions so that old products will still be calculated using old algorithms while new ones will use the new algo. For old products, besides updating them using the old algorithm, we will allow an 'upgrade' option so that they can be upgraded to the new version if they want to. Database wise will remain unchanged since we will store fields that are to be changed in XML form so extending fields should be catered for.
Would like you guys out there to comment on such a setup. I'm concern about performance since some fields are stored as XML, retrieving it will require extra steps, hence the reason why we decided some consistent fields should be on their own for searching purposes etc. Also, would doing multiple versioning like this get really big on the logic side as the program grows?
View 2 Replies
Nov 5, 2010
I have the .net application which is in english words in the interface.
They are text in label or they are UI words.
If change to other language, what method should I use??
View 1 Replies
Apr 26, 2010
I have two webservers in a cluster serving a web application. Using MS Web Deploy to push a new version of the application to one server, and then again to synchronize the files to the other server in the cluster. It seems to be the most ordinary thing to do. But wouldn't there be a problemm, when one server is deployed with the new version, and the other is not yet finished. Will it not cause troubles, when a page loaded with the new version makes a webservice request and the balancer sends the request to the server with the old version?
What's the best way to avoid this? I thought about scripting a drainstop of the server, that we deploy to, and make sure only one server is running at a time. But I can't find anyone else, who seems to have written about such a solution. And guess that it doesn't scale very well too. Another solution could be to shut down all servers when updating. But that doesn't seems very clever.
View 2 Replies
Jan 7, 2011
I've been tasked to update and install a new version of an old ActiveX control in our Aspx web application .The actual updating is fairly straightforward, but the installing is giving me headaches. Here is what I tried:
In the VB6 editor, get the properties of the ActiveX project, and check off the "autoincrement" checkbox in the "Make" tab.Set the version to 1.0.12 Create a new CAB with the Package&Deployment wizard. Copy this CAB to my website.
Then in the Aspx itself, I update the version of the activeX as follows:
Me.Page.Header.Controls.Add(New LiteralControl(String.Format("<div style=DISPLAY:none'><object id='PrtLabel' codebase='{0}' classid='CLSID:AB61148E-D4B5-4D4B-8867-9E4CE8229B5E' viewastext></object></div>", "PrtLabel.CAB#version=1,0,0,12")))
After this, I delete the prtlabel.dll and prtlabel.inf files from the "c:windowsdownloaded program files" folder.
Problem is, when I then visit the web page and it asks me to install the activeX, it doesn't actually do it (no error message appears though). When I go back to the "c:windowsdownloaded program files" folder, ONLY the prtlabel.inf file has been copied there, NOT the prtlabel.dll file.
Is there a special procedure to put a new version of an ActiveX control in your website?
View 2 Replies
Feb 3, 2010
I currently have a ASP.NET web application that was designed for desktops/laptops. Now we need a mobile version of this application. I have never developed mobile application before and am looking for any good tips before i start. Things that i have been thinking about like how do you know when load the mobile version or the normal version.
View 2 Replies
Dec 1, 2010
I need to know if .net 4.0 is installed on server or not. How can I do that?
View 6 Replies
Jan 12, 2011
I have an existing web application developed in Asp.Net F/W 3.5 and a mobile version of the same need to be created.
May i have some suggestions on:
How can i start with?.Some links & sites that would give me more clarity on how to approach this requirement. Is there any ASP.Net/iis features or Visual Studio option that ease this mobile version creation? As there are RadControls & Ajax used throughout the application, what should i be careful about? Will it require every form in the UI to be replaced and take the same time as the old UI creation? What all thinks should i be considering in the performance/optimization point of view?.
View 3 Replies
May 26, 2010
After publishing the console application. We changed few connection strings related values in the app.config file, but the values changed is not been reflected in the published version.
What might be the cause for not reflecting the values which has been changed ???
View 2 Replies
Jul 15, 2010
I developed an application using VS2010 and now when i try to deploy it on windows XP maching running IIS 5.1 i get the database version error which says:
The database '<database file path>' cannot be opened because it is version 655. This server supports version 612 and earlier. A downgrade path is not supported.
<database file path> . Create is aborted.
An attempt to attach an auto-named database for file <database file path> failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
View 3 Replies
Jun 7, 2010
I want to make a deployment package for my asp.net 3.5 application. Actually i have to send this to my client who would run this application on his intranet. I tried setup n deployment package type project and it created .msi file.while installing this it create all the files which are lying in the project application. But i want to send all the files in complied format only not directly code files.
How could i convert the aspx.cs files into nonreadable complied files..
View 4 Replies
Jun 3, 2010
i am looking for solution to create trial version for web application at client side?
View 3 Replies
Jun 26, 2010
I had to restructure my database so I could synch the data between the Web and local version of my application, which I had carelessly let run amok. I finally get all the records and schema into one database but now that I've done that, my Profile system isn't working anymore. I noticed that the relationships between aspnet_Users and _Membership (and my "profile additional items table") don't exist anymore. I ran the aspnet_regsql.exe utility and registered the DB, and I'm surprised that the registration didn't re-establish the foreign key relationships, etc.
Anyway, if someone can give me pointers on how to restore these relationships or direct me to a source that explains it (i.e., what the foreign keys should be named, if there are any other aspnet_ tables that need to be linked together), I'm pretty sure this would take care of my problem. And I just noticed that nothing is in the aspnet_Profile table. Should I start all over with a new database or is this one salvageable?
View 14 Replies
Nov 12, 2010
Are the Crystal Reports objects within Visual Studio (I'm using 2005) the full version or is it a trial version that is missing features?
View 1 Replies
Feb 25, 2011
We have an application that is already deployed in the production environment. And currently it is using Dundas evaluation version. We tried updating it to the licensed version by simply pasting the dll file. but we got the error message as "The file has not been pre-compiled and cannot be requested".
View 1 Replies
Sep 26, 2010
I'm try to get my site to detect what browser someone is using to ensure they're using one that is compliant with our site. Everything works, except Firefox seems to post the wrong version in the Request.Browser variables.I'm on Firefox 3.6.10, but Request.Browser shows Mozilla 1.9.2.10. It's correct in the HTTP_USER_AGENT string:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.10) Gecko/20100914 YFF35 Firefox/3.6.10 ( .NET CLR 3.5.30729)
Is there a way to detect it better without having to parse through the HTTP_USER_AGENT string?
View 3 Replies
Mar 8, 2011
Is there any limit on the size/numbers in the version number of the FormsAuthenticationTicket.
I tried to create an ASP.NET cookie using forms authentication, with a large version number(ex: 1234567 need this number for identification purposes). But when I decrypt the cookie I get 135 as the version number.
Initially the old forms authentication cookie was removed, in order to add new information.
Response.Cookies.Remove(FormsAuthentication.FormsCookieName);
Following is the code I used to create the FormsAuthentication cookie.
FormsAuthenticationTicket newAuthTicket = new FormsAuthenticationTicket(1234567, un, DateTime.Now, DateTime.Now.AddHours(5F), false, user_data);
HttpCookie newauthCookie = new HttpCookie(FormsAuthentication.FormsCookieName, FormsAuthentication.Encrypt(newAuthTicket));
Response.Cookies.Add(newauthCookie);
After retrieving the cookie, the version number I got was 135. This number varies with different version numbers.
string cookieName = FormsAuthentication.FormsCookieName;
HttpCookie authCookie = Context.Request.Cookies[cookieName];
if (authCookie == null)
{
return;
}
FormsAuthenticationTicket authTkt = null;
authTkt = FormsAuthentication.Decrypt(authCookie.Value);
if (authTkt == null)
{
return;
}
int versionID = authTkt.Version;
Can someone let me know if it's a bad idea to use such big version numbers, or am I missing something in this.
View 1 Replies
May 22, 2010
I have Visual Studio 2008 installed on this workstation with SQL 2000, 2005 Express, 2008 Express and I think 2008 R2 (not sure if that is a version itselve or not)
I will call that workstation HOME
I created some tables in SQLEXPRESS through VS2008.
I worked on this project on another workstation that I just installed VS2008 annd SQLEXPRESS 2008 and I know that was R2
Installed Visual Studio 2010 trial edition between the thiem I made the tables on HOME and tonight for the first time since that install
I am now getting the "cannot be opened becuase it is version Version 661. This Server supports version 655..."
What to do now?
I can opened SQLExpress 2008 management studio and it is running.
So is my SQL 2000. The problem seems to be that after the VS2010 install neither VS2008 or VS2010 can connect to the SQLExpress 2008
What do I do now?
I can't remove sql 2000 because it is tied to several 3+ gig databases that will not work in Express.
View 2 Replies
Jan 5, 2011
i am working in webapplication in asp.net using c#.I have a problem that currently i am using ajaxcontroltoolkit version 3.0.20820.0 but in this toolkit i don't have Editor Ajax control so i want to upgrade it with new version ajaxcontroltoolkit version 3.5.40412.2
When i upgrade it then my old ajax control is not working like validatorcalloutextender and requiredfieldvalidator etc.
so please tell me how can i upgrade ajaxcontroltoolkit version from 3.0.20820.0 to version 3.5.40412.2
i also use in web.config file but not successfull.
View 1 Replies