In a web form application I support, I need to have the web pages display in the following new languages: Karen, Burmese, Nepali, and Arabic. Right now the application is displayed in English and Spanish. My question is how to have the pages display in the various languages and here is what I am thinking: Have the html that is generated point to the various languages by using different fonts. For example: For the Karen language, the font would be 'Karen Hiland', For Arabic language the font would be 'Arabic (Iraq), If the above would not work, what would the web form need to make the html display to show what language is currently being displayed? if that does not work, what would you suggest I do to accomplish my goal?
dcof
Posts
-
web form needs to be used for several languages -
keep web form drop down list from chagningIn a vb.net 2012 web form application, there is a page that is only accessed by the administrators of the application. There are 2 drop down list options for the user to select and one submit button. Basically one drop donw list is the language that is to be selected and the kind of letter that is to be generated. The letter is a 'template' generic letter that the administrator changes. After the administrator hits the submit button, the template letter is changed in the database and one dropdown list shows the language that was selected. The problem is the kind of letter drop list does not stay and show what was selcted. The kind of letter drop down lists displays what the intitial drop down list looked like initially. Thus would you show me how to keep is the kind of letter drop down list from changing once the user clicks the submit button?
-
On web form button, prevent user from clicking the button more than 1 timeIn a vb.net 2010 web form application that uses web form controls, there is a 'process' button where the user can click on the button lots of times. This causes problems in the application for every time the button is clicked on, that many records are created in the sql server 2016 database. I would like a solution on how to prevent the user from clicking on the button more than one time. I have a 'click button' code to catch when the button is clixked right away. But I would like to know what I can do so the user knows they cannot click the button more than once: 1. I could make the button invisible. 2. However I would either like to have a popup message and/or somewhere on the webpage saying they can click on the process button only one time. Thus can you show me the code on preferable setting up a popup menu? If not, can you show me the code on how to display the message on the web form page?
-
test compile mode versus production compile modeThis answers my question
-
test compile mode versus production compile modeWhat you supplied to me is a very good option that works! However on my application, there are the build options for: 1-Development, 2-Test, and 3-Production. Based upon my build options, can I write code the will select only '1-Development' instead of placing #debug in the logic. Or having #debug stand for 1-development? If so, would you should me the code for this?
-
test compile mode versus production compile modeIn a vb.net 2010 application, I have a page_load section of code where I would like to know add extra code unless I need it. Basically if the application is in development or test compile mode, I would like the application to point to a test url. If the application is in production mode, I would like the application to point to a production url. From the page_load section of code, is there a way to knowwhat mode the applicaiton is in? If so, can yhou show me the code on how to accomplish this goal? In addition, if the application is in production mode is there a way to not have the development or test logic be accessed by the application? If so, would you show me that logic?
-
html fonts display differentlyOn a web page,letters are generated on the web for parents where student letters need to be generated. The html font on the letters are setup to be either: 1. Arial 10 or 2. arial, san serif 10. The letters are display ok, but the font on the letters look different depending upon the font type that is specified on each unique html line. I know that Arial 10 ahould appear on all the lines, however the fonts look different from where Arial 10 versus arial, san serif 10 is displayed. As far as I know, on the lines that say 'arial, san serif 10' arial not being picked up? Can you tell me why? I always thought that if the first font was not available on a particular printer, the second font will be picked up? Thus can you show me what I can do to solve my problem?
-
vb.net parsing of string dataThanks. That answers the question
-
vb.net parsing of string dataCan you show me the query you are referring to? The values you see come in from a text input file from the user. Thus there are no direct dates being accessed directly from the database
-
vb.net parsing of string dataIn a vb.net desktop application, I want to find the substring value of '896', '558957', '5/2/2016', '3150', '1', '018.99', '', '18.99', '8277', '17', '12/4/2017', '1789655895720160502315018.99', 'Y' that is contained with a 'sqlid' string field. An example of the field that comes in is the following:
"INSERT INTO tblInvoiceData(SchNum,InvNum,InvDate,ItemNum, Quantity,UnitPrice,Credit,Amount,VendorId,CatId,Boarddate,RecordId,Imported )VALUES ('896', '558957', '5/2/2016', '3150', '1', '018.99', '', '18.99', '8277', '17', '12/4/2017', '1789655895720160502315018.99', 'Y')"
. I want to display these values so the user of the application can find the record within the input file that is causing the error. This message is displayed basically when there are duplicate records. Thus can you show me the code in vb.net on how to accomplish my goal?
-
vb.net desk app using app.config fileIn the bin directory, there is a runtime config file called 'programname.exe.config'. I do not deploy this when I deploy the application. Do I need to include the 'programname.exe.config' as part of the deployment? if so, when the application is only a user's computer, would I change the 'programname.exe.config' file and/or the app.config file in notepad?
-
vb.net desk app using app.config fileI did not show the values in app.config file for "File_directory_path" and "File_directory_path_KARON", since I just wanted to show you an example. I know what the code is supposed to do by it is not working. The app.config file will not let me change the values outside of the application. The file is locked. Once a user signs on to their computer, I try to change the values in the app.config file. The permissions are locked. The network people say that the user and I have all the rights (permissions) that are needed. I open up the app.config file in notepad in the users computer and the values are not saved. Do you know what else could be wrong so I can not change the permissions. I install the application using the old setup and deployment project that is in visual studio.
-
vb.net desk app using app.config fileThe code in the application looks like the following:
Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
frmMain.GlobalForm = Me
Dim strUserName As String = ConfigurationManager.AppSettings("NameofUser")
If strUserName = "ANN" Then
Dim strDirectoryPath As String = ConfigurationManager.AppSettings("File_directory_path")
If Not (Directory.Exists(strDirectoryPath)) Then
Application.Exit()
Exit Sub
End If
Else
Dim strDirectoryPath2 As String = ConfigurationManager.AppSettings("File_directory_path_KARON")
If Not (Directory.Exists(strDirectoryPath2)) Then
Application.Exit()
Exit Sub
End If
End IfThe code in the app.config file looks like:
-
vb.net desk app using app.config fileIn a vb.net 2010 desktop application, I added an app.config file to the application 2 years ago. I did not so I can point to different directly paths without needing to recompile the application. This change worked at that time. I have not needed to change the application until recently. Now I actually have to recompile the application so the app.config file changes will be picked up. Thus can you tell me what I can do to the application so I can change the app.config file without needing to recompile the application?
-
visual studio 2010 use access 2013 or access 2016On a workstation that uses office 2016 and Visual Studio 2010 and uses access 2016, I want to be able to add a reference to access 2016 within the Visual studio 2010 enviroment. When I look at the following link below: https://bettersolutions.com/csharp/excel-interop/primary-interop-assemblies.htm it is saying to find a path like: C:\Program Files\ Microsoft Visual Studio 10.0 \ Visual Studio Tools for Office \ PIA \ Office14 \ for excel. However I know that I want office 2016 which is version 16. Thus can you tell me the following: 1. Where on my existing computer can I find a reference to access 2016 under visual studio 2010? 2. If this does not exist, can you tell me where I download a dll that where access 2016 can be utilized by visual studio 2010? 3. If this does not exist, can you tell me what version of office that I can use in visual studio 2010 to utilize some version of access?
-
.net web form application using javascriptI am not very familiar with javascript. I only know enough to make minor changes. Thus how do you copy the javascript files? I know that the files end with .js and they are at various locations within the entire solution file. Wouldn't I have to copy all those files to the same directory structure on the server that hosts the website?
-
.net web form application using javascriptAs far as I know when you deploy an application that includes the javascript. How do you deploy the javascript separately?
-
.net web form application using javascriptIn a C# 2010 web form application, I have found some JavaScript statements that will not allow the application to execute when I am using the Internet Explorer browser since some of the objects are obsolete/deprecated. However when I run the application using Firefox, I find that the application runs. I have also noted that some of the Javascript objects in the web form application may be deprecated in the future and to use these items with caution. Thus if I deploy a new version of the current web form application and tell all users to only use Firefox in the next few weeks, I will create a static executable that everyone can use. Then when some of the objects are not allowed in Firefox, the application will still run since I have not changed the executable, correct? Would I need create a new version of the application with the Javascript changes that are required? If this is not true, would you let me know why and potentially what I should do to solve the issue?
-
vb.net editThanks! That answers my question!
-
vb.net editIn a vb.net 2010 application, I have the following code setup so far:
Dim _dtEmailaddress As DataTable = SelectEmailAddress(_dtPersonID(0)("SPA_PersonID"))
Dim _email As String = String.Empty
If _dtEmailaddress.Rows.Count > 0 Then
If IsDBNull((_dtEmailaddress(0)("email"))) Then
_letter = _letter.Replace("&SPA_EMAIL.EVAL", "")
Else
_letter = _letter.Replace("&SPA_EMAIL.EVAL", _dtEmailaddress(0)("email"))
End If
End IfI need to be able to check for email addresses that end with '@opd.org' in the reference called _dtEmailaddress(0)("email"). Thus can you show me the vb.net code so I would know how to use only email addresses that end with '@opd.org'?