|
to get the users IP's, Request.ServerVariables("REMOTE_ADDR").ToString()
then compare it with your IP
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
This code return me an other IP, I don't know what it is but it is not my IP address. I am working on a big company and it may be IP from other machine. Do you know another possibility?
Thanx
Eric H.
|
|
|
|
|
when you test this code on your machine you will get 127.0.0.1
but if someone else visit your page, you will get his IP
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
|
|
Hi..
How to handle Honadwritting fonts..
If i write some text in HTML Textarea , when I selected Font name by DropDown list.. I want to chage the Textarea Font family also.. this is working fine when the Font in client machine..
But my client Required some Handwriting fonts.. those are not existed in client machine..
here also I have one solution but that working for Preview like after selecting font and when I click the Preview button.. at the time by using Privatefont collection I am displaying text on tht stlye..
but Client required when he change the Font name.. it autometically effect the Textarea also...
if this is not clear just go through the following link..
http://www.jason.sparklingdirect.co.uk/imagetemplates.aspx[^]
click on the Image
you are redirected to another page.. there is my client request
Thanking you..
Balavardhan
|
|
|
|
|
give me javascript code or any codebehind code also.when we r selecting one field (checkbox)it has to select automatically all fields in that particular row use of checkboxes
Smitha
|
|
|
|
|
|
I am currently using the below custom popup control.(ASP.NET,Language used is C#)
http://www.codeproject.com/aspnet/asppopup.asp[^]
But i am not able to add Ok and CANCEL buttons inside the pop up.I cant use alert since i need to change the color and include title, which cannot be done in alert.
Can anyone help me out in this and suggest me with a better idea.
Mads
|
|
|
|
|
Have you tried deriving from this control and adding the buttons (and the code that goes behind) there?
ps: this should go to the C#/VB.NET7.NET forum. It has nothing to do with ASP.NET
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
CWIZO wrote: ps: this should go to the C#/VB.NET7.NET forum. It has nothing to do with ASP.NET
Just wondering how you came to that conclusion
|
|
|
|
|
Woops. I just glanced at the article and thought that its for Windows Forms. My bad.
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Have you tried Controls.Add() ?
|
|
|
|
|
Hi friends,
I am developing web application, in which I want to catch errors using Application_Error in global.asax.
Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
Dim err As System.Exception = Context.Server.GetLastError()
Response.Write(err)
Response.Redirect("errorpage.aspx")
End Sub
But this function being called by each page on page load event even there is no error.
and also page navigation to error page is also not happening.
I am confused, how to use Application_Error for my purpose.
Please help.........thanks a lot
|
|
|
|
|
And what exception you receive?
Pilo
|
|
|
|
|
Hi,
I am getting error 'File Not Found'
Application_error routine called after completing page_loada event.
Is there any problem in html code.
Regards,
nagraj
|
|
|
|
|
Obviously you are missing some file.
Try to post stack trace of your exception here together with all inner exceptions and their stack traces.
Pilo
|
|
|
|
|
Where is your errorpage.aspx?
|
|
|
|
|
change the declaration to "/errorpage.aspx" to remove any problems with subdirectories.
|
|
|
|
|
I have HtmlInputFile control on asp.net page. It will take the value through browse button but it will not take the user value at the time of asp.net form load.
For example
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
myFile.Value = "d:\myfile\test.txt"
End Sub
myFile is name of HtmlInputFile control.
When I execute this page it generates the error like this
The value property on HtmlInputFile is not settable.
Can anybodu suggest how to set value of HtmlInputFile control.
Thanks & Regards,
Kumar Prabhakar
abc
|
|
|
|
|
I created an SQL Server Project and then deployed it to a database. On opening the deployed assembly from the database there is a line starting like - EXEC sys.sp_addextendedproperty @name=N'SqlAssemblyProjectRoot', @value=N'C:\Inetpub\wwwroot\homesite\DatabaseCLR'. If I change the project location to say, N'C:\Inetpub\wwwroot\anothersite\DatabaseCLR, how can I modify the assembly so that the SqlAssemblyProjectRoot property will reference the new location without me having to open the project from the new location and deploying afresh. Thanks.
|
|
|
|
|
Hi All,
I ve an ASP .NET Web Application (VB .NET as code behind), In my Login Screen After Username and Pwd User can select a dropdownlist also.
The problem is after entering password and when i select dropdownlist the password gets erased..
Please help me in that issue..
(Auto Post back is true for DDL)
Suresh Kumar
|
|
|
|
|
You have to reset the password field in the postbacks.
Best Regards,
Apurva Kaushal
|
|
|
|
|
thanks for your immediate response..
If possible can you gibe me the sample code to reset the password fields..
Suresh Kumar
|
|
|
|
|
You can set the password field like this:
TextBox1.Attributes.Add("value","kaushal");
Best Regards,
Apurva Kaushal
|
|
|
|