Hello,
I'm trying to implement impersonation.
When I use LogonUser with LogonSessionTyp e.Network I get a token which I pass into the WindowsIdentity constructor. That seems to work - I get an identity with the expected name.
However, when I use LogonSessionTyp e.NewCredential s and afterwards do DuplicateToken (to get the SecurityImperso nation token)
the WindowsIdentity object I create seems to still...
User Profile
Collapse
-
Impersonation - using Impersonate with NewCredentials
-
Ok, I'll repost - thanks... -
Thanks acoder - I know how to code the JavaScript logic to check if the hours are valid/invalid.
What I'm having trouble with is the .NET part - or specifically, how to make it look like a validator behavior, without messing with the other validators.
It IS something .Net so you'd have to know what validators are / how they work, to help - since that's my main issue....Leave a comment:
-
Thank you mrhoo for the reply,
but i'm having trouble with your suggestions - perhaps i should have explained my User Interface better.
I have two textboxes, both need to get Time input. The way I want it to look is as if I have a validator for each control, checking every time I leave the focus of either checkbox if the time range is valid. I wrote the validation function in JavaScript, I just don't know how exactly...Leave a comment:
-
Nope, I'm not THAT new to programming :)
Take a look at the ObjectDataSourc e property SelectMethod:
http://msdn2.microsoft.com/en-us/lib...ectmethod.aspx
The method name you provide for the ObjectDataSourc e is the name of a static method. When a DataBind occurs the DataGridView (bound the ObjectDataSourc e) calls the Select method to get data - but since it's Static...Leave a comment:
-
Time validation with CustomValidator
Hey everyone,
I've been working with the AJAX Control Toolkit (Version 1.0.20229) to make a web form. I used the masked textbox to create two textbox for Time input (HH:MM format). It's supposed to be a range - the Start time textbox value should be smaller than the End time textbos.
I'm looking for the best way to validate the correct order of the times. I've been trying several approaches - and I'm kind of stuck.... -
frankiefrank started a topic Passing an object to the Business Logic in my ObjectDataSource.SelectMethodin .NETPassing an object to the Business Logic in my ObjectDataSource.SelectMethod
Hi, (ASP.NET question)
I'm using an ObjectDataSourc e on a DataGridView for a custom paging/sorting scenario. I implemented a method that gets the parameters for the paging (number of rows to retrieve, index of first row) and the SortingExpressi on.
In my page I have a lot of controls, used to determine which data I have to select from the DB. Since I'm using the custom paging, I had to make a static method that gets the... -
ASP.NET Populating DropDownList based on RadioButtonList Selection
Hello,
I have an aspx page with a RadioButtonList that has two Items, and a "ComboBox" (DropDownList) that I want to populate based on the selection in the RadioButtonList .
The first RadioButtonList option is the default so I want to populate the dropdown list based on that in the beginning. Then every time the user clicks a radiobutton the dropdownlist items collection is cleared (in the SelectedIndexCh anged... -
Thank you for the in-depth reply, I'll see what i manage to do....Leave a comment:
-
Hello,
Yes I understand that I don't want to create a temporary HTML file. What I wanted to do is just create a new window in js, then use window.document to access the HTML DOM and write into the innerHTML the string that I build on the server.
The reason for building the string on the server is that I already have methods that collect parameters from the aspx page controls on the server side, so it's...Leave a comment:
-
Hey kenobewan,
Thanks for the reply but I don't understand your suggestion.
Let's say I have my page Report.aspx. And I want to navigate to a page that doesn't have a url since there's no aspx/html file, just a string I created in run-time, like in the Button_Click code, fired once the user clicked on the Print button.
Where do the form_load or onload events come into this?...Leave a comment:
-
ASP.NET Opening New Window with HTML Created During Run-Time
I have an aspx with a gridview (paged and sorted) and I want to display it in a new page - typical Print Preview situation.
Initially the GridView was "simple" (no paging) and I wrote a JavaScript that transfered data from other controls (containing parameters used to populate the gridview) by using <span> tags with a specific 'title' attribute. I used the .innerHTML property to find the values I was interested in,... -
Yes.
Just a moment ago - I managed to not get the exception after adding
to my page. I'm sure I'll face some more trouble once i'm working with the master page... I'll write more if so....Code:public override void VerifyRenderingInServerForm(Control control) { }Leave a comment:
-
ASP.net Using RenderControl on GridView raises form related exception
I have been struggling with this issue for some time, hope someone here can help out.
After facing the issue (will describe it soon) in a solution with Ajax and a Master Page I decided to try it in its most basic form: I created a new project, new aspx page with a GridView.
I notice that once I create the new page the body contains a <form runat="server"> tag.
I add a GridView, data comes...
No activity results to display
Show More
Leave a comment: