Request.Browser[^] which is of type HttpBrowserCapabilities[^] has a property called Browser[^] which you can use to detect the browser that is using the application. From there, you should be able to do a redirect to the specific page depending on what is in the value of that particular property.
Signature construction in progress. Sorry for the inconvenience.
Hi all, my home page accesses a csv file when it loads and populates certain elements on the page with data from the csv file. Right now I have yet to implement authentication so there is no need to login. I tried to see how its performance will be affected by multiple users accessing the csv file simultaneously by hosting this app on my home server and opening the app in multiple tabs in IE.
The page hangs and I had to reset my server each time it hangs. So the question I have is, is opening the same app (copying and pasting the url) in a new tab considered to be using the same session or is it considered to be using a new session.
If the app is hanging due to the same session being used multiple times simultaneously, how do I solve this problem? Thanks for your help.
I have some sample code I cannot get to work. I think its because I'm tired. I am trying to send strings from a randomly generated text file. The goal is to find the lowest random # representative string. I have sent the strings as arguments to a method that is supposed to loop through the text file and see if there is a match and when the string is found display it in a rich text file. When I do this with a messagebox it works fine displaying the correct order of argument matches with text string matches in the loop however when I try to send it straight to the textbox it returns the last match. I know this is a silly way to do this but I cannot use an array or assign variables to the # or use an array.
privatevoid smallBtn_Click(object sender, EventArgs e)
FindSmall("1"); FindSmall("2"); FindSmall("3"); FindSmall("4"); FindSmall("5"); FindSmall("6"); FindSmall("7"); FindSmall("8"); FindSmall("9"); FindSmall("10"); FindSmall("11"); FindSmall("12"); FindSmall("13"); FindSmall("14"); FindSmall("15"); FindSmall("16"); FindSmall("17"); FindSmall("18"); FindSmall("19"); FindSmall("20"); FindSmall("21"); FindSmall("22"); FindSmall("23"); FindSmall("24"); FindSmall("25"); FindSmall("26"); FindSmall("27"); FindSmall("28"); FindSmall("29"); FindSmall("30");
FindSmall("31"); FindSmall("32"); FindSmall("33"); FindSmall("34"); FindSmall("35"); FindSmall("36"); FindSmall("37"); FindSmall("38"); FindSmall("39"); FindSmall("40");
privatevoid FindSmall(string searchKey1)
string path = @"C:Random # File.txt";
StreamReader sr = new StreamReader(path);
for (int k = 0; k < 20; k++)
richTextBox1.Text = "The smallest Number is: " + searchKey1.ToString();
The smallest Number is: 2The smallest Number is: 3The smallest Number is: 5The smallest Number is: 8The smallest Number is: 9The smallest Number is: 14The smallest Number is: 16The smallest Number is: 17The smallest Number is: 18The smallest Number is: 22The smallest Number is: 24The smallest Number is: 25The smallest Number is: 31The smallest Number is: 32The smallest Number is: 34
I thought the break statement was to stop the loop?
sorry I had the break out of focus
that worked great thanks for the help I just could not see it. that happens to me after i've been looking at something for a while.
how would I go about finding the lowest number in a text file w/o comparing each string in order without parsing it into an array and doing a bubble,selection or insertion sort on it.....any ideas, I'm at a loss.
the text file looks like this it is all #s and it is randomly generated each time
the app is run
I have to do 2 things with the text file that is generated. I have to put the #s in order and find the lowest one without using an array or assigning variables to be parsed. I have been researching the file class trying to see if i could create a temp file to hold them and then sort the temp file contents in some way. It is a hard problem given the constraints of not being able to use an array and a simple sort.
a little of it made sense I have studied regex a little. the problem is this is only my 3rd C#
class and I try to watch utube video tutorials as often as I can. I started in java.
the .NET library is impressive and I'm just now getting into it. The only clues the professor has given are that after we build the random generated text file with 20 numbers we are to use file manipulation methods to sort the #s. I only know the basics of streamreader and writer. the other hint he gave us was that we could create as many temp files to hold the numbers and merge them into a Sorted.txt file which we have to print those to a windows form richTextBox which does not have the capability of sorting. I was researching the capabilities of using the text files as containers.