|
Because you've not set the control to be multiline. It's a property on the control.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
thanx . it's the textmode = multiline ;
|
|
|
|
|
Anyone got a link to a good tutorial which shows how to create a read-only text-box in a Web Application which automatically collects a visitor's IP Address?
Thanks
|
|
|
|
|
It's in the Request object ( the IP address ). Use a label, that's read only.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Why was this reply voted one?
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
Because, he did not give him the complete code snippet.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Here you go...
txtbox.Text = Request.ServerVariables["REMOTE_HOST"];
txtbox.Attribures.Add("readonly", "readonly");
.
|
|
|
|
|
public static string GetLocalAddress()
{
IPAddress[] addressLocal = Dns.GetHostByName(Dns.GetHostName()).AddressList;
if (addressLocal.Length > 0)
{
return addressLocal[addressLocal.Length - 1].ToString();
}
return "127.0.0.1";
}
|
|
|
|
|
This would always give the server address.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I am building a website, and want to clear cache of all the clients from server at a particular time. Please let me know how to do this. 
|
|
|
|
|
Have you tried
Response.Cache.SetNoStore();
when one visits your page ?
Also add these
Response.ExpiresAbsolute=DateTime.Now.AddDays(-1d);
Response.Expires =-1500;
Response.CacheControl = "no-cache";
Hope this will help.
|
|
|
|
|
|
Thank you so much for your vote.
I hope I could produce more like this in future.
Cheers.
|
|
|
|
|
Thank you for your reply and wish you luck in this.
I think you will win.
Keep doing your good work. 
|
|
|
|
|
Yes thank you.
|
|
|
|
|
hello -
there is a shopping cart issue what I am working on right now. I am adding a back button, but for posting back to the server, the required fields need to be validated. Is there a way how I can skip the validation for the back button?
Thanks, Laziale
|
|
|
|
|
I think dont rely heavily on back button.
Rather always handle everything using code.
Please let us know how you are validating your page , so that I can tell you how to handle this.
|
|
|
|
|
|
Hi Friends,
My crstal report not working in online, it works fine on local system. is there is any
issue with .net framework . m using 3.5 framework.
|
|
|
|
|
Sneha Bisht wrote: is there is any
issue with .net framework
No, there is not.
The only issue I can see is that you have not deployed your application properly.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Does it gives you any error. Please specify... so that I can help you with whats wrong.
Actually the Crystal report is processed inside the viewer and passes an html to the browser. Check what it is rendered...
|
|
|
|
|
Hi guys,
I have used Ajaxcontroltoolkit in my website in Visual Studio 2008.
Some times i am getting this error.
Assembly "AjaxControlToolkit, Version=3.0.30512.17815, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" does not contain a script with hash code "865923e8"
can u people help me regarding this issue.
Thanks In Advance.
Muni
|
|
|
|
|
It happens when you mix 32bit and 64bit web farms.
The reason is that the page requests a javascript using the hashcode present in the page which is generated using GetHashCode the value of which is different in 32 and 64bit machines.
The hashcode 865923e8 might be generated from one server and the request of the combined javascript might be placed on another server.
Hope you got the issue.
|
|
|
|
|
hiii i have created a form for buyers demand where the buyer is submitting his demand.m showing the demand of buyers in grid view using datasource.
i want that the demand posted by the user shud last for 72 hours.can u give me idea how can i do this...
thanks....
|
|
|
|
|
mylogics wrote: i want that the demand posted by the user shud last for 72 hours
ASP.Net has to do nothing with this.
You will have to think of executing a process/script, which will basically run a SQL query on the database and change the status of the demands which have been older than 72 hours in the system.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|