Asp.net - Create A Querystring So When A User Switches Languages, The URL Changes To ?lang=NL?
Jan 30, 2012
I'm trying to create a querystring so when a user switches languages, the URL changes to ?lang=NL, for example. I have this in the code behind on homepage.master (VB, NOT C#):
Me.Request.QueryString("lang") <> Session([Global].SESSION_KEY_CULTURE) Then
Visual Studio underlines it in blue. When I hover over the left side of the statement, it says "Property Value Must Assign to the property or use its value" When I hover over the right side of the erred statement, it says, "End of Statement Expected".I'm not sure if the code I was given is C#, but when I use the Teleflex translator to check, it says "EOF Expected" and won't translate. All of this is tied into 3 classes I created, BasePage.vb, Culture.vb, and Global.vb. But I think it's just this line that's screwing everything up.
[code]...
View 3 Replies
ADVERTISEMENT
Aug 30, 2010
How can i close my vb.net application when user shutsdown, restarts, log off or switches user?
View 6 Replies
Apr 20, 2009
let's say i have this application running, preset size. and there are other applications, like, firefox, vb, etc. in the background where i can click on them to bring them to front and use. now, when that's done, i'd like my application to minimize by it's self instead of just becoming a application that got sent to the back of another one.. the minimize is just to get me started, since i'll probably resize it to a button or so.just a squirrel looking for my nut...
View 4 Replies
Oct 27, 2011
When user clicks on a button on my form, it sends the datagridview on that form to another class that [basically] does a bunch of stuff and shows a dialog with a print preview. Everything works perfectly fine, except that if a user switches around columns it won't print them in that current order. For example, if user moves the LastName column before FirstName column, then it should print in that order, but it prints in the column order that the datagridview was originally loaded. The dgv1, is the datagridview that was originally loaded, not the current one. [Code]
View 10 Replies
Jun 28, 2009
I am using or trying to use the mp3 tag switches to create a lame options string. Here is a list of the switches that I am currently using;
--tt "title"
--ta "artist"
--tg "genre"
Here is the code I am using;
Private Sub gbtnCreateString_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles gbtnCreateString.Click
'For Encoding ONLY. Decoding to .wav = NO MP3 tags.
'Exception Prevention
[Code] .....
I then add the lblLameOptions.text to the Lame.Arguments = lblLameOptions.Text. The following example is for mp3 to mp3. The text would display this;
--resample 44.1 --tt TNT.mp3 --ta ACDC
--tg ClassicRock
View 3 Replies
Oct 12, 2009
How can I remove the Request.QueryString without doing a Response.Redirect()User click's on a link like:[URL]
View 1 Replies
Jun 24, 2010
I'm an inquisitive .NET student without any commercial working knowledge and I have been puzzled by what exactlty are .NET languages meant for? Q1.If you look on job websites, .NET seems mainly used for web applications, not much for Windows applications? (My dream job is to develop standalone small Windows applications.)
[Code]...
View 11 Replies
Jan 24, 2010
Is there a way for me to create multiple projects using different languages under 1 solution in VS 2008? If so, how?
View 3 Replies
Jan 30, 2012
I somehow managed to make my company's website in 9 languages, using Visual Studio 2010 / VB / ASP.NET 4.0. I believe I'm using sessions. But you can tell for sure if you see the code provided below. I know this message is long, but I really need help.
It's a multilingual site, and I managed to put flags on the homepage. When I click a flag, the page's text changes to that language. When you click the French flag, it gets the information from the "FR" .resx resource file in my apps_GlobalResources folder. It stays on that language for the end-user's entire session. Great! Well, not so great.
The URL, for instance, about.aspx, remains about.aspx. Granted, the text changes to French, but I've been told that it's recommended to make it look like, if the client chooses French, for example, [URL] (For reference, if anybody is kind enough to delve into this issue, which may be a simple one, all of my files I've used in this are included below -- and they're kinda lengthy)
<asp:LinkButton ID="LinkButton6" runat="server"
CommandArgument="de" OnClick="RequestLanguageChange_Click"
class="flagbutton">
[code]....
View 1 Replies
Nov 27, 2010
visual basic.net is case insensitive so it allows the coder to write without caring or remembering the casing of variables. it also relieves from the 'undeclared variable' errors if you use the variable in another case than the one used in declaration. The fact that its line termination is a line feed makes it even more readable unlike C# or c++ that need good care in the casing and contineous war with following up with the {}, matching them and figuring out which is for which.my question is what are the advantages of c# over vb knowing that both get compiled to MSIL so there is almost no performance difference between the two languages?
View 1 Replies
Jun 1, 2010
I'm trying to create a software program for translations between different languages. Thiseffort started some years ago, with VB6. This program i try to write will beopen any pair of languages could be added and also new words or expressionscould be added in the respective dictionaries.
[Code]...
View 3 Replies
Jun 1, 2010
I'm trying to create a software program for translations between different languages. This effort started some years ago, with VB6. This program i try to write will be open any pair of languages could be added and also new words or expressions could be added in the respective dictionaries.
For this I have great need to be able to move across different languages and their systems of writing, in other words keyboard layouts etc. According to documentation from MS and other sources I used the appropriate class of InputLanguage. I have 2 InputLanguages one source and another target language. I declare then normaly
[Code]...
View 1 Replies
Aug 17, 2010
how to create tree view with multi languages in vb.net
View 1 Replies
Mar 28, 2011
I have an XMl string in a Field of a mySQL Table. I load an XMLdocument (xmlDoc) from that string
I then Search for a node and change an attribute. All good in here.Then I want to save changes that i made to the XMLDocument in string format so i can update my table in the DB.
How can I do this.?
If I execute xmldoc.save(), well, it will save a XML file. How can I save the changes that I have made but instead of savig the file, save it as a string so I can save it in my table.I really do not want to parse the XML string as a normal string to search my parameters and save it.
I am working on vb.net, but if you have code in other .net lang, no problem.The DB is in MySQL
View 2 Replies
May 14, 2009
II am trying to create a toggle button that switches a list to a range and then back to a list if needed. I am able to get it to do both but when I add an item to the list, convert to a range and then convert back to a list it leaves off the last items I entered.I tried to work in a code to select all cells but I must not be putting it in the right place.This is what I have so far:
ActiveSheet.ListObjects.Add(xlSrcRange, Range("$A$3:$AE$7"), , xlYes).Name = _
"List1"
I realize the problem is the $AE$7 (the $A$3 is correct)
View 1 Replies
Jan 26, 2010
I am utlizing a piece of code for an FTP upload process that we want to occur when the check mark is checked, The download function (virtually same structure) works extremely well and without any issues. But the uploadfile function merely creates a file on the destination path called what it should be called, but does not upload any information. I think there is some uploadstream that I have to invoke which I am not. This is just the code starting at that process.
ftp.Method = System.Net.WebRequestMethods.Ftp.UploadFile
'If we were using a method that uploads data e.g. UploadFile
'we would open the ftp.GetRequestStream here an send the data
[CODE]...
View 3 Replies
Jan 22, 2009
It is my first time to program using VB. I need to use 3 buttons on the top to do different work. When each button is pressed, different screen with a lot of tool boxes pops up, but in the same form. Can anybody tell me how to switch to different screen after button switches? E.g. when program runs, the first screen pops up together with the first button. If I press the second button, do I have to write code manually to turn off these tool boxes and turn on the boxes for the second button? Any easier way using Visual Studio to draw boxes for the second button?
View 3 Replies
Nov 30, 2010
This may be a dumb question, but I am stumped. I wrote a simple desktop application in vb.net (vs2005) and published it via the "deploy" method. After I deployed the app and ran the deployment exe - the application runs fine. However, I have recently added some command line switches so I can run the app via a scheduled job. But I cannot find the "exe" file in order to run the application from the command line. Am I missing something or did I deploy/publish the application wrong?
View 1 Replies
Sep 24, 2010
I am trying to figure out how to make a program which can accept switches like cmd.exe /k or /c basically i want it to accept commands by myapp.exe /c mycommand.i tried searching and googling but no luck. Also is there a way to run a function like that? And if anyone is wondering why then basically i am copying a script to my domain computer and executing it. This i already have done but problem is its just getting too much copyin multiple scripts and executing i would put everything in on and run em by switches.
View 2 Replies
Nov 30, 2009
i have a drop down box, with 2 Options Yes and No,what i want to do is
if questBox = Yes
do this
else if questBox = No
do that
end if
but not sure how to do it.
View 1 Replies
Nov 24, 2011
I need to define some roles in my program with defined permissions. Let's say the administrator can have access only to certain features. The officer in charge to certain features and the user as well. for example, I have several group boxes and the user can access one of it only. So how i do manage these permissions? What I want do is have the roles already with the defined permissions. When I create the user and assign the role, the user should get the permission automatically.
View 6 Replies
May 31, 2012
I thought I postet this yesterday but I can't find my thread so if this is a duplicate please point me at the original one. Background: I need to create a user account and Modify it's registry before the user logs on the first time. Creating the account is done by using the Winnt provider (works great). To create the profile I'm trying to use Process.start to launch a process as the newly created user. With the use of loaduserprofile property the users profile gets created and i can do my regwrites without problem.
[Code]...
View 11 Replies
Sep 10, 2009
how to open excel with switches using vb.net, similar to what "Run.." does in Windows.. eg: this is what you would put in the "Run" ComboBox : excel.exe /r "C:ook.xls"
View 1 Replies
Jul 16, 2009
I'm doing some very basic ground work, I know someone who is building a model train set and believe now you can control the track switches etc via computer, does anyone know anything about these? could something be built in VB to do this?
View 9 Replies
Dec 9, 2011
I like to have a code which switches cursor to 2 lines by clicking a button (or with checkbox). Both lines starts from the edge of window and at the intersection is the cursor's position.
View 1 Replies
Jul 10, 2009
I'm using VB2008 Shell function to execute file with arguments. But I'm not sure how should look my PathName in Shell function with all necessary arguments and command-line switches. Without arguments: [Code]
View 4 Replies
Feb 3, 2012
I currently have a subroutine that switches focus to a textbox when TabPage2 is selected. This works fine. [code] However, this doesn't prevent the Textbox from losing focus when TabPage2 is clicked on even though it's the active tab.I have a single button on that tab that disables the textbox if clicked using this: [code] Apart from that button being clickable, I would like the textbox to never lose focus as long as TabPage2 is the active tab.
View 3 Replies
Jul 7, 2009
I am refactoring some legacy code. The app was not using querystrings. The previous developer was hard coding some variables that the app uses in other places.
Like this using VB.NET
so.Cpage = "ContractChange.aspx"
[code].....
View 4 Replies
May 17, 2010
i have this querystring that shall open up my page.[URl]..Now when this page loads, on page_load, I want to pick up email and stuid in two different variables. So I can use them to insert into my database (sql server)
how can this be done in vb.net
View 1 Replies
Sep 23, 2010
I have a GrideView bound with table,I added one hyperlinkfield as you can see the code below:
<asp:HyperLinkField NavigateUrl="~/Logout.aspx?category=Mobile&&ID=" Text ="logout"/>
As you can see that I am sending 2 QueryString with URL. I am getting both correctly as long as I am sending static data. The problem is that I want to send one of my Grideview column value through QueryString something like this i want and I tried:
<asp:HyperLinkField NavigateUrl="~/Logout.aspx?category=Mobile&&ID='<%GridView1.SelectedRow.Cells(1).Text.ToString%>'" Text ="logout"/>
I am not getting the ID value as per column value but the same Gridview code like this
"GridView1.SelectedRow.Cells(1).Text.ToString".
How should I correct this syntax so i can send my column value through URL.
View 1 Replies