How To Control The Permission-related User Interface
Mar 25, 2011
I am new in developing using asp.net.
I use java(struts2) to do the web application before,it is easy to control this use the jsp tag or struts2 tags: For example(suppose the "do something" operation need use login):
<s:if test="#session.user!=null">
<span>do something</span>
</s:if>
So if a user did not login,he will never see the menu of "do something".
Now I wonder how to make it in the asp.net?
Is this controled in the xx.aspx.cs?
View 1 Replies
Similar Messages:
Dec 1, 2010
I'm looping through an array of controls and need to know which controls an end-user has the ability to (via JavaScript or directly) change the value that gets posted back. Where can I find such a list?
So far I have this:
Private Function IsEditableControl(ByVal control As Control) As Boolean
Return TypeOf control Is IEditableTextControl _
OrElse TypeOf control Is ICheckBoxControl _
OrElse GetType(ListControl).IsAssignableFrom(control.GetType()) _
OrElse GetType(HiddenField).IsAssignableFrom(control.GetType())
End Function
View 2 Replies
Feb 24, 2011
I'm trying to allow logged user who are in department XYZ to perform some task for my third party App. I have two SQL tables named Users & UserList. The third party app (GoldMine) graps the USERNAME from the Users table and store it as UserID which I then referecnce SessionID. The UserList table has two columns (GM_UserName & Department) which I'm interested in. When a user login into the 3rd party app (GoldMine), i then compare the USERNAME (from Users table) to GM_UserName (from UserList table) and see whether GM_UserName is in = 'Dept XYZ'. Take a look at the SQL query below.
sqlDept = "SELECT USERNAME FROM Users LEFT JOIN UserList ON UserList.GM_UserName=Users.UserName WHERE UserList.Department ='Dept XYZ'"
I'm able to do this.
If Session("Userid") = "TestUser1" Or Session("UserID") = "TestUser2" Then Do this Else Do that End If
BUT unable to do this...
If user's Department = 'Department XYZ' Then
Do This
Else
Do that
End IF
View 2 Replies
Oct 31, 2010
I have deployed an web application in my system which is having public IP. I am able to log in to the application using some user id and passwords which where created earlier. But when i use another user id and pasword it is showing the below message:
"The user does not have permission to log in to the application. contact your administrator"
I have checked the database there was no changes made to set the settings for these users. It is not coming for all the users but it is coming for certain users only.
View 3 Replies
Feb 7, 2011
i use this codes to give permision to user for some pages
[Code]....
i know that i can use IsUserInRole("UserName") method to give permision to user but, i'm looking for something else because, i can't check all roles for all pages and also i write the code in web.config file because of i use sitemap for menu and with this method i can show the user that part that's allow for that user. now my question is: can i write some code to do the same method that, i write some codes in web.config file?
View 1 Replies
Mar 17, 2011
One thing I would like to improve on for many of my web applications, is the user interface design and the "look and feel" of the sites. To begin looking at how to do this, I thought I would start by asking the community what additional software they use or would recommend to combine with either VS2008 or VS2010.
View 2 Replies
May 6, 2010
I have several tables in a database (6-7 tables and ~200,000 records, MS SQL) that I'd like users to be able to use a web based query form and return information/datagrid/download csv/excel files. I'd like the user to be able to query the table they want and fields they want, time they want (maybe datepicker)or by selecting a field and perform a GT/LT operation on it. Has anyone done this and if so are there any resources/templates for this type of thing?Here is an example:I have a 'weather' table with 20 variables in it. I'd like a user to be able to select the fields they want to export (radio/check box) by using a date picker A user could select the variable "Temperature" and use GT/LT, etc. some value they enter. in a perfect world, the user could select a checkbox to include all other fields in the output.
View 1 Replies
Apr 4, 2010
how to create a guestbook user interface
when user click the submit button, all the content of the textarea will be display in nest table.
is it done by javascript? or just div or span tag can do this.
i am using jsp/java servlet to do guestbook, but i had no idea to build the guestbook, so leave msg here.
View 2 Replies
Apr 24, 2010
I have an issue in the assign premission (access denied error while upload a file in server folder).. in windows 7
View 2 Replies
May 6, 2010
I am somewhat of a novice at ASP.NET, but have a lot of database experience. I want to build a web query interface to allow users to get data back from a database. The idea would be to choose various fields (I have about 20+ fields and 200,000 records in the database, and use either the checkbox, listpicker, radio, etc. to select the fields they want). Then the person could search by date, or search by greater than/less than statements in a particular field.
For example: the user could select: Temerature as the variable, and then Greater than and then enter a value and hit submit. I'd like the option to be able to include all the other fields from the table as well (maybe with a check box or something).
View 14 Replies
Feb 28, 2010
I have a webpart with asp.net control within.I would like to hide some parts of that control, some asp:net panels etc. regarding one of the TextBox's value. The issue is that I don't know to change the visibility of asp:panel wrapper without any postback, and how to refresh page to see the changes on the UI.I was trying to implement TextChanged event but it dosen't work.
View 2 Replies
May 4, 2010
I'm looking for advice on what .NET user interface components are out there on the market. I have been developing asp.net websites and have mainly been using the Visual studio toolbox build in controls supported by the AjaxcontrolToolkit and the applications have been mainly used inhouse running on our company intranet.
But now a new client wants a much more professional looking, commercial web application and they have a budget for some user components for use in the application. Any recommendations where value for money will be realised.
Interested in components that will integrate well with ASP.NET 3.5 SP1 or even .NET 4.
View 2 Replies
Feb 18, 2011
I want to deisgn a user memebership management interface which allows the Site Admin to:
View all the users and the role the are assigned. Also I want to have a Manage/Edit linkbutton which shows a Popup Modal, allowing the Admin to update the users details.
I come across [URL]. Are there any similar Open Source free components? Or tutorials which i can follow to achieve this?
View 1 Replies
Sep 21, 2010
I have a custom ASP.NET application which is hosted in the SharePoint _layouts directory. The code uses the object model to do certain actions on a SharePoint list. I'm receiving the following error when trying to perform
[code]...
When I give my user account administrator rights on the server it works fine, so it's a permission problem, but can't figure out what it is?
View 3 Replies
Mar 25, 2011
I'm staring to learn T4 .I want to create a framework for my self that enable me to generate DAL and UI.Like Code generator softwares that maps Codes and User Interface from database .i don't have any question about generating data access layer.my challenge is to generate UI ( asp.net controls and HTML)
View 1 Replies
Jun 2, 2010
I want to enable/disable controls of a asp.net page against a logged in user's permission. say 'admin' & 'hr' can change user's birth date text-box in a page but others will see the text-box as disabled.
so i wrote a function like this
[code]....
View 3 Replies
Apr 3, 2011
I have an asp.net application. There is a folder in the project that users upload images and files to that folder.
I want to restrict users, that each user sees only his files. How can I do this?
Because files are uploaded in folder, users may access them by browsing file urls.
View 1 Replies
Feb 10, 2010
I am creating one folder like "ManageFiles" dynamically. and that time i am storing some files inside that folder.If i want to download files from that folder for some user, I am getting error.
View 1 Replies
Aug 2, 2010
i have three types of users and i want each one of them to reach only its pages not the othersi want to know what to do in database and the code
View 9 Replies
Jun 19, 2010
the following will clearly show the steps i have taken to achieve a connectivity to database "123" such that the remote user who is using sql login verification can do whatever he wants with the "123" database, and thee remote user cannot change anything of any other database.
?the permission u see granted in the pictures is just guest work, IT WORKS! but i would like to know the required correct permission to grant and not more permissions (to the point permission- DO ANYTHING WITH DATABASE "123" AND THATS IT- DONT EVEN SEE THE OTHER DATABASES)
?how shall i stop this remote user or deny this remote user from even viewing the other databases. a you can see the remote user cannot change anything in other databases but he can see them! I DOT WANT Him to VIEW THEM.
please give your comments and guidence "to achieve the above goals LIKE A PROFESSIONAL WOULD"
and a site link explaining these many permissions in sql server 2005 management studio express would be helpful.
View 1 Replies
Aug 6, 2010
I am not sure how the user defined class objects are garbage collected. Do I need to implement IDisposable interface on every class and call the dispose() method on it to free the memory?
View 7 Replies
Aug 27, 2010
Q. Which control have visible interface.
1. Repeater
2. Datalist
3. Dropdownlist
4. Datagrid
View 2 Replies
Feb 17, 2010
Has anyone seen any solid libraries for working with active directory (mainly user related stuff) in C# and asp.net. Am I better off intergrating with asp membership or building something customised.
I took a look at LINQtoAD but it doesnt seem to be active anymore.
View 2 Replies
Sep 24, 2010
How to check user is related to a particular group , if he is assigned to multiple groups
View 5 Replies
Oct 20, 2010
We have a WebForms Control which requires that the ID of another Control implementing ITextControl is provided.What exception should we throw if there is no control with that ID or a control is found but it's not implementing the interface?
[code]...
Should we split it into two cases and throw one exception if there is no control with that ID, and another one if said control does not implement ITextControl?If so,which exceptions should we use then?
View 3 Replies