|
Hi All,
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,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
This article will definitely answer most of your queries.
Using Globalization and Localization in ASP.NET[^]
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.
|
|
|
|
|
Thanks for your reply Rahul,
I tried the resource file approach but somehow the label text is not changing...
Is there something that I am missing?
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
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>]
|
|
|
|
|
Which free Google API I can use to show,save and edit googlemarkers in map?
|
|
|
|
|
I would start looking here[^] first.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hello,
I created a WCF service into my asp.net app in order to store some messages into queue using MSMQ before send them to users. The first part work fine because i can see all messages in a pickup directory with Windows Explorer. I also can see the message number using windows service manager throw my private queue.
The second part don't work i.e my messages aren't sent and i have no error message. I don't understand where the problem come from. The code i use is following :
msmqQueuePath is my Queue name
Public Sub GetMailMessages() Implements ISvcEmailManagement.GetMailMessages
Try
Dim _msmqQueue As New MessageQueue(msmqQueuePath)
_msmqQueue.Formatter = New BinaryMessageFormatter
_msmqQueue.MessageReadPropertyFilter.SetAll()
AddHandler _msmqQueue.ReceiveCompleted, AddressOf msmqQueue_ReceiveCompleted
Dim returnValue As IAsyncResult
returnValue = _msmqQueue.BeginReceive()
signal.WaitOne()
Return
Catch ex As Exception
Dim Msg As String = ex.Message
Throw ex
End Try
End Sub
The receiveCompleted function is :
Public Sub msmqQueue_ReceiveCompleted(ByVal sender As Object, ByVal e As ReceiveCompletedEventArgs)
Try
Dim emailMsg As EmailEntities.CEmailMessage = e.Message.Body
Dim mailMessage As MailMessage = New MailMessage()
mailMessage.To.Add(New MailAddress(emailMsg.sTO))
mailMessage.From = New MailAddress(emailMsg.sFROM)
mailMessage.Subject = emailMsg.sSUBJECT
mailMessage.Body = emailMsg.sBODY
Dim oclient As SmtpClient = New SmtpClient()
Try
oclient.DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory
oclient.Send(mailMessage)
Catch ex As SmtpFailedRecipientsException
Dim i As Integer
For i = 0 To ex.InnerExceptions.Length - 1
Dim status As SmtpStatusCode = ex.InnerExceptions(i).StatusCode
If (status = SmtpStatusCode.MailboxBusy) Or (status = SmtpStatusCode.MailboxUnavailable) Then
System.Threading.Thread.Sleep(5000)
oclient.Send(mailMessage)
Else
MsgBox("Failed to deliver message to {0}", MsgBoxStyle.Information, ex.InnerExceptions(i).FailedRecipient)
End If
Next i
Catch ex As SmtpException
Dim msstatus As String = ex.Message
End Try
Catch ex As SmtpException
Dim msstatus As String = ex.Message
Catch ex As Exception
Dim msstatus As String = ex.Message
End Try
End Sub
Thanks a lot for any help
|
|
|
|
|
We are using crystal report 10.2 in our web application which is running on dotnet framework 2.0.Some time we are getting an error export report failed.But if we put an enter in the database field,report is getting generated without any error.Our data base is oracle 10g.Please help to rectify the problem.
|
|
|
|
|
I use Timer1 to refresh few parts of masterpage but the timer refresh all page, and i need to refresh only specific parts of masterpage.
Is possible to refresh part of masterpage by using Timer1 Ajax Control?
|
|
|
|
|
I'm no expert in this area but I'm somewhat familiar with it. Call an AJAX method for the specific portion(s) of the master page maybe? Or put it in an UpdatePanel?
djj55: Nice but may have a permission problem
Pete O'Hanlon: He has my permission to run it.
|
|
|
|
|
Thanks for reply.
I used UpdatePanels and masterpage get all refresh insted of refreshing only controls which are inside updatepanel.
|
|
|
|
|
|
I solved by removing other controls from updatepanels, i have put controls inside updatepanel only that controls which must be refreshed, other controls i removed from updatepanels. Now works great.
Thanks for assistance.
|
|
|
|
|
---TRY---
<div>
<asp:UpdatePanel ID="UpdatePanel4" runat="server">
<ContentTemplate>
<asp:Timer ID="Timer1" runat="server" ontick="Timer1_Tick" Interval="300000" >
</asp:Timer>
</ContentTemplate>
</asp:UpdatePanel>
</div>
---OR---
<asp:UpdatePanel ID="UpdatePanel4" runat="server">
<ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
</Triggers>
<asp:Timer ID="Timer1" runat="server" ontick="Timer1_Tick" Interval="300000"> </asp:Timer>
</ContentTemplate>
</asp:UpdatePanel>
|
|
|
|
|
So on the users page the user can use a drop down to select their name and then click 'view' to view the list of holidays they have previously booked. From here they can choose 'select new' which will allow the user to create a new holiday. This all works fine however I want the username to be stored from the original drop down and displayed in the creating page. Instead of having 2 seperate drop downs on each page.
I have tried:
My first drop down in my Index.chtml
@Html.DropDownListFor(model => model.HList4DD.First().HolidayDate, new SelectList(Model.PList4DD, "Id", "Name", Model.currentPersonID), "--select--")
My second drop Down on the create view:
@Html.DropDownListFor(model => model.PersonId, new SelectList(ViewBag.Id, "Value", "Text"),"---Select---")
-----------------------
I wanted to change this to the name of the user previously selected so in my get of the Index I have used:
TempData["CurrentPersonID"] =currentPersonID;
Then to replace my second drop down im trying something like:
@TempData["CurrentPersonID"]
<div>
@Html.LabelFor(model => model.currentPersonID, "currentPersonID")
@Html.ValidationMessageFor(model => model.PersonId)
</div>
Any suggestions? Thanks
|
|
|
|
|
I have implement comet.when client request to server,that request wait to server till the new message arrives.when new message arrives it get back to client.after completion of responce processing client request to server again and wait for new message.
This is working fine for upto 10 request wait at server but then after server can't responce of new request and site getting hanged and have to recycle the application pool.I found the state of all request is ExecuteRequestHandler in workerprocess of IIS.
Please tell me what should i do??
|
|
|
|
|
Try to use client side code.
may be you have used more session or application state
|
|
|
|
|
string strUsername = "kapil.sh06@gmail.com";
string strPassword = "XYZXYZXYZZXYZXYZXYZXY";
string strSignature = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
string strCredentials = "USER=" + strUsername + "&PWD=" + strPassword + "&SIGNATURE=" + strSignature;
string strNVPSandboxServer = "https://sandbox.paypal.com/cgi-bin/webscr";
string strAPIVersion = "2.3";
string strNVP = strCredentials + "&METHOD=DoDirectPayment&CREDITCARDTYPE=VISA&ACCT=400000500002000&EXPDATE=122017&CVV2=808&AMT=212.95&FIRSTNAME=Rohit&LASTNAME=Singh&IPADDRESS=192.168.200.31&STREET=1234+Easy+Street&CITY=San+Jose&STATE=CA&COUNTRY=United+States&ZIP=95110&COUNTRYCODE=US&PAYMENTACTION=Sale&VERSION=" + strAPIVersion;
HttpWebRequest wrWebRequest = (HttpWebRequest)WebRequest.Create(strNVPSandboxServer);
wrWebRequest.Method = "POST";
StreamWriter requestWriter = new StreamWriter(wrWebRequest.GetRequestStream());
requestWriter.Write(strNVP);
requestWriter.Close();
HttpWebResponse hwrWebResponse = (HttpWebResponse)wrWebRequest.GetResponse();
StreamReader responseReader = new StreamReader(wrWebRequest.GetResponse().GetResponseStream());
string responseData = responseReader.ReadToEnd();
responseReader.Close();
Response.Write(Server.UrlDecode(responseData));
this code is not working proper please help me and suggest me right Code .. for paypalPro
|
|
|
|
|
I would suggest starting here.[^] They should have samples to show you. It is likely your URL or a parameter is off.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
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.
any suggestions?
Thanks
|
|
|
|
|
No doubt each employee has a username/name so you can use use compare the username/name of the logged in user to the username/name of the person for whom the holiday booking id for.
|
|
|
|
|
Hi,
I get error while using this code ?
<asp:TemplateField>
<ItemTemplate >
<asp:ImageButton ID="ImageDeleteBuyingKala" ImageUrl="~/ServerFile/ApplicationFiles/Icons/Button/add.png"
Width="25" runat="server" OnClientClick="Open('<%# Eval("Id") %>')" />
</ItemTemplate>
</asp:TemplateField>
I have Solved this via :
<script type="text/javascript">
function Open(IdItem) {
// to handle in IE 7.0
if (window.showModalDialog) {
window.showModalDialog(location.protocol + "//" + location.host + "/" + "WorkFlows/Forms/BuyingKala/Estelam.aspx?Id=" + IdItem, "Show Popup Window", "dialogHeight:450px,dialogWidth:80%,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,modal=yes,center:yes");
}
// to handle in Firefox
else {
window.open(location.protocol + "//" + location.host + "/" + "WorkFlows/Forms/BuyingKala/Estelam.aspx?Id=" + IdItem, "Show Popup Window", "height=450px,width=80%,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,modal=yes,center:yes");
}
// window.showModalDialog(location.protocol + "//" + location.host + "/" + "WorkFlows/Forms/BuyingKala/Estelam.aspx?Id=" + IdItem, null, "height=290px,width=400px,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,modal=yes")
}
</script>
<ItemTemplate>
<asp:ImageButton ID="ImageEstelamBuyingKala" ImageUrl="~/ServerFile/ApplicationFiles/Icons/Button/add.png"
Width="25" runat="server" OnClientClick='<%# " Open("+ DataBinder.Eval(Container.DataItem,"Id") + ");" %>' />
</ItemTemplate>
now the problem is that when that child page open and i click the save button to save the items in the gridview in child page it repoen that child page once more .
modified 17-Dec-12 5:32am.
|
|
|
|
|
What is the error?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hi friends. is it possible to use an asp web site like a telephone. i ve made a website. there are 10 users of this website. ı can understand who is online and who isnt. is it possible to put a button whose text is "talk to this user" next to each user and send and play this sound stream at remote side. I found this Sending and playing microphone audio over network[^] but it is quite complicated to me. Do you have an easier idea.
|
|
|
|