|
If you're moving files on the server, then you just need to render some representation of the possible paths a file can live in, and on postback, use the File class to move the file. Why do you want to do this ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
i am creating an online test engine..Question papers and choices are stored in the database.when a user login for the test, a question paper vl b generated(randomly questions are selected from database).How to code that in c#.
|
|
|
|
|
sarodam wrote: (randomly questions are selected from database)
You need to make use of Rand() method available in SQL Server. This will generate random number. I presume that each of your question having unique id. First you need to find starting and ending question number. Then start a cursor, Find random number which comes in between starting and ending question id. Inside this loop you need to select question details for the randomly generated question id and insert values into one temporary table. Finally select your temporary table.
Using cursors is not advisable practice, but if no other methods are available you can choose this.
|
|
|
|
|
ok..this random function will generate a random number.what will happen if there is no question with id = that random number(some times questions may deleted from the database).
|
|
|
|
|
Use Random function to get the questions
Best Regards,
Chetan Patel
|
|
|
|
|
Hi every one.....can every one there who tells which is the best method to learn serial port programming in visual basic or in C ........is there any book just tell the name of that book........reply as soon as possible
Ashish Vohra
|
|
|
|
|
You can't program the serial port in ASP.NET. .NET 2.0 has a serial port class, for windows apps.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
I have been given a task to monitor all user behaviour on our web site, this has to include capturing all values of any controls which have been changed.
I really want to create a standalone module which will do this for me. We have created our own controls - eg a IntegerTexBox that will only numbers, and a floatTextBox which will only accept decimals, and I am wondering if I could add method, or override an existing method, in these controls, to handle my task?
I am at a loss of where to start really , here's hoping someone can maybe point me in the right direction? Tried to google and found articles, just none that can point me in the right direction.
Has anyone done something similar before?
Many thanks, in advance,
Janet
|
|
|
|
|
To capture the values of all controls, you indeed need to create your own control classes which capture changes in state and store them. Sounds like overkill to me.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
DixonJM wrote: this has to include capturing all values of any controls which have been changed.
If user is entering any dummy value before submitting the form, do you need to track that also. ? If so I think you need pretty big storage medium. Are you planning to store all these values in DB ?
DixonJM wrote: and I am wondering if I could add method, or override an existing method, in these controls, to handle my task?
Yes you need to do this to track details. Since your controls are custom written you have always a chance to write events on that. But honestly speaking, your requirement seems to be very big and tough to implement. If it is the case of tracking user visited pages, that will be easy. I found some articles here in CP which explains about tracking user visited pages.
|
|
|
|
|
Yes we are planning to store these changes in a DB.
I think the "powers that be" think that .net 2.0 is the best thing since sliced bread - which it prob is, but they are getting mixed up some what with win forms development, where this implementation is somewhat easy!
I did wonder if using 'health monitoring' may be the way forward?
But I'm not so sure.
Thanks
Janet
|
|
|
|
|
Hi,
Iam using textbox and command Button in HTML...when i give a URL in textBox and clicking a command button,the page should go to corrosponding URL...But i want tilte name should be constant for every page during Run time......
advance Thanks
Regards
Somasundaram..
|
|
|
|
|
You can response.redirect to the URL entered. I have no idea what you're talking about re: title, but you can set the title programatically to be whatever you like, on pages you have written.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
for Example
if i given www.yahoo.com in textbox...and click the commandButton..
the URL will open the Yahoo page...what i want is title name(Top most Bar not in the address bar) should not change in that yahoo URL it should remain as i gave in my program
thanks
somasundaram G
|
|
|
|
|
Put one inline frame and load your yahoo page in that frame. This won't change your title. But remember, frames are browser specific. Some old browsers won't support that
|
|
|
|
|
N a v a n e e t h wrote: Put one inline frame and load your yahoo page in that frame
Thats good solution
Regards,
Tomi
|
|
|
|
|
|
Hi
In my application their is a situation where I have to Handle the Back Button of the Browser, I have to either
1.Disable the Back Button for that page or
2.Redirect the current page to LoginPage.
How can I do both the ways.
Suggest me an example.
I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison
Thank u
Chandu
|
|
|
|
|
1 - impossible
2 - stupid. If someone clicks back, why would they need to login ? If they have logged out, your app should store that they are logged out, and thus redirect, regardless of if they click back, or where they navigate to.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
1. Impossible
2. Why u need that i think u must have a session in your web pages so u can manage the user on your application
Regard,
Tomi
|
|
|
|
|
Put this script inside Head tag of the page.
history.forward();
eg.suppose we have to pages.1)default1.aspx
2)default2.aspx
if we apply this script to default1.aspx and we use response.redirect to goto second page(default2.aspx)we cant use back button in default2.apsx
|
|
|
|
|
What will happen if client has disabled javascript. ? You should not relay on javascript never. Moreover it's not a good solution too.
|
|
|
|
|
N a v a n e e t h wrote: if client has disabled javascript
Stone age web browsers.
|
|
|
|
|
chand10 wrote: .Disable the Back Button for that page or
Disabling back button with some scripts is not a good solution. If you don't want user to come back and do changes on previous page, I think you need to disable caching for the first page. But I am not sure with this method
|
|
|
|
|
N a v a n e e t h wrote: to come back
It is better to look ahead in life rather than turning back. My car always prefer to go further take a U-turn instead of using the reverse gears unless otherwise the road conditions stipulate otherwise.
|
|
|
|