|
I am maintaining the time spent by a user in a session in database. In case if session expires automatically it should be the no. of minutes set for session timeout. How to update the database when session time out occurs. I am using state server mode for session. In ASP.Net session_end is not firing consistently.....Can any one provide me a solution?
|
|
|
|
|
What indication do you have that it is not firing the Session_End consistently?
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
I've run into a brick wall on this one. I teach a basic math class, one that includes fractions, and have been trying to develop a web-based app that allows me to do testing on the web. The concept is to include all of the question pool in a database, then select 40 -50 questions on the fly when a student starts a test session. The problem arises when I try to display a mixed number such as 2-2/3 in a format like the textbook uses. That is, the integer portion centered normally on the line, the numerator above and denominator below, with a horizontal line between them. Is there anything in CSS or HTML that will let me do this?
My only other alternative is to store scanned images in the database, and I don't like that alternative very much - the db is going to be huge.
Heard in Bullhead City - "You haven't lost your girl - you've just lost your turn..." [sigh] So true...
|
|
|
|
|
Use codes such as the following. Try inserting the character you are after into a word doc and saving it as html. If you search on google you should be a able to find a comprehensive list...or maybe the w3 website seeing as they set most of the standards.
<br />
<br />
⅓<br />
⅔<br />
⅛<br />
<br />
⅓<br />
⅔<br />
⅛<br />
|
|
|
|
|
There is a very handy applet that ships with windows called Character Map (usually found under Start/Programs/Accessories/System Tools) that will show all available characters in the different fonts. From this list, you will be able to pick characters that you need from various fonts.
In the Verdana Font: ⅛⅜⅝⅞¼½¾
In The Arial Font: ⅓⅔
onwards and upwards...
Also, you may want to look at the topic called HTML Character Sets in MSDN as they have the escapes for such things as math symbols, glyphs, etc. For example: ∑ ∞ ∩ ∪ ∫ ≠ ≈ ≤ ≥ ⊆ ⊇
are
∑ ∞ ∩ ∪ ∫ ≠ ≈ ≤ ≥ ⊆ ⊇
|
|
|
|
|
You might try looking at http://www.w3.org/Math/. Mozilla has support for MathML builtin.
--
Joel Lucsy
|
|
|
|
|
you could also write up a quick control using System.Drawing to make images on the fly, then have your page class replace instances of your fractions with the approriate image
something like:
this demo
|
|
|
|
|
I've an application in which there is a form that insert data in some table. The problem is when i input some text having text with single quotes eg:- Don't, elicit error.
strsql="Insert into lead(" &_
"deal1,"&_
"agreementno1"&_
") values ("&_
"'"& x_deal1 &"',"&_
"'"& x_agreementno1 &"'"&_
");"
Set rs=objDataConn.Execute(strsql,,1)
Amit Chowdhury
|
|
|
|
|
Replace single quotes with two single quotes before passing.
eg:
<br />
Replace(x_deal1,"'","''")<br />
|
|
|
|
|
before insertting
x_deal1 = Replace(xdeal1, "'", "''")
x_agreementno1 = Replace(x_agreementno1, "'", "''")
Thinking-Asking-Thinking
|
|
|
|
|
I need some script to clear the values in controls in a table row and came up with the following. It seems a bit long winded and was just wondering if i'm being a plank? Any suggestions?? Easier way in javascript maybe??
<br />
Sub ClearTableRow(objForm,objRow,blnHide)<br />
For Each objCtrl in objForm<br />
If objRow.contains(objCtrl) Then <br />
Select Case objCtrl.type<br />
Case "text"<br />
objCtrl.value=""<br />
Case "textarea"<br />
objCtrl.value=""<br />
Case "select-one"<br />
objCtrl.selectedindex=0<br />
End Select<br />
End If<br />
If blnHide then<br />
objRow.style.display="none"<br />
End If<br />
Next<br />
End Sub<br />
|
|
|
|
|
On my site (see sig) I want to change the border of this inline frame I have on my website to something with rounded corners and do something with the scroll bar. I also want to change my navigation bar from the top under the banner to the side, so I would like some pointers on how to get that done and would fit for most resolutions (using whatever code). So if someone could maybe point me ni the right direction towards a web tutorial or whatever, it would be greatly appreciated.
Thanks in advanced.
Who am I?
Currently: A Programming Student trying to survive school with plan to go on to Univeristy of Advancing Technology to study game design.
Main career interest include: Multimedia and game programming.
Working on an outside project: A game for the GamePark32 (GP32) portable gaming console.
My website: www.GP32US.com
|
|
|
|
|
nssone wrote:
I want to change the border of this inline frame I have on my website to something with rounded corners
This is pretty simple to do with a table, actually. Create a table in a 3x3 grid, put the corner images of the border in the corners of the grid, then set the background image of the edge cells to be the edge images of your border (to be expandable, the edge images will need to be repeatable).
nssone wrote:
I also want to change my navigation bar from the top under the banner to the side
One method is to just have a big table with the navbar in the left cell and the content in the right cell.
A more browser-friendly method (that doesn't abuse tables and renders incrementally) is to have the navbar be a floating div -- since you know the size of the banner image and the size of the navbar elements, you know the absolute pixel position of the upper-left corner of the div and the height and width. You can then set the left margin of the content to be as wide as the navbar.
That's just off the top of my head, so you may find some methods which are more comfortable.
There are lots of web communities to get basic layout and design tips; you may want to check out http://www.evolt.org/[^] for some good articles and tutorials.
- Mike (zoogie.lugatgt.org)
|
|
|
|
|
Hi,
I did an autorun CD for my web application for easy installation. I have my MS Access database mdb file included as well. However when I did the autorun, the mdb file copied over from CD to PC had read access only. The web application therefore is unable to edit/delete/insert into the database.
How do I make the file updatable automatically without having to right click on it and modifying the properties manually?
Is there a command to change the access rights of the file in my .bat file?
Thanks!
Sincerely
|*Oraclec*|
|
|
|
|
|
Try attrib -r [drive:][path]filename.mdb.
Heard in Bullhead City - "You haven't lost your girl - you've just lost your turn..." [sigh] So true...
|
|
|
|
|
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/setfileattributes.asp
Thinking-Asking-Thinking
|
|
|
|
|
Hi. I want to develop a program using ASP, this program should transfer data (Database records) from one server to another using the server name if i use machines on the same local network, and also using IP addresses and port numbers if i want to transfer data between two computers which are apart. even in different counries.
Actually i don't have any idea about how i can start doing this. would anyone plz help me and tell me how can i start? and using what? I mean i've heard about transfereing data using socket or http. so plz help me.
Sam
Sam2004
|
|
|
|
|
Is there a way to do a Message Board without CGI? Is there anything simple that will write and view the messaes? I know some perl but haven't used it for about 3 years. Does anyone have a ready made message board that I could adapt my message board to? Thanks in advance!
jwoffmt
|
|
|
|
|
|
|
I'm working on a site that requires the end-user to download Word & PDF documents. I've never had to program a download button before. I'm sure it's something simple but just haven't been able to locate the script. Can someone help me with this? Thanks!
jwoffmt
|
|
|
|
|
You could just link to zip files or:
How do I prompt a "Save As" dialog for an accepted mime type?
http://www.aspfaq.com/show.asp?id=2161
|
|
|
|
|
Does anyone know how to obtain the location of a frame within a frameset in javascript. I tried:
location = parent.mainFrame.location.href;
but that does not work as it says permission denied.
Thank you
|
|
|
|
|
"mainFrame" is a frame name?
and what do your codes locate?
aa.htm
tt.htm
var location= parent.bb.location.href;
alert(location);
testing in ie6.0
Thinking-Asking-Thinking
|
|
|
|
|
The scenario is this - a Web Service that was developed on a XP box has been deployed on IIS 6.0 & Win2k3 m/c. The Win2k3 m/c also has VS.NET 2003 installed on it.
issue #1.
The web service needs to launch a third party process (lets call it abc.exe) to work properly. This step fails on the Win2k3 box. w3wp.exe is running under the default NETWORK SERVICE user privileges. Is there a way to enable/set privileges to the NETWORK SERVICE account so that the ASP.NET worker process has the ability to launch any/specific process? [i tried launching Notepad.exe thru the web service & it seems to launch this successfully.]
issue #2
i expected to debug the web service on the Win2k3 m/c via VS.NET but it fails with the message "... Unable to start debugging on web server. The project not configured to be debugged.". I verified the project settings between my XP & Win2k3 m/c & they are identical. Now i'm beginning to suspect that the Win2k3 default lock-down security is the culprit. Any pointers? I even added the user to the "Debugger Users" group as suggested in the docs to no avail.
Any help is appreciated. TIA.
Chen Venkataraman
|
|
|
|