with help of coding it is possible with out any data base
If you plan to translate by your own, you would need database! If you want the conversion without too much of an effort, you can try a 3rd party translation service where you pass on the English words and get back the translated value. Google translate could be of help to start with.
You have to close the connection first before issuing a response.redirect, well you should at least, or else it can cause an error, or leave too many copies of the connector open. I would have to do research on that to confirm it, but I don't redirect when reading or writing data to a database.
Response.Redirect is the last thing you want to do in a sub, after closing and disposing of objects.
It's actually better to write a function without response.redirect, and have the function return a result or exit code, and then redirect.
if (0 = createStoredProcedure()) then
I am using Visual Studio 2008 to develop web application in Windows XP Internet explorer-8. If i run first time i wont get any error. In 2nd time i will get Unable to start program http://localhost:1837/default.aspx after that every time it is coming like that. I am not able to get debug point. How to solve this issue.
So a drop down is used to select the users name, then click 'view' and it will display all the holidays this user has previously booked.
From here the user can click 'create new' which will bring them to a create new page. Instead of having to re-select their name from another drop down i carried across the currentuserID and replaced the second drop down with the users ID.
Everything was working fine with 2 separate drop downs, the user could book holidays etc... However now (after I changed the second drop down to hold the ID value) I am getting an error from my listHoliday Method in my controller:
Error: InvalidOperationException was unhandled by the user code Sequence contains no elements
var dbPerson1 = (from p in db.People
where p.Id == PersonId
Could anyone advise what to do? Im lost thanks for any replies.
First, make sure the proper set of ID values is actually being bound to the drop-down. Secondly, the "Single()" method will throw that exception if the query does not return any results. If it's possible that the "p.Id == PersonId" condition could yield ZERO results, use "SingleOrDefault()" instead, which will assign a null value to dbPerson1 if nothing is found with the query.
I'd say debug with a breakpoint and verify that, for one, the drop-down has the correct ID's assigned to it, and also that "PersonId" is capturing the correct value. Also, make sure that the "PersonId" does in fact exist in the "People" table.
djj55: Nice but may have a permission problem
Pete O'Hanlon: He has my permission to run it.
I want to support multiple languages in my web application, here are few queries that I have
1) Do I need to install the fonts for those languages?
2) Using resource file will help me to change the images and text on the page for that language.
3) Is the Operating system involved anywhere in this process, e.g. if my application is being accessed by a person in China with a Chinese OS installed on his machine, will it affect?
Expecting your expert comments on the above.
Thanks & Regards,
"Everyone is a genius at least once a year"
Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore, Dream. Discover.
I don't consider an expert myself, but I have some comments
1. Install WHERE? If you use web fonts or similar technique to display text on your site then yes, you need to have the fonts that support your languages. If you use one of standard fonts, then users have to have it installed on their machines.
2. Yes, resource files will help you but it is nowhere near the out-of-the box feature. Plan ahead and don't hardcode anything that can be different in other languages.
3. It depends. Not strictly the OS, but regional settings on user machine. Keep in mind that many elements may display differently especially if you what to parse user input. For example decimal separator may be '.'(dot) or ','(comma), currency symbol may be before or after amount and date formats are pure wild
"My software never has bugs. It just develops random features."
Please go through this atricle once..
<a href="http://www.codeproject.com/Articles/13153/Multilingual-Support-for-Web-Applications">Multilingual Support for Web Applications</a>[<a href="http://www.codeproject.com/Articles/13153/Multilingual-Support-for-Web-Applications" target="_blank" title="New Window">^</a>]
At the min, any user can book a holiday for ay employee,
I have added [Authorization] to the controllers, and @if (User.Identity.IsAuthenticated)
in the layout so only logged in users can view the pages. But how can I go about only allowing users to book a holiday for them selves
something like if loggedInUserID(is this assigned automatically when a user is created?) =currentPersoID, although this is only a guess and I would prob have to assign the same loggedInUserID to personID.