|
Hi guys i am using ajax controls in my application...,
my probs is, suppose if i didnt do any events for 5 mins...,later i will click on my event...,
my evets are not firing properly...,
how to avoid it?
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
If you don't use the page for 5 minutes, then you click something ? I don't think that's normal, they should continue to work. Perhaps your code is slowing down the system over time, due to memory leaks in javascript ?
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.
|
|
|
|
|
Try ScriptMode="Release" in Script Manager....
|
|
|
|
|
What are peoples thoughts on databinding (in ASP.NET), is it good or bad? I have recently started using databinding and I am not enjoying it. My biggest problem is that it is so hard to test. The only way to test it is by running it and manually trying every possibility. I fear that I will leave one or two properties unlinked and then they won't do anything.
At the moment I am unable to get a dropdownlist working on a InsertItemTemplate. As it is the 'insert' one it doesn't try to populate the objects. I need to populate the items in the dropdown, but not populate the value. Setting the datasource doesn't do anything. Any ideas how I can solve this problem?
|
|
|
|
|
Member 4487083 wrote: What are peoples thoughts on databinding (in ASP.NET), is it good or bad?
Well, I guess my question would be, what is the alternative ? Writing code that iterates by hand ? No thanks.
Member 4487083 wrote: My biggest problem is that it is so hard to test. The only way to test it is by running it and manually trying every possibility.
I'm not sure how you mean.
Member 4487083 wrote: I need to populate the items in the dropdown, but not populate the value. Setting the datasource doesn't do anything. Any ideas how I can solve this problem?
You should populate your drop down in the item databound event.
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.
|
|
|
|
|
Databinding is a great feature, a base to zero code tricks. If you follow rules properly you will found it very helpfull and very thin front end pages.
|
|
|
|
|
Hello together,
I have a part in my web project for managing documents. If I upload a file and create the directory for store in with:
System.IO.Directory.CreateDirectory(strPathName)
it works fine with normal local path like "C:\temp\document".
But if the path is a UNC-Path, I get an access denied exception. It does not matter that the UNC-Path is a local path like "\\localhost\Share" or to another computer.
I try to use the impersonate feature in web.config:
<identity impersonate="true" />
In this case normally ASPNET user is used by IIS and I have set full control access rights for this user to C:\temp directory and all sub dirs. Result: Get access denied exception
Than I set user and pass:
<identity impersonate="true" userName="domain/user" password="xyz" />
I get access denied too.
Last chance was an idea from a guy found in a blog:
http://blogs.msdn.com/saurabhkv/archive/2008/05/29/windowsidentity-impersonation-using-c-code.aspx
The function runs without an error, but it solves not my problem. I get access denied too.
What can I do?
\\\| \\ - -
( @ @ )
+---------------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 ( )
( ) ) /
\ ( (_/
\_)
|
|
|
|
|
Why on earth would you write a website that tries to create directories over a network ? You should always use Server.MapPath for any System.IO methods, and obviously, they are going to map to local paths.
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 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);
|
|
|
|