|
Why on earth, somebody must ask, WHY something must be so as written
I have my reasons and please note: I'm note the only one with this problem. There are many many pages in the web with this problem and nobody can help.
So. BTT
The reason is: If you want store documents and I have a web farm, each web server instance need access to each document. Therefore only on web server in the web farm have direct local access to the documents. Each other web server via UNC-Path. The alternative is a copy of each document local inside each web server. That is not acceptable by me, my company and our customers.
\\\| \\ - -
( @ @ )
+---------------oOOo-(_)-oOOo-----------------+
| Stephan Pilz stephan.pilz@stephan-pilz.de |
| <a href="http://www.stephan-pilz.de">www.stephan-pilz.de</a> |
| ICQ#: 127823481 |
+-----------------------Oooo------------------+
oooO ( )
( ) ) /
\ ( (_/
\_)
|
|
|
|
|
iam working an access control by magnatec car in order to make connection between the mahien and asp.net to read data from the card at first i have to save the info that are found on the card of a txt file then read them using asp in a text box in this type "12/1/2009|123|12 " the date is the exipry date of the card and 123 is id of the student my problem is i need to put a read button near the text box but to read only the id not all info in order to bring data about the id from the data base
|
|
|
|
|
na3em 2009 wrote: iam working an access control by magnatec car in order to make connection between the mahien and asp.net
I have read this at least 15 times, and I still have no idea what it means. Dictionary.com tells me there is no such word as 'mahien'.
na3em 2009 wrote: n this type "12/1/2009|123|12 " the date is the exipry date of the card and 123 is id of the student my problem is i need to put a read button near the text box but to read only the id not all info in order to bring data about the id from the data base
I can't make sense of this either. I *think* you want to get some data out of this. The reason the string has the pipe (|) as a seperator, is that it's unique. You can use the Split method on the string class to turn this into an array of three strings, the date, then 123 then 12. Then you can deal with them from there, if you want to show only one of the three.
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.
|
|
|
|
|
hi,
I am using modalpopupextender for my login and user Registration purposes on masterpage. its works fine simple content page, but when i load a page which contain(multiview and view controls) then page is loaded but links on that page does not works. please help me
Regards
|
|
|
|
|
debug it carefully sounds like something is getting mixed up most probably scripts.
|
|
|
|
|
Hi All
We want to get the Ipaddress of the user who visites our page ..
I tried with "Request.UserHostAddress" but could not get the address properly..
I want to store it in database.Plz help
Thanks®ards
Ramkumar
Ramkumar
|
|
|
|
|
Check
Request.Servervariables["REMOTE_ADDR"];
or
Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
|
|
|
|
|
"HttpContext.Current.Request.UserHostAddress;
or
HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
To get the IP address of the machine and not the proxy use the following code
HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];"
Two seconds with google.
You realise most people dial into their ISP and don't have a fixed IP address, right ?
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.
|
|
|
|
|
Have a look here[^]
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.
|
|
|
|
|
Any possibility to avoid cache in asp.net
|
|
|
|
|
You mean apart from turning it off ?
Most people ask this because they've written bad security code, and need to fix it. Is that your problem ?
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.
|
|
|
|
|
In my page While the landingpage was load, the videos are displayed. Then i move to another page name video.aspx and upload one new video.when i move to the landing page That currently inserted video is not reflected in the landing page. I think because of cache problem.Any solution?
|
|
|
|
|
Response.Cache.SetCacheability(HttpCacheability.NoCache)
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.
|
|
|
|
|
anushh wrote: That currently inserted video is not reflected in the landing page. I think because of cache problem.
Yes it is because of caching.
Browsers cache content depending on the URL. So when video is uploaded, change the URL of the video so that browser will load the latest content. To do this, add a dummy time stamp to the video link. Something like video.aspx?videoid=10×tamp=somerandomvalue
since the random value will be different each time, browser will be forced to load a latest version for each request.
|
|
|
|
|
You mean server cache or client cache ??
|
|
|
|
|
|
Remove Output Cache for One Page
HttpResponse.RemoveOutputCacheItem("/foldername/CacheForever.aspx");
Add Key Dependency to Page
Response.AddCacheItemDependency("clearcachekey");
Means we placed a dependance on smallkey. Now place this in global.aspx
protected void Application_Start(Object sender, EventArgs e)
{
HttpContext.Current.Cache.Insert("clearcachekey", DateTime.Now, null,
System.DateTime.MaxValue, System.TimeSpan.Zero,
System.Web.Caching.CacheItemPriority.NotRemovable,
null);
}
or add this in pageload on which you want to remove cache :
HttpContext.Current.Cache.Insert("clearcachekey", DateTime.Now, null,
System.DateTime.MaxValue, System.TimeSpan.Zero,
System.Web.Caching.CacheItemPriority.NotRemovable,
null);
|
|
|
|
|
plz tell me javascript validation for a textbox for blank and only characters and for only numbers.
and tell me how we use this function in textbox event.
thanks
|
|
|
|
|
hey go to Google
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Well, if you want to hire someone to do your job for you, the job board is just over there. On the other hand, if you intend on being a programmer yourself, you should look up regular expression validators in that book that you surely bought to help you learn ASP.NET.
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.
|
|
|
|
|
use
onblur="javascript: return reqcheck()" id="txt"
function reqcheck()
{
var txt = document.getElementById('txt');
if(txt.value.length == 0) return false;
return true;
}
|
|
|
|
|
Um, this will return true or false for one of the cases he mentioned, but how will it perform validation ?
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.
|
|
|
|
|
I dont know why those people dont use RequiredFieldValidators or RegularExpressionValidators for this.... I think those checks both in server as well as client..
Anyway, he can trap others in
form onsubmit="javascript: return validatefunction();"
I guess. I thought he can do the others himself.
|
|
|
|
|
Abhishek Sur wrote: I thought he can do the others himself.
*grin* if he were capable of that, he'd be capable of working out what a regularexpressionvalidator was.
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.
|
|
|
|
|
Yes you are right.
|
|
|
|