|
hi
my prob is i want to remove values from the sseion variable to use it again on 1 page im assigning session varaible values
session("myavr")=session("myavr")+"some text"
and on ther page i want to assin the variable emty string
i write
session("myavr")=""
but the values in the string remin the previous 1..
any1 have idea
looking gorward for repl
|
|
|
|
|
Simple:
Session.Contents.Remove("myavr")
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
|
|
|
|
|
thnax Philip Patrick
i wrote the same thing but its not working the the problem is that on 1 page i assign values to the session variable on 2nd page i use it and on the third page i remove values form it but when i come back to page 2 previous values r still there... how can i remove values fronm there.
|
|
|
|
|
How can i set my page as the default page of the user when he visits the page
|
|
|
|
|
I would not suggest doing that. People will stop visiting your site if you do that without asking.
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
"You can't seriously believe that you could get away with suing someone over quoting text from a message posted in a public forum, can you?" - John Simmons
|
|
|
|
|
i didnt mean to harm anyone but i just wanted to know it, if you can please help me
|
|
|
|
|
For IE5+, you can use the home-page behaviour:
<html xmlns:ie>
<head>
<style>
@media all {
ie\:homePage {behavior:url(#default#homepage)}
}
</style>
<script language='javascript' type='text/javascript'>
<--
function fnVerify(){
sQueryHome = oHomePage.isHomePage(oHomeHref.value);
alert(sQueryHome);
event.returnValue = false;
}
function fnGo(){
oHomePage.navigateHomePage();
event.returnValue=false;
}
function fnSet(){
oHomePage.setHomePage(oHomeHref.value);
event.returnValue = false;
}
</script>
</head>
<body>
<ie:homePage id='oHomePage' />
<input type='text' id='oHomeHref' value='http://www.codeproject.com' />
<input type='button' value='Verify' onclick='fnVerify();'>
<input type='button' value='Set' onclick="fnSet();'>
<input type='button' value='Navigate' onclick="fnGo();'>
</body>
</html>
[IE will still ask the user if they want to change their home page.]
|
|
|
|
|
When I now have figure out how to install IIS it wont let me "Start" the webserver!!
What configurations or other stuff is required? I have WIn2k and want to run IIS on localhost!! HOW!!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Rickard Andersson wrote:
What configurations or other stuff is required? I have WIn2k and want to run IIS on localhost!! HOW!!
You need to put a "Default.htm" file in your wwwroot folder. Once you do that, just type in 127.0.0.0 or http://localhost in IE, and you're all set.
|
|
|
|
|
Yes but I have to get the webserver to run before that!
When I press that "play" button to start the webserver it allways doing a timeout and don't start!
I've tried to fill in the localhost ip (127.0.0.0) in the IP addres field but it doing a timeout and it doesn't start!! ( ( ( (
CAN YOU HELP ME, IF YES, YOU ARE BEST!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
open a cmd prompt and type "net start w3svc" and find out what it says. (it will tell you if it started or not)
Rickard Andersson wrote:
I've tried to fill in the localhost ip (127.0.0.0) in the IP addres
The localhost ip is 127.0.0.1 not 127.0.0.0.
Best regards,
Alexandru Savescu
|
|
|
|
|
Alexpro wrote:
open a cmd prompt and type "net start w3svc" and find out what it says.
It tells me that the World Wide Web Publishing could not start and it was a system error (err no. 1747)
Hm.. I don't have Frontpage Server Extension if this has to do with it?
Alexpro wrote:
The localhost ip is 127.0.0.1 not 127.0.0.0.
Aaah... but it didn't work anyway!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
How can i access ws word in the IFRAME
|
|
|
|
|
Hello
I am new to scripting but I need to know if there is anyway to
1) Get a list of processes running in Windows 2000
2) Send a notification to mail/pager if the process goes down?
If anyone can give some sample code, that would be very helpful.
Thanks a lot
ashish
|
|
|
|
|
I can use the psapi.dll.
Here you can find a article with that function. But if you want you can build a atl dll for get the list of process using that api... (I did that)
Best Regards
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
Thanks Carlos. Could you tell me where that article is
I don't want to write any code..i need it to monitor a process and when it goes down, to page me. that is all. its very simple.
thanks
ashish
|
|
|
|
|
Ashish:
here you have a list of articles.
I don't know if you know VC++, but is the only way to get that...
I can share with you a Dll that I wrote a time ago, that look for the active process
Best Regards...
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
|
I am new to VBScript and i have a problem in getting the application path to set the database path(like app.path)
Data Source=C:\WINDOWS\Desktop\DataBase\collection.mdb;
Persist Security Info=False"
Here instead of giving the whole path how can i get the path???
|
|
|
|
|
Server.MapPath(RelativePath) will give the absolute physical path of a relative path (relative to the current ASP page)
|
|
|
|
|
Thanks will it work with VBScript?
And will you suggest VBScript for databases???
Are there any disadvantages with VBScript
|
|
|
|
|
It will work if this is an ASP page. If you're trying this by running a .vbs file from your desktop it won't because you're using WSH.
Again if you're running Server-Side Web pages (I'm assuming this since this is the ASP, ASP.NET forum) VBScript is about the easiest way to go. If this is a desktop app you'll get better performance running full VB.
Of course if possible I'd recommend using .NET.
|
|
|
|
|
i have a doubt, i mean can i use VBscript(without ASP) for client side scripting keeping the database on the server
I mean can i access the database on the server from a client machine by VBScript alone on an HTML page
|
|
|
|
|
Sure you could do it. There are limitations, though. For one thing ADO objects are unsafe so the user will have to lower their Internet Security. Also you'll have to make sure that the user has an adequate MDAC installed. Also there are no objects like Server available to resolve your names. If you're using Access, you have to use physical file paths. (Either Map a drive or use UNC (\\) notation) as it needs Read/Write file permissions to work (and doesn't work over WebDav like other office programs will). Lastly the network connections ADO makes won't run over most firewalls.
So if you're dealing with a local Intranet Scenario where you have tight control over the client the answer is yes. If not the answer is a practical no. (Its possible, but way too much work to be worth it).
|
|
|
|
|
I have created an aspx form where most of the controls are added dynamically. If I redraw the form with the same set of control, the dynamic controls do not seem to be redrawn with the new values. For example, I have checkbox that was checked. I select my button to reset it. Stepping through the code, I see the checkbox checked property is set to false. The form comes back up as if nothing has been altered. The checkbox is still checked.
Has anyone else run into this problem with ASP.NET? If so, how did you resolve this issue?
|
|
|
|