|
Have you checked if IIS is configured not to allow anonymous access?
|
|
|
|
|
It does allow it if you come in from a web browser like internet explorer.
This is within a company network so no one from outside can access the site, of course.
The issue is you can log out of or into this particular internal site. When you log out of it you can still access this one page.
When I try this using ASP.NET (HttpWebRequest) I get the error.
Perhaps someone can answer this question: By setting my own "NetworkCredential" am I being looked at like I'm trying to access the internal page as though I'm an external user?
|
|
|
|
|
Here's a brief update after poking around a bit. I notice I get different behavior when I set "NetworkCredential" to my valid username and password then when I use "CredentialCache.DefaultCredentials".
When I use "NetworkCredential", I can now access the URLs that allow "anonymous" access. But I now geet "401" errors with all other URLs.
In short:
a. Using "CredentialCache.DefaultCredentials" gives me access to all URLs
b. Using "NetworkCredential" (with correct username and password) gives me access to URLs allowing "anonymous" access.
Question: why do these behave differntly?
|
|
|
|
|
Currently I have a modalpopup control that contains a gridview control. In the gridview i have a templatefield column that contains a link button control that, when pressed, runs a jquery impromptu function so I can ask the user if they are sure they want to perform the function. On yes, the javascript function calls a web method that updates the database and displays a message that it is successful.
That is the easy part, but now I am stuck trying to get the gridview to rebind and then reopen the modalpopup. I have been trying to use javascript to get the gridview to rebind to the datasource, but $.find('<%=Gridview.ClientID %>'); keeps returning a null value. Anybody got any ideas?
|
|
|
|
|
I guess you could use callbacks for this. After the web service call, does the data associated to the grid change? If not you need not even do a post-back and cause the popup to close. You could have the GridView inside an UpdatePanel with appropriate <asp:trigger>. If the links are part of the GridView, you could use OnClientClick event of the links to call the web service without post-backs.
If you want to cause a post-back for some reason, I believe you could use the BehaviorID of the modal popup extender to show in on pageLoad()
This post might help you - http://patelshailesh.com/index.php/why-does-modalpopup-close-on-postback[^]
Cheers,
Karthik
|
|
|
|
|
Hi.
Im building a web application in win xp using iis5 and visual studio 2008.
i've created a custom handler(with no extension) in the following manner :
1. created a class that implements IHttpHandler.
2. registerd it in web.config in the httphandlers section like follows :
<\add verb="*" path="/GetData" type="WebSiteLogic.GetDataHandler"/>.
Now, when i run the app using Visual Studio server and works fine.
But when i deploy it to use with my local iis server or choose in VS to use my iis local server it wont recognize the handler.
Can somebody point me out what im missing?
Thanks.
|
|
|
|
|
With IIS 5, you need to tell it to use this handler - it won't pick this up from the web.config file. It's been so long I can't remeber how exactly, but go to admin tools and open the IIS managemetn console, and poke around in there for your applciation's properties. I vaguely remember a "Settings.." button in the "General" (or "Home"?) tab that brought up the dialog where you set this sort of thing, but as as I say...
|
|
|
|
|
hi !
I am trying to get the url referer in http handler. all the broweser is giving currect valu except safari. It is null evry time. Can you pleaes tell me how do i get the url referer in safari
Thank you.
|
|
|
|
|
|
I have a multiline textbox on my webpage. I make a stored procedure call to save the textbox value to a database. If I enter in for example "test'ing" with single quote, the app errors. How to handle this? Is there an escape sequence for this?
|
|
|
|
|
You need to escape such strings, so replace ' with ''. That is 'test'ing' becomes 'test''ing'.
Cheers,
Karthik
|
|
|
|
|
Use SqlParameters.
Check this http://www.codeproject.com/KB/database/NET_Data_Access.aspx
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
I download Ajax toolkit. next,create a tob in VS2008 toolbax called Ajax toolkit. then I add this file AjaxControlToolkit.dll
the problem is after adding the dll I can't see anything regarding Ajax Control.
does anyone know what the problem could be?
I have VS2008 and download Ajax control toolkit .Net35
|
|
|
|
|
future3839 wrote: I download Ajax toolkit. next,create a tob in VS2008 toolbax called Ajax toolkit. then I add this file AjaxControlToolkit.dll
the problem is after adding the dll I can't see anything regarding Ajax Control.
Where did you add the ddl ?
Right Click on Toolbox > Choose Items... > Then select the dll !
Hope this helps.
Thanks !
|
|
|
|
|
thx for ur reply. Actually, I did the same way but got same problem.after adding dll nothing add to my Tab
|
|
|
|
|
Also, Can have a look to a very good explain, which explains step by step process to install Ajaxtoolkit in VS 2008.
Click here
|
|
|
|
|
Hello,
Firstly, I am sorry if I write my topic in wrong section cause I couldn't find right topic for it. I just start studying Ajax and using it in my ASP.Net web application. in one article I read this one:
<br />
Ajax is for Action Not Content<br />
<br />
If you're going to put up an Ajax application, or just something Ajax-like on your Web site, first determine if the data you're accessing changes. The point of the asynchronous request is that it makes requests to the server for information that has changed faster - because it's happening while the reader is doing something else. Then when they click a link or button (or after a set amount of time - whatever your distinction is) the data shows up right away.<br />
<br />
If your content or data never changes, then you shouldn't use Ajax to access it.<br />
<br />
If your content or data only rarely changes, then you probably shouldn't use Ajax to access it.<br />
the above sentence is from this http://webdesign.about.com/od/ajax/a/aa092506.htm
in this case, I should use Ajax in my website, when I wanna interact with data? is that true? for instance, like CMS projects or if I have more job with database then using Ajax might help to improve the performance of my database. is that true?
iate
I appreciate if you guys tell me your suggestions.
|
|
|
|
|
future3839 wrote: I have more job with database then using Ajax might help to improve the performance of my database.
Ajax doesn't improve the performance of database.
If you understand Ajax properly, you yourself will be in a position to decide whether to use it in your
scenario or not.
For simple CMS project, where contents are static and just for display purpose, I would suggest not to use Ajax.
Different people have different thoughts.
|
|
|
|
|
|
I would like to implement a very simple progress indicator, a '18%' style thing. How do I do this? I have a long running import process that updates a session variable with its progress every few iterations. I have client side code that periodiclally calls a static Page Method to retrieve the progress, but Firebug indicates the POST for this call is aborted, with no error message. Do I have to access the session variable from another page where the import process is not running, or vice versa rather, move the import process to the code hood of the project tree and keep the page for page things, like requesting and repporting import prpgress?
|
|
|
|
|
A few months ago I set up a website for a minister friend of my mine. For the secure section of the website I used the standard login.aspx page with the Microsoft Login Control.
The site was published to a third party host so the user login info is stored on the remote SQL Server database. Everything has performed fine for about 8 months until yesterday. He calls me and says that he can't log in! I wasn't worried and told him I would fix it today. Now I am worried! Every attempt to login or reset the password had been unsuccessful!
I've been doing research and it appears that the LoginControl has several bugs.
Here's the main question: Is there any way I can reset the user passwords using another tool? I can log into the remote server using SQL Server Management Studio.
Thanks,
Mr. Depressed
|
|
|
|
|
|
I have a label(100px) with text that could include more than one word, when it happens the label adds line breaks between the words, how can I avoid it?
|
|
|
|
|
benams wrote: when it happens the label adds line breaks between the words
It is not like this.
When your two words exceeds with the specified width, it will move in second line. Thats what it is happening.
|
|
|
|
|
Add a NOWRAP attribute. Or wrap it in a NOBR tag.
|
|
|
|