|
I have a big issue regarding an Intranet website.
If i use Forms authentication everything works fine.. If I turn Windows authentication on I get logged in but it seems like I loose access to all files on the server.
I do have Identity Impersonate set to true so no matter if I login with Forms or Windows my User.Identity.name = GSPV\DK.. which is my domain and user.
I've tried to set maximum permission to all folders on the site to every possible user, but still it can't read, mostly images, from folders.
Unfortunally it's not possible to hook up my debugging environment to the IIS itself because of geographical issues.
In the IIS (6.0)/Directory Security I have disabled anonymous access and enabled Integrated windows authentication
My web.config looks like this:
<authorization>
<deny users="?">
</authorization>
<identity impersonate="true" />
<authentication mode="Windows />
btw.. If I set
<identity impersonate="true" userName="GSPV/DK" password="ThePassword" /> everything works great..
Anyone?
|
|
|
|
|
Have you tried something like this?
<configuration>
<location path="Images">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location>
</configuration>
http://msdn.microsoft.com/en-us/library/b6x6shw7.aspx[^]
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
No luck.
It feels like the user is not getting set properly cause when I include userName and Password in the config-file it impersonates the GSPV\DK user
This works:
<identity impersonate="true" userName="GSPV\DK" password="ThePassword" /> This doesn't work (but I get logged in):
<identity impersonate="true" />
|
|
|
|
|
Is there a way in VStudio to set a breakpoint on a line where an exception is expected and tell the debugger that when a particular exception is encountered to "catch" it and proceed with the normal flow of execution? This is particularly useful so that putting a try-catch and then rebuilding would not be necessary while discovering exceptions. Hope not a newbie/ridiculous question.
----------------------------------------------------------
Lorem ipsum dolor sit amet.
|
|
|
|
|
Hi,
Are facing any problem in putting try/catch in your code block? I guess, it is not so difficult.
It is anyways suggested to use try/catch unless you are so much sure about your code that it will never throw exception.
(No further argument on this, as different people has different school of thoughts)
If you are developing web application, void Application_Error(object sender, EventArgs e) method in Global.asax file catches your exception (just after exception is thrown) and you can put breakpoint there to analyze what happened wrong.
Hope this will help.
|
|
|
|
|
I've developed an app that uses database on pc3 computer.
my computer is pc1. My app connects fine with pc3 db from my computer (pc1) though I don't have iis installed. But when I put app on pc2 with iis installed. and try to access it like. (http://192.168.1.3/trackweb/ where trackweb is virtual directory assigned to it.
It does not connect with pc3 database and gives above mentioned error.
Some of the options I've tried.
1. turn firewall off. allow http port through firewall.
2. change connection string in a different ways. last one I tried.
Provider=sqloledb;Data Source=192.168.1.5;Initial Catalog=SpyTrack;User ID=sa;Password=psw;
3. install asp.net on pc3.
4. add local policy, and permit all ip traffic/ all icmp traffice on pc3.
but nothing works.
Hope someones there to help me.
Regrads
Asif Rehman
|
|
|
|
|
I have some simple questions about using ajax(from JS code) in asp.net applications:
1. what does happen when a httpXmlRequest object sends a request to the server? is the page_load executed? is any other method executed?
2. is the code that is written inside the !Page.IsPostBack block executed?
3. what is the right way to call a specific server method(for example: a method which retrieves a datatable from the DB and updates a drop down list) ?
I know you may say that I should find this information in some basic ajax tutorial via google, but I just can't find a tutorial that well covers those issues...
|
|
|
|
|
benams wrote: but I just can't find a tutorial that well covers those issues...
May be you didn't try enough. When I search for AJAX life cycle in Google, the very first link answers all your questions.
1, 2 - A WebForms based page that uses Microsoft Ajax raises the same server life-cycle events as an ASP.NET 4 Web page and in addition raises client life-cycle events. The client events enable you to customize the UI for both postbacks and for asynchronous postbacks (partial-page updates). The client events also help you manage custom script components during the lifetime of the page in the browser.
Ref: Ajax Client Life-Cycle Events[^]
So yes and no (in case of a postback) for question 1 and 2 respectively.
3 - There is an exaple in the given link which should clear this query as well.
I suggest you to read the article in the given link. It will help you clear your doubts and build a good fundamental so that you can proceed with complex AJAX application.
Cheers!
Ankur
..Go Green..
|
|
|
|
|
Hello guys,
How can I get a string with parameters from the resource file directly in aspx?
I have a resource string like: "Enter values from {0} to {1}"
I know that from the code behind I can get the string like:
string.Format(Resources.Messages.Interval, "10", "100");
But I want to use the resource string on the aspx, like:
<asp:label id="Label1" runat="server" text="<%$ Resources:Messages, Interval %>
How can I set the resource string parameters from the aspx page??
thanks
<div class=" signature"="">Peterson
|
|
|
|
|
Why not use String.Format in your label?
<asp:Label ID="Label1" runat="server" Text='<%=String.Format(Resources.Messages.Interval, "10", "100")' />
Note the use of single quotes for Text , which should prevent confusion with the double quotes in the function.
|
|
|
|
|
hi,Frndz
I m developing my BCA LAST SEMPROJECT ON MOTOR DRIVING SCHOOL. In project at one page i have used file upload control and i m uploading there image and i want to preview image as the user select from the file browse so pls help me urgent
|
|
|
|
|
You have done the following incorrectly:
a) CAPTITAL LETTERS = SHOUTING, so don't use them.
b) Text speak, such as hi,Frndz =
c) You haven't clearly stated what you have done and what is wrong.
d) You have stated a requirement, but not what you have do to fulfill it, so we can only assume you want it done for you by us: we won't.
e) The code is only urgent for you, for me it matters less than that stain in the sink I've been meaning to sort out. Saying it is urgent is rude.
Please read the FAQs, all the do's and don'ts are there.
|
|
|
|
|
You forgot
f) Keep the subject line brief, but descriptive.
Scott
|
|
|
|
|
then , in that order!
|
|
|
|
|
Fernandez isn't here at the moment, he is buying a dictionary to work out what a BCA is.
It is nice to see that Pills help you in an urgent manner.
The requirements are nice, but strangely you omitted the part that shows us what you have attempted to do to solve the problem.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
Dalek Dave wrote: you omitted the part that shows us what you have attempted to do to solve the problem.
They were in the message, but they self destructed after 10 seconds.
|
|
|
|
|
Member 7402166 wrote: ....so pls help me urgent
It's really terrible thing that you are laughing when your work is urgent.
|
|
|
|
|
sir , iam using asp.net with c#.
how to send sms from asp.net can you give me example which help me.
|
|
|
|
|
developerit wrote: how to send sms from asp.net
ASP.NET is a technology. You can't use it to send SMS. You can however use a language, such as C#. There are plenty of examples easily found here[^]
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi,
I want to detect if a user has closed his ie browser using the [X] button on top right.
How to achieve it in ASP ?
Thanks in Advance.
|
|
|
|
|
You can't really achieve it with ASP.NET. You can however capture the onbeforeunload event with JavaScript, though it is not 100% accurate.
http://blogs.x2line.com/al/articles/756.aspx[^]
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
|
Hello, im trying to build a gallery using C#.
Ii've made a Listview showing photos from database as thumbnails in a "kind of a film strip", including a pager.
What i need is that when i click on a thumbnail inside the ListView, to show the large photo in a image control outside the listview. this should work using the selectedIndexChanged event, i have no idea what to do in there, i will appreciate any help since i searched a lot online and didnt find anything helpful.
thank you,
Basil
|
|
|
|
|
Hi Farraj,
As far as i know,
you can use CSS[^] to get this functionality.
There is some example and tutorial on Google[^].
if ur intention is only want to display what u selected.
u can do that easily with CSS without post back.
give all image control from list view to same CssClass name.
then from css style sheet. change the image of outside frame.
you can get a lot of jQuery[^] example for this..
Hope it works!
|
|
|
|
|
Hi,
I wanted to have link button with name from the function as its value but couldn't figure it out how to do this. right now I am having the code like this but it doesn't work.
<asp:TemplateField HeaderText = "Name" >
<ItemTemplate>
<asp:LinkButton ID="btnViewDetails" runat="server" Text="<%# GetName(DataBinder.Eval(Container.DataItem, "First").ToString(), DataBinder.Eval(Container.DataItem, "Last").ToString())%>" OnClick="BtnViewDetails_Click" />
</ItemTemplate>
</asp:TemplateField>
Error is:
The server tag is not well formed.
I need to have link button text field from some functions. Is there any way to get this? any Ideas??
suchita
modified on Tuesday, March 15, 2011 10:23 AM
|
|
|
|