|
Hrmm... I'm not sure that we have enough information about your environment to help here. It may be helpful if you describe the hardware and software setup of your environment in greater detail.
If the standard means of retrieving the visitor's IP address are failing, I'd speculate that there is some kind of environmental issue here. If you have a load balancer, firewall, or proxy forwarding traffic to your server, you may wish to start your search there. Are they configured to send the actual request IP along?
--Jesse
|
|
|
|
|
I am using a free trial host (http://vwdhosting.net) and i write my code with Visual Studio 2003.NET other methods work properly. but Ip dosn't.
|
|
|
|
|
Pls try
Request.ServerVariables("REMOTE_ADDR")
or
Request.ServerVariables("REMOTE_HOST")
|
|
|
|
|
Hi
Please Read my Question carefully i wrote that i have used that codes i have used 6 type of codes. and your code is there. but the resulat is the same.
1) System.Net.Dns.GetHostByAddress(System.Net.IPAddress.Parse(System.Web.HttpContext.Current.Request.UserHostName)).HostName
2)System.Net.Dns.GetHostByAddress(Request.ServerVariables.Item("REMOTE_HOST")).HostName()
3)Request.ServerVariables("REMOTE_ADDR")
4)HttpContext.Current.Request.UserHostAddress.ToString
5)HttpContext.Current.Request.UserHostName.ToString
6)Request.UserHostAddress
thanx
|
|
|
|
|
How to change the ToolTip message in a calendar for specific dates only.
Is there an event that detects if the mouse is over that date so I change the ToolTip value.
Mohamed El Gohary
|
|
|
|
|
Two options:
+ Override the Render method, and replace the default setting for the ToolTip in the Title attribute of the A element with your own value.
+ Create a DayRender event handler, make the default LiteralControl of each cell invisible, then insert a new hyperlink/linkbutton which allows you to set the Tooltip.
|
|
|
|
|
Sir,
I have a datagrid and problem lies into the edititemtemplate of datagrid.
I have a datagrid in the following format
--------------------------------------------------
Column1 Column2 Column2
abc1 EditImage Delete Image
abc2 EditImage Delete Image
abc3 EditImage Delete Image
-------------------------------------------------
Now when i click at the particular editimage then the control goes to the the edititemtemplate where i am using a function to construct a table in that particular row of the datagrid in which i clicked at the editimage .In the edititemtemplate i am calling a function in the following format.
------------------------------------------------
<EditItemTemplate>
<%#LoadTable(Container.DataItem(0).ToString())%>
</EditItemtemplate>
--------------------------------------------------
Now the table is not comming into that row but a message is being displayed in that row and the message is
System.Web.Ui.HtmlControls.HtmlTable
But i want the structure of the table instead of this message .
------------------------=---------------
I am using the following code in the LoadTable
function
----------------------------------------
Public function LoadTable(Byval str as string)as Sysytem.Web.Ui.HtmlControls.Table
dim con as new oledbconnection("connectionstring")
con.open
cmd=new oledbcommand("select * from abc where id=" & str , con)
cmd.executereader
dim dr as oledbdatareader
dr=cmd.executereader
dim t as new system.web.ui.htmlcontrol.table
dim drow as System.Web.UI.HtmlControls.HtmlTableRow
dim dcell(1) as New System.Web.UI.HtmlControls.HtmlTableCell
--------------------------------------------------------
while(dr.read)
drow = New System.Web.UI.HtmlControls.HtmlTableRow
dcell(0) = New System.Web.UI.HtmlControls.HtmlTableCell
dcell(0).Width = "30%"
dcell(1) = New System.Web.UI.HtmlControls.HtmlTableCell
dcell(1).Width = "70%"
dcell(0).InnerText = dr.Item(0)
dcell(1).InnerText = dr.Item(1)
drow.Cells.Add(dcell(0))
drow.Cells.Add(dcell(1))
t.Rows.Add(drow)
end while
----------------------------------------------------------
End Sub
please help me to construct the table in the datagrid row at edititem template of datagrid
-- modified at 3:57 Sunday 16th July, 2006
|
|
|
|
|
Okay, before you accuse me of saying that I should have looked around better let me say that I already have ASP.NET working perfectly, no problems with ASP.NET pages. However, I'm trying to get a plain old ASP site to come up on the same server to no avail. I have confirmed that I have the asp.dll file, and I have registered it. I can display a simple index.htm from this folder, so IIS can actually see this folder. Any suggestions? Last modified: Saturday, July 15, 2006 1:11:55 PM --
|
|
|
|
|
If you have Norton Antivirus installed on your machine, you may have to disable "Script blocking". Otherwise ASP doesn't work.
Kind regards - Jakob
*********************************************
Three kinds of people in the world:
- Those who can count..
- Those who can't!
10 kinds of people in the world:
- Those who understand binary
- Those who don't
|
|
|
|
|
I thought you were on to something there. However, I killed NAV and still no go. I was just hoping to be able to view the ASP page (which I didn't write) while I rewrote what I saw in .NET. Instead, I opted just to read the source and go from there. Just not worth the headache. Thanks anyway.
|
|
|
|
|
when i use <asp:label> tag, it changes as in html code page, but i want that the tag i'd written, change as in html code page, so which <asp:..> control should i use for it?
|
|
|
|
|
I think you need to be more specific as to what are you trying to accomplish. Your basicaly saying and asking the same thing.
adamoz wrote: when i use tag, it changes as in html code page
adamoz wrote: but i want that the tag i'd written, change as
in html code page
regards,
Mircea
Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.
|
|
|
|
|
Dear friends
i have a html file on my system's c drive, i want to display it on web page below a button control. when i click this this button, this file should be displayed.
Pawan Mishra
MCA, MCP.NET, MCAD.NET
|
|
|
|
|
Hi there,
Just simply reading the file's content by using System.IO namespace....show it on webpage then...
<< >>
|
|
|
|
|
Or put it in an IFrame....a little simpler
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
in a windows services, if we are calling an exe file and we want the UI of the exe to show on desktop. then Under LogOn tab (in services in administrative tools), we check "Allow Service to interact with Desktop" checkbox.
i want to know is there any way that we achieve this through coding.
i mean, can we make that windows service already configured to "Allow Service to interact with Desktop" checkbox checked through coding.
thanks
|
|
|
|
|
I think those are registry settings. you might find that Microsoft has hidden such information in the DOCUMENTATION and what does this have to do with ASP.NET?
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?" Colin Angus Mackay in the C# forum
led mike
|
|
|
|
|
Here is how to do it in C#:
http://it.expertmonster.com/question/Allow-service-to-interact-with-desktop-112.html
|
|
|
|
|
Hi all
I am trying to save data in Excel
I have 2 arrays in 1st array fields 2nd array data is there
Iam using this code
MYCODE
--------
Dim i As Integer
Dim strLine As String, filePath, fileName, fileExcel, link
Dim objFileStream As FileStream
Dim objStreamWriter As StreamWriter
Dim nRandom As Random = New Random(DateTime.Now.Millisecond)
Dim fs As Object, myFile As Object
fileExcel = "Results.xls"
If Not Directory.Exists(("c:\WeatherWizard")) Then
Directory.CreateDirectory(("c:\WeatherWizard"))
End If
filePath = ("c:\WeatherWizard")
fileName = filePath & "\" & fileExcel
objFileStream = New FileStream(fileName, FileMode.OpenOrCreate, FileAccess.Write)
objStreamWriter = New StreamWriter(objFileStream)
----------------ARRAY 1
Dim str1 As New ArrayList
str1 = (Session("str"))
For i = 0 To str1.Count - 1
strLine = strLine & str1(i).ToString & Chr(9)
Next
objStreamWriter.WriteLine(strLine)
strLine = ""
-----------------ARRAY 2
Dim j
Dim ia33 As New ArrayList
ia33 = (Session("ia11"))
For j = 0 To ia33.Count - 1
strLine = strLine & ia33(j) & Chr(9)
Next
objStreamWriter.WriteLine(strLine)
strLine = ""
objStreamWriter.Close()
objFileStream.Close()
---------------------------------------------------------
But its is not saving properly Plz can any one help Me
OR CAN U GIVE ME AN IDEA TO SAVE ARRAY's DATA IN EXCEL SHEET
THX
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
You have to automate Excel in order to save data properly in excel documents. You have to add a reference to MS Excel Library object. This article[^] will lead you on the right way.
regards,
Mircea
Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.
|
|
|
|
|
how can i delete from multiple table on a single button click
thanx
|
|
|
|
|
you can delete as many as you want with multiple delete command,
describe your problem more...
|
|
|
|
|
i hav no common field in the tables so i cann't use join.
on a button click i want to delete records from multiple table.
i'm writing individual query in different strings.
i'm confusing in commandobject and nonexecutequery ().
how would i use them for multiple queries.
thanx
|
|
|
|
|
there is two way for delete for you:
first way is that you use indivisual queries on command as you used
second way is merging queries as below:
delete * from table1;
delete * from table2;
...
put (;) semicolon between queries.
|
|
|
|
|
Hi all,
I am fairly new to ASP.NET and have been trying to upload a site to a 1&1 server, however when viewed on the net I am just seeing the source rather then the page. Any ideas?
Regards,
P.Cairns
|
|
|
|