Topics
-
- 0 replies
- 755 views
Hi Every Body. I have used the localization in the ASP. Net but now I want to know that is there any other way possible to provide the localization in the dot net. Actually the problem is that I am building an application which has more then 500 hundred pages and I have to localize the application in 10 different languages. As you know that we have to provide a separate resource file for each page and for each language. which means that I have to create 5000 resource files. Currently I just want to know that is there any other more efficient way to provide the localization in the Asp.Net. I will appreciate your responses. Regards, ----- Asif Raza Ashraf
Last reply by AsifCh, -
-
- Leaders
- 2 replies
- 832 views
Say I have the following... ArrayList arr1 = new ArrayList(); ArrayList arr2 = new ArrayList(); ArrayList arr3 = new ArrayList(); arr1.AddRange(new int[] { 1,2,3,4,5,6,7,8,9 }); arr2.AddRange(new int[] { 2, 5, 7 }); I need to populate arr3 with values that are in both arr1 and arr2. I'm currently doing it with the following, does anyone know of a better way of achieving this? for(int i = 0; i < arr1.Count; i++) if(arr2.Contains(arr1[i])) arr3.Add(arr1[i]); Just to clarify arr3 should now contain 2, 5 and 7. As I've been typing this post I've realised that in this example arr1 is larger than arr2 so it would perhaps be prudent to loop throug…
Last reply by Iceplug, -
-
-
- Leaders
- 4 replies
- 4.6k views
Im trying to get my collision detection to work and the picture boxes move in certain directions when they hit each other. Is there anyway to change this code so that It specifies a certain side? If Me.linkviewer.Bounds.IntersectsWith(enemyviewer.Bounds) Then Me.linkviewer.Left = Me.linkviewer.Left + 100 Me.enemyviewer.Left = Me.enemyviewer.Left - 100 End If so if linkviewer hit enemyviewer on the right, linkviewer would go left and enemyviewer would go right and vice versa. same for top Thanks for any help
Last reply by Iceplug, -
-
-
- Administrators
- 5 replies
- 2.9k views
Hello folks, The transition from VB.Net 2005 to C# 2005 is not always a smooth proccess, even though the synthax is almost identical in some cases. The code below exemplifies a MS Access Database Backup routine I'm trying to tranlsate to C# 2005: --------------------------------------------------------------------------------------------------------- Private Sub BackupToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BackupToolStripMenuItem.Click Dim Time As String = Format(Now, " dddd dd-MM-yyyy à's' HH'h' mm'min' ss'seg'") Dim FileName As String = "myDB " & Time & ".mdb" Dim SavePath A…
Last reply by jcrcarmo, -
-
-
- Leaders
- 1 reply
- 923 views
conn = New MySql.Data.MySqlClient.MySqlConnection(ReadConnectionString) If conn.State = ConnectionState.Closed Then conn.Open() End If This code is working when the ConnectionString is correct with the server is detected. But, if the server is unavailable, the process/winform will hang over here for a very long time. Do u have any idea on how this happen? and how to avoid this from being happen? Cause when the server is down, customers would be very mad already, and if they see this thing hanging, I think I would gain some bullets from them... Please comment...
Last reply by snarfblam, -
-
- 2 replies
- 980 views
Could someone point out how to create an Access database with ADO? Microsoft has an article mentioning that CREATEDB allows a user to create a new database (see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnacc2k/html/acadvsql.asp), but it does not show how to use it. I like being able to use a database with my program, but if some bozo deletes it, the whole program becomes useless.
Last reply by joe_pool_is, -
-
- Administrators
- Leaders
- 2 replies
- 919 views
I'm not sure if this should be here or in the DirectX section, but here goes. I'm using Visual Basic.NET 2005 Express I have program that uses Managed DirectX 9.0c on the December 2005 Update; however, the .NET Framework v2.0 MDX modules are not complete, and only one is released, I am trying to use the v1.1 MDX modules. I am using XP x64 and for some reason the code is combiled for x64, but the MDX v1.1 binarys do not have an x64 version, so I want to use WOW64 to run the x86 versions. When I run the program it does one of two things, either no code in my Form_Load is executed, or I get an error message ' is not a valid win32 application.' Any help or advice …
Last reply by snarfblam, -
-
-
- Administrators
- Leaders
- 8 replies
- 4.1k views
If I interrupt debugging by clicking the "Break All" (") toolbar button, I can't evaluate any expressions in the Immediate Window. I get the message "Unable to Evaluate the Expression" whenever I try. But if I call the Stop statement in code, then I can. So I end up putting code in my form like: Private Sub picCanvas_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles picCanvas.DoubleClick If System.Diagnostics.Debugger.IsAttached Then Stop End Sub so that I can access the Immediate Window and query values. Is this right that I have to do this?
Last reply by rbulph, -
-
- 3 replies
- 2.7k views
I am trying to POST data to a form in my VB.net app and am getting an error from the particular web server that an HTTP protocal has been. When I anaylzed the data the my app is passing versus a web browser for example I noticed that the test my application is sending is plain text such as this. message= this is a regular message While the web browser was sending information like this: message= this+is+a+regular+message Is there sometype of library in VB.net that will convert my plain text to the format the web server would like to see. Note here is my VB.net code POST code snippet: ' Send Request, If Request If (Method = HTTPMethod.HTTP_POST) Then…
Last reply by ZeroEffect, -
-
- *Experts*
- 3 replies
- 2.4k views
hi, i would like to build an watchdog for my app, so that if my main app crashes (freeze, runtime error msg, etc ) the wacthdog restarts it. so my problem is how to detect if my app has crashed! system.diagnostics doesn't provide any functions to detect if an process has crashed! i was thinking about writing some timestamp into a file and if after a period of time there wasn't a update, the watchdog will asume that the app has crashed! does anyone here have a better idea? thx & greets matthias
Last reply by Nate Bross, -
-
Was anyone ever big into the online Qbasic community? I remember spending whole weekends downloading qbasic games, and modifying the source to give me unlimited health, lives, etc. I was checking out some websites and it appears the community is actually growing. Too bad the games are getting worse. On that note, around the time I was into Qbasic, I played a game called Solar Winds. What a fantastic game. If anyone wants to play, http://www.download-game.com/Adventure_Games.htm What a great storyline. Also, don't bother saving your hyper drive energy for the long trek to the alien homeworld. If anyone is interested, Im going to start programmin…
Last reply by Nate Bross, -
- 1 reply
- 1.4k views
Wondering that.. haven't been able to do it. Any help will be appreciated. Thanks in advance.
Last reply by geezup_2000, -
-
- Administrators
- 4 replies
- 951 views
I create an asp.net project. through the server explorer I drag the author table from pubs database. My server name is called ANAT2005. through the sqldataadapter I generate dataset. I put in my page a button and a datagrid, put 2 lines in code in button_click: sqldataadapter.fill(dataSet11); datagrid1.databind(); I enter the appropriate datasource and datamember in the properties of datagrid and when I view in browser I get the following error: I installed the dotnet and sqlserver in this computer only few days ago. In an older computer I don't have the problem. Server Error in '/WebApp6' Application. -----------------------------------------------------…
Last reply by anat2403, -
-
-
- Administrators
- 5 replies
- 3.8k views
I'd like to have a menu in the menustrip of my form which doubles up as the context menu of a control in my form. Can I do this, or do I need to have a context menu which replicates every item in the menustrip menu?
Last reply by rbulph, -
-
- 1 reply
- 3.9k views
i have databound a combo box to a column in a table like so: this.comboBox7.DataSource = ds.Tables["treatment_main"]; this.comboBox7.DisplayMember = "main_cat"; when the value of comboBox7 is changed i want to populate a second combo box. when i try to grab the value of the combobox7 i cant. i have placed this code in both the SelectionChangeCommitted and the SelectionChanged methods, like so: ComboBox cb = (ComboBox) sender; string d = cb.SelectedText; the problem is that in when i try to get the selected text in the SelectionChanged method i get this error "index and length must refer to a location within the string" when i try to ge…
Last reply by jccorner, -
- 0 replies
- 710 views
I have a datagrid with three date fields (among other fields) in it that loads from a database table. When the user edits the grid, there is a clickable image that triggers some javascript that opens a little window with a calendar control. When the user clicks the control, the date in the edit textbox is changed. The grid was working fine until I added a dropdown to enable the user to select the type of records he or she wants to look at. Now, when the grid is in edit mode, you can click on the image, the calendar loads but clicking on the calendar no longer changes the date in the textbox. Why would the addition of the dropdown cause that to happen? Here is the cod…
Last reply by lorena, -
- 1 reply
- 1.1k views
ive had to write a coupple of classes to connect to data sources like databases in the last few weeks and ive found myself repeating a lot of code. im wondering, what methods/properties do you put in your abstract datasource connection class, and what do you put in the class that implements this abstract class? how do you structure a class that connects to a datasource so as to make it as reusable as possible
Last reply by HJB417, -
-
- Administrators
- 3 replies
- 771 views
Hi I am successfully uploading the above files to a web server, prior to each file being uploaded, I check to see that it is the correct file type. But how can I check the contents of the file? i.e. how do i stop someone creating a script and saving it as as .jpeg/.jpg (don't even know if this is possible) and then uploading it to my web server and letting it cause absolute havock. Mike55.
Last reply by HJB417, -
-
-
- Administrators
- 8 replies
- 1.7k views
To access an application on a shared network folder, you need to adjust frameworks intranet security to fulltrust. Of course you can do this with the ConfigWizards. But now I want to simplify the procedure for the clients, creating a little tool, which does the same automatically. So how can I set the local intranet access to fulltrust by code, supposing that framework is already installed? Must be something with System.security.Permissions / SecurityManager
Last reply by Fritz, -
-
- 2 replies
- 1.9k views
Hi everybody, The following code runs fine util the commented lines. The debugger halts and sends me a message saying that "custView is a variable and is being used as a method". Can anyone shed some light on this? Thank you very much. Best regards, JC :) -------------------------------------------------------------------------- private void btnLogin_Click(object sender, EventArgs e) { System.Data.DataView custViewLogin = new System.Data.DataView(SASCRDataSet.tabUsers, "", "Login", System.Data.DataViewRowState.CurrentRows); System.Data.DataView custViewPassword = new System.Data.DataView(SASCRDataSet.tabUse…
Last reply by jcrcarmo,
-
Who's Online 0 Members, 0 Anonymous, 56 Guests (See full list)
- There are no registered users currently online