Hi I have an ASP .net application and I am using Forms authentication.
I have some pages that are just "contact information" and "About this application.." etc .. how can I set the web.config so that these pages do not require authentication but teh rest of teh application still does?
I am using Foms Authentication in my .NEt application.
When the appliction is staretd in a new browser window, my authentication works fine, ie does not allow user to go to any page without first clearing the login screen.
However if I login, then logout and then try to access other pages I can...
BoulderBum, how do i "call" the java script code??
I use this to call it for the hourglass thing
mybutton.Attributes.Add("onclick", "javascript:hourglass();");
but this is event based ( onclick), how do I call the backtonormal () script assuming It shoudl be called on page postback?
(using...
I want to show a message box with a message based on a result of a query. how do I do this?
Currently I have the message displayed in a Label control on my ASP page, but a pop up message box woudl make more sense.
the query checks to see if some records exisr.
so here is what I want to do...
one more question: is it possible to show the message box AFTER the server code has run ? as in
"Thank you. your changes have been saved." ....after a user presses "Submit".
I tried to add this code inside the click event of a submit button. but nothing happens...
millerk, the hourglass part works great after a button click etc, but now the cursor shows up as a hourglass (even after post back ) when I hover it over the other controls on the page ( ex Labels)... though it shows up as a normal pointer hovering over the the button .
..what might be causeing...
I notice the pointer changes to a thin line when I hover the mouse over the validation controls on my ASP web page.
Its doesnt bother me, except now, after I added some code to change the pointer to an hourglass .When a user cliks some button pointer chanegs to hourglass and after post back...
ok never mind I figured out how by combining info from 2 other threads (thanks to millerk and LV!!!)..
here is what i used
// in the code behind in the
override protected void OnInit(EventArgs e)
{
....//
btnSubmit.Attributes.Add
("onclick", "javascript:hourglass();");
}
// the aspx page...
I need to capture it on the server i guess. the purpose is , say the user pressed a button called "Delete". the pop up box gives the user a warning asking "are you sure you want to delete this?"
if the user says yes: call delete function
if the user says no: call some other fucntion.
I have a fucntion call on the server side the takes 3-4 minutes as its inserting several records in the database. In the mean time users of the asp page get impatient and keep clicking the "submit" button,
though I have added a warning message etc, the best solution woudl be to have a hourglass...
thanks LV! it works great. but how do i capture the return value from the question in the message box
ie
1) if Yes --- do something
2) if no -- something else
Thanks but I was looking for an example in C# , the thread you pointed to was in VB, and i tried to modify it but not being very familier with java script i keep getting errros:
I tried this:
javascript: return confirm("Are you sure you want to delete this record?'");
gives me an errro saying...
I am trying to create a logout button on my application. which ends the users session, I currently have an HTML button with a runat=server since I have it doing the following actions 'onclick':
myownclass.unsetUserInfo();//my own function
Session.Abandon()...
hi I am a bit of a novice with sql server, coudl you please explain in detail? where do i access the domain account/ I am using integrated windows security so I do not ahvea specific user name and password
thx
thanks tb.my code seems to be fine too, I think the problem is that I am trying to transfer contents from a text file that is on a remote drive ( which I mapped to teh sql server machine) so when I try to run it from code, it cannot connect to the drive... I dont knwo which user name and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.