|
Off the top of my head, I can't tell you the exact code to use, but here is how I would approach it:
If you need to look up the client's result, you can have ASP act like a web browser and connect to the server to get the page. It will then store the code of the web page as a string in a variable. If you have this already in your database, then you can skip this step.
Do a global replace of < with ( and > with )
Print the string and you should see the code.
|
|
|
|
|
easy :
how did you retrieve the data ? maybe like this :
response.write rs("record1")
response.write rs("record2")
etc ...
Now lets Dim a Variable
Dim Alldata
Alldata = "Record 1 : " & rs("record1") & vbcrlf
Alldata = Alldata & "Record 2 : " & rs("record2") & vbcrlf
Alldata = Alldata & "Record 3 : " & rs("record3") & vbcrlf
etc
when finished
ObjMail.send Alldata
Thats it .
|
|
|
|
|
Hi,
I m facing a peculiar problem in report section of my web site. To give you an idea, I log every click on button 'View Report', present on my report page, in a table just to track wut reports are being used most frequently. What happens is, if the user clicks the 'View Report' button in multiple successions, multiple insertion goes to the table with just minute difference in seconds [some times just milliseconds differ]. How should I prevent this from happening? record should not get inserted if the query and data hasnt changed.
Please help !
|
|
|
|
|
why don't you get the reports pages to log the event, instead of the button? then you know for certain that they've viewed that report.
or you could perhaps have a session variable with the latest query data, and when they click on the button, check if the current query data is the same as the last query data, and afterwards set the latest data to the current data.
--
Raoul Snyman
Saturn Laboratories
e-mail: raoul.snyman@saturnlaboratories.co.za
web: http://www.saturnlaboratories.co.za/
blog: http://blog.saturnlaboratories.co.za/
linux user: #333298
|
|
|
|
|
Thanks Raoul !
Please throw some light how shall i implement this..
"why don't you get the reports pages to log the event, instead of the button?"
My requirement is, i must log every report query that goes to the server. Please suggest if i can acheive this with your suggestion.
Regards
----------
Ashu Sharma
Web Analyst
eBizneeds : stimulating innovation by technology
m: +91 9414255790
t: +91 141 510 5201, 2
f: +91 141 510 5203
e: asharma@tech.ebizneeds.net
w: www.ebizneeds.com
|
|
|
|
|
i'm not sure what you're currently doing, but let's say that the user selects a report from a drop down list, and when they click on the button, the application directs them to another page with the report. now what you can do is when that report page loads, get it to log the event.
i'm not sure what you're using, so let's see an example in c#:
private void Page_Load(object sender, System.EventArgs e)<br />
{<br />
if (!IsPostBack)<br />
{<br />
EventLogger.LogEvent(reportId, queryData);<br />
}<br />
}
reportId : some sort of identifier to say which report it is.
queryData : the data used in the query and to generate the report.
EventLogger : my event logging class
LogEvent : a static ("Shared" in vb.net i think) method that logs the event.
hope this helps.
--
Raoul Snyman
Saturn Laboratories
e-mail: raoul.snyman@saturnlaboratories.co.za
web: http://www.saturnlaboratories.co.za/
blog: http://blog.saturnlaboratories.co.za/
linux user: #333298
|
|
|
|
|
In TML there is character representation in form xx. I can get hex value of the character but how to replace xx with character, in VC++?
|
|
|
|
|
Well for thr RGB values ff = 255. Maybe it's the same with what you want?
(so AB would be 171 etc.)
To convert use the calculator in windows. You can enter a hex-value and then click on decimal. It couldn't be easier .
Hope this helps.
"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
|
|
|
|
|
i have the following DIV act like text editor and i want to make automatic line feed when the end of line end.
I need to achieve like textarea when user wrote a contious line an automatic line feed is generated , is this possible with div.
|
|
|
|
|
raed wrote:
is this possible with div.
AFIK, no; DIV is a formatting element, not a user input. Use a TextBox control with the TextBoxMode property set to MultiLine and Wrap set to True. Set the Rows property to the number of lines you want displayed at one time, MaxLength to the maximum character count.
"If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
|
|
|
|
|
Hi,
I'm trying to respond to events fired from an ActiveX control embedded in an ASP.NET webform using client side script. I can successfully do this on a standard html page served from the same web site but when I transfer my script into my webform html it does not respond to the event. This is what my my test html page looks like...
<HTML>
<HEAD>
<TITLE>ATL 3.0 test page for object GWUPload</TITLE>
</HEAD>
<BODY>
<script Language="VBScript">
<!--
Sub GWUPload_PropertyChange()
MsgBox(GWUPload.FilePath)
end sub
-->
</script>
<OBJECT ID="GWUPload" width=100% CLASSID="CLSID:2CB1B6F7-A2FB-4D97-96EF-2FD3CF6CC4D9"></OBJECT>
</BODY>
</HTML>
I've also read "HOW TO: Host ActiveX Controls in a Web Form" on MSDN and tried the Javascript version without success. I've checked all my local security settings and made sure IE will allow ActiveX to interact with scripts (my tests are all on localhost).
The ActiveX control is one of mine but the fact that I can trap the event on a standard HTML page makes me think the problem is in my ASP.NET code.
Any ideas will be appreciated.
Thanks,
Meninga
|
|
|
|
|
I have hex value of unicode character. How to add character to string? I mean like "'\x65'123". How to use hex value to access character i VC++?
|
|
|
|
|
([0-9]|[0-9]{2}), (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) - (\d{2})
I'm using this regex to match trivial dates.
However
A12, Jan, 05 is matching...
Why is this happening...shouldn't the A12 fart and stop...
I thought the above would only match 12 and choke with the presence of an alpha character...???
What am I doing wrong...?
|
|
|
|
|
Don't you need the start of line anchor?
"An expert is a person who has made all the mistakes that can be made in a very narrow field." - Neils Bohr
|
|
|
|
|
I updated to serve pack 2 on windows and now I cannot create a new web project of any kind. I get a server 500 error. I have tried searching msdn for this with no luck. I suspect it is security settings on IIs but anything I try doesn't help. I have also reinstalled all programs. Can anyone help.
|
|
|
|
|
Uninstall the sp2 it does all of this and more and also Norton security can do and some of the antivirus programs
ByMindOnlyYouCanDoIt
|
|
|
|
|
Hi,
This link http://juicystudio.com/tutorial/php shows that how XML file can be read using PHP.
My questions is :
What is use of this technique as I think that XML file can not be generated dyanamically and if it can be generated that way then what about MYSQL?
I am not saying that this technique is useless, what I am asking is the use of this technique which I do not know?
Also,
Can you put me on the track for understanding and creating web services? I have gone through w3schools tutorials about SOAP but with that I could not write any web services.
When I google for web services there are lot of tutorials.
There are SOAP,REST etc don't know what they are.
I want to use PHP for web services.
Please help
Ranjan
|
|
|
|
|
i prefer using PHP/MySQL for my Web Service
|
|
|
|
|
How can i format datagrid.
i wants to display 5 records per page but if there is only 1 record for display than datagrid consumes same space as previously for 5 records. it looks very bed. how can i eliminate the same.
1
2
3
4
5
page 1.2.3
if there is 1 record than it looks like:
1
page1.2.3
how can i display it in proper format
|
|
|
|
|
What I would do is count the number of records I received, subtract from the number of lines I want, and make that the number of blank lines the page needs to create after the last response.
5 total lines - 1 response = 4 blank lines
5 total lines - 5 responses = 0 blank lines
etc.
Just statically set the number of total lines to the ammount of space you want to take up.
|
|
|
|
|
I've tried the following:
window.event.preventDefault();
Directly inside the onkeydown handler and no beans...???
I've tried event.preventDefault() and everything else...
Does firefox not support event cancelling in onkeydown or what the heck am I doing wrong???
Cheers
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
i'm no javascripty, but what about onkeydown="return false;" ? i thought that was the way to cancel an event...
--
Raoul Snyman
Saturn Laboratories
e-mail: raoul.snyman@saturnlaboratories.co.za
web: http://www.saturnlaboratories.co.za/
blog: http://blog.saturnlaboratories.co.za/
linux user: #333298
|
|
|
|
|
no
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
Hello to all the web dev masters here.
Am looking for web interface for a proxy server and firewall. Any great off the shelf components/softwares or open source solutions to recommend which offer most of the UI and functions that I need to kick start?
thank you.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
is your server running windows or linux? i know that there is a really nice admin interface for linux machines called webmin. it works like a charm... otherwise, go and have a look at SourceForge.net[^] or Freshmeat (not sure of the url...)
--
Raoul Snyman
Saturn Laboratories
e-mail: raoul.snyman@saturnlaboratories.co.za
web: http://www.saturnlaboratories.co.za/
blog: http://blog.saturnlaboratories.co.za/
linux user: #333298
|
|
|
|