Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:614003
More Search Options
RSS Available
Matching Posts
Need guidance on creating access permissions for data in web app
I am modifying a small app that needs to show data based on a users permissions. It is a web app that uses forms authentication. The app is a repository of documents that authenticated customers and internal sales personel use to learn about our products. In addition the repository contains some documents that are considered public and can be accessed from the website without authentication. Currently we have a flag in the documents table that specifies -- Public, Customer, Internal for each document
Posted to
Architecture
(Forum)
by
Kevin.McPhail
on 5/7/2008
Re: Using javascript on pages that use a master page
Holy smokes! I feel like an idiot. Can't believe i did not try that before posting.
Posted to
ASP.NET AJAX UI
(Forum)
by
Kevin.McPhail
on 11/19/2007
Using javascript on pages that use a master page
I was wondering if i could get any guidance on using javascript for pages that make use of a masterpage. To give a specific example i would like to implement the delay load described by Matt Berseth here: http://mattberseth.com/blog/2007/07/delay_load_an_updatepanel.html . In the example he implements a lot of javascript that is specific to the page so i don't think it makes sense to add it to a script library. But how do i use it in a page inherited from a master page. The js is specific to
Posted to
ASP.NET AJAX UI
(Forum)
by
Kevin.McPhail
on 11/19/2007
Filed under: Javascript, MasterPage, ajax 1.0
User control with modalpopup
I am trying to put a user control inside a modalpopup. The popup is a checkboxlist that when closed populates a textbox. The functionality i am striving for is exactly like the tags functionality for the asp.net forums new post form. If i put the checkboxlist, modalpopup, textbox, and button controls inside the user control the modalpopup will not fire. I can do it with a popup fine but would like to use a modalpopup. Anyone know how the tags tool for these forums works?
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
Kevin.McPhail
on 10/16/2007
Re: Sorting with Gridview
Sorting is not terribly difficult to implement for your business object. Once implemented you can use objectdatasource with sortexpresssion and be ready to go. Paging is also supported when using objectdatasource just check enable paging in the gridview (as long as you return a collection of all the records you want to page with the initial read operation otherwise it is slightly more complex for both paging and sorting if you want to return a page of results from the db at a time). Imar Spanjaars
Posted to
Data Presentation Controls
(Forum)
by
Kevin.McPhail
on 10/13/2007
Re: I need the rows of my gridview truncated (wrapped) not taking 2 lines
// find the control: HyperLink myLink = (HyperLink) e.row.findcontrol('linkToTruncate"); // get current string for hyperlink string strOriginal = myLink.Text; //truncate to 16 characters (seems short to provide meaningful hyperlink) string strTruncated = strOriginal.Substring(0,15); myLink.Text = strTruncated; I made this verbose for clarity but you could also use: myLink.Text = myLink.Text.Substring(0,15);
Posted to
Data Presentation Controls
(Forum)
by
Kevin.McPhail
on 10/12/2007
Datareader assigning sql bit column to c# boolean... exception?
I have the following public property in a file class public bool IsApproved { get { return _isApproved; } set { _isApproved = value ; } } From my data layer i create an instance of the class and fill it with a private fill method that accepts a datareader and sets the objects properties. This works great for strings, ints, etc. When i get to the following line: myFile.IsApproved = myDataRecord.GetBoolean(myDataRecord.GetOrdinal( "IsApproved" )); It throws an exception: System.IndexOutOfRangeException
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
Kevin.McPhail
on 6/6/2007
Re: Hiding controls in gridview based on user role
I could hide the control as well. Upon further testing i believe the issue is that the control is not present yet for findcontrol to locate it during rowdatabound. Can anyone point me to the correct event in the page lifecycle to use?
Posted to
Data Presentation Controls
(Forum)
by
Kevin.McPhail
on 4/27/2007
Hiding controls in gridview based on user role
I am trying to hide controls based on whether an user is in a certain role. I can hide an entire column using: protected void gvw1_RowDataBound( object sender, GridViewRowEventArgs e) { if (Roles.IsUserInRole( "Admin" )) { return ; } else { e.Row.Cells[4].Visible = false ; } } But i want to be able to hide just the controls so if there are multiple controls in a cell or someone adds a column to the page it does not necesarily invalidate the check. I tried the following but it did not work. protected
Posted to
Data Presentation Controls
(Forum)
by
Kevin.McPhail
on 4/26/2007
Re: Sitemap, security, and anonymous users create a Catch-22
What tabstrip control are you using? Can you post the relevant parts of the master page (or aspx page) and sitemap you are using?
Posted to
Security
(Forum)
by
Kevin.McPhail
on 2/21/2007
Page 1 of 11 (108 items) 1
2
3
4
5
Next >
...
Last »
WindowsClient:
ASP.NET AJAX 4.0 Data Binding on MSDN Magazine
WindowsClient:
Don’t miss out..
TechNet Edge:
Improving Collaboration with SharePoint - Tech Focus December 2009 Part 1
Channel 9:
Channel 9 Live at PDC09: Scott Guthrie
Channel 10:
Get Discounted Concert Tickets at the New Windows Section 7
Channel 10:
Get Bing Wallpapers on the iPhone
Channel 10:
Bing Gets a New Toolbar
ASP.NET:
More on medium trust: what permission are you missing?
Channel 9:
Channel 9 Live at PDC09: Bob Muglia
WindowsClient:
Adventures With Windows Azure Diagnostics
Mix Online:
Adventures With Windows Azure Diagnostics
Channel 9:
Channel 9 Live at PDC09: Ray Ozzie
Channel 9:
Coding4Fun: DrinkTendr
Channel 9:
TWC9: Scott Hanselman, John Galloway, Bing, parallel unit tests, more
TechNet Edge:
ISA to TMG Migration Guidance
Channel 9:
Life at Microsoft: Episode 3
TechNet Edge:
Microsoft Windows Server 2008 to AITP
ASP.NET:
How important is medium trust to you?
WindowsClient:
Microsoft Web Platform & You
WindowsClient:
New Book: Developing for Microsoft Surface
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online