|
And then do a redirect? Causes another roundtrip to the browser, but it works.
---
b { font-weight: normal; }
|
|
|
|
|
Yeah, its certainly not the best way... but it might be the easiest.
|
|
|
|
|
I have a window service which is using a web service.
Now the window service is calling a web service function after a particular interval, so eash time a new web service object is created.
Is there a way i can use a single object but since it's a web service function the problem is if i use a single object then it will retain the previous request values which i dont want.
Can anyone help?
Thanx in advance
|
|
|
|
|
Well,
I think that you have to keep in mind that the HTTP is a stateless protocol. This means that once a request is served tha server has no idea of where the next request is coming from.
Hence, every request will instantiate a different object...
Out of curiosity, how many requests does your system perform?
Make sure you kill all objects and database connections.
Jason Kataropoulos
Excellence is not an act, but a habit! Aristotle
|
|
|
|
|
i thinking to put an ip address tracker on my site to track my visitor so i know where they from. how can i create it?
|
|
|
|
|
There are many ways to due this. In ASP.NET you can use Request.UserHostAddress to get the IP, then just log it somewhere. But it sounds like what you really want is the referrer which is the website that the visitor came from. You don't need their IP to get the referrer. It will be in your IIS log. Or, you can use a free service from sitemeter.com , statcounter.com, google.com/analytics which is what I'd recommend for you. They will provide you with a small script to put on each page of your site. I use Google Analytics myself, which will provide you with a lot of valuable data, referrer being just one of them.
"Half this game is ninety percent mental." - Yogi Berra
If you can read thank a teacher, if you can read in English, thank a Marine.
M y and h don't work so well due to m addiction to caffeine and m in abilit to to set a cup down uprigt.
|
|
|
|
|
the statcounter only provide until less then 100 visitor...
is the sitemeter.com is a free service and unlimited counter ? i mean atleast support 5 digit.
Actually i was thinking to create my own counter cause i want to invisible the counter from visitor, but i able to see how many visitor have come visit my site and their ip , country from my server... do i need to learn JS or asp coding to create function like that?? if there is a free service have on this function that will be great.
|
|
|
|
|
How do you create IE add to favourites functionality, in ASP.NET webforms. I have an old ASP application but the CODE is unmaintainable so i am porting over to ASP.NET C# and i want to simulate this fucntionality. I was wondering was there an old Microsoft control for this like IE webcontrols? Any help would be appreciated.
|
|
|
|
|
|
Hi, I posted this in wrong forum earlier, my apologies.
My issue is I have a web form, that is a radio button list, each a different name (obviously), with a button below. I am trying to use SelectedIndex, with code behind the button, so that when a person selects one of the radio buttons, they are directed to a particular webpage. I just can't seem to find the right code to use behind the button_Click event.
I have been trying to use HtmlLink but I don't think that's right. Is there a web browser class name or attribute that I can use to send someone to a new webpage? Below are some screenshots, if they help any:
http://img221.imageshack.us/img221/3276/problem5le.jpg
http://img221.imageshack.us/img221/3876/problem28uj.jpg
Thanks ahead of time.
-- modified at 22:36 Wednesday 28th June, 2006
|
|
|
|
|
I'm not sure I get what you want, but if you want to redirect a user from the codebehind, you can use Response.Redirect("url") ;
Hope that's what you're looking for.
"Democracy is two wolves and a sheep voting on what to have for dinner" - Ross
Edbert
Sydney, Australia
|
|
|
|
|
Can I upload n download files into database using asp?
can anyone post the smaple code here...
thanks alot...
|
|
|
|
|
Error Type:
Microsoft JET Database Engine (0x80040E14)
Syntax error in INSERT INTO statement.
/insert.asp, line 26
<%
' Declaring variables
Dim name, address, age, income, data_source, con, sql_insert
Function ChkString(string)
If string = "" Then string = " "
ChkString = Replace(string, "'", "''")
End Function
' Receiving values from Form
name = ChkString(Request.Form("name"))
address = ChkString(Request.Form("address"))
age = ChkString(Request.Form("age"))
income = ChkString(Request.Form("income"))
data_source = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("db1.mdb")
sql_insert = "insert into user (name, address, age, income) values ('" & name & "', '" & address & "', '" & age & "', '" & income & "')"
' Creating Connection Object and opening the database
Set con = Server.CreateObject("ADODB.Connection")
con.Open data_source
con.Execute sql_insert
' Done. Close the connection
con.Close
Set con = Nothing
%>
bobolov
|
|
|
|
|
I believe user and name are reserved words.
Try [user] and [name] instead and see if it helps, everthing else seems ok to me.
"Democracy is two wolves and a sheep voting on what to have for dinner" - Ross
Edbert
Sydney, Australia
|
|
|
|
|
I have a site on my computer that i am working on, using asp.net as my front end and sql server 2000 as my backend. I am trying to let someone view my site over the internet. Can anyone help me to achieve that? i am connected to the internet via a wireless connecting, where i am recieving connection from my friend who is on dsl connection.can anyone help me.
Nab
|
|
|
|
|
You must buy:
1- domain name
2- Hosting support with ASP.NET
when you have a server you can upload all webpages into your server.
and test your website:
Ex:
http://www.yourdomainname.com
-------------------------------------
From: Hy Chanhan
I am a student at BBU in Cambodia.
In major: Information Technology.
This web is so interested.
|
|
|
|
|
Hy Chanhan wrote: You must buy:
1- domain name
2- Hosting support with ASP.NET
when you have a server you can upload all webpages into your server.
and test your website:
Ex:
http://www.yourdomainname.com
Utter UTTER tripe....
All you need to access ANY machine worldwide is an IP address (Firewalls permitting of course)....
To get someone to see your site, make sure firewall is configured to allow incoming traffic on port 80 (**PROBABLY**), then if you use http://localhost/mySite/Default.aspx, then just replace localhost with IP address of your machine and the port number if not 80 - like : http:192.1.1.1:80/mySite/Default.aspx
That should allow people to see your site OK - although Hy Channan is correct from the point of view of a commercial site, for just showing someone, there's no need for the expense (And even then, there are plenty of FREE ASP.NET / SQL providers that will give you a free sub-domain)
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Does anybody know how to implement a dialogbox brought up by the Web Server? This is useful in cases where the server needs to inform a client that a certain condition has changed. Thanks!
|
|
|
|
|
Yu have to use client side code to do this - usual method is to code the dialog in HTML, put in in a DIV, then manipulate style.display and / or style.visibility to show and hide it....
If you ask the server to show a dialog / message box, it will - ON_THE_SERVER
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
I think the title says it all. I have been very successful playing around with an ajax sample to get it to retrieve a string from a web service, but i cant seem to figure out how to pass a variable to the web service, which would obviously limit it's usefulness.
Does anyone have any suggestions?
______________________
Mr Griffin, eleventy billion is not a number...
|
|
|
|
|
Browse to the web service, and it should show you an example of how the input should look like. At least if it was developed using .NET.
---
b { font-weight: normal; }
|
|
|
|
|
If you're using pure Javascript, then it ain't no fun...you'll need to look at the WSDL to see what parameters etc are used.
There is somewhere on CP a js class that abstracts out the difficult bits, and just allows you to call a asmx from JS without much difficulty. Can't remember where though!
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hi
I have been asked to monitor what websites employees in my company visit during work hours.
I had a program that I found from The Code Project, but it no longer seems to be working when used on one of the PCs, I need to be able to view the results as a web page.
Can anyone suggest anything that could work?
Cheers
|
|
|
|
|
can anyone show me a link to a tutotial of incorporatig audio streaming with web page?????????
i want to connect to a remote server via a website page and search for an audio files and then use the website to play the file via streaming
kenny
|
|
|
|
|
Hi.
I have a web service that needs to replace files. However, when I do this an Unauthorized exception is thrown.
I can't figure out how to do this. I'm running the client program and the service on the same computer.
Thanx for any help.
|
|
|
|