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:624995
More Search Options
RSS Available
Matching Posts
Re: Cannot use a leading .. to exit above the top directory
I'm actually having the same problem except version 4.0.2 and the page that is showing up is not hidden. Anybody with any thoughts?
Posted to
DotNetNuke
(Forum)
by
cmgray
on 5/9/2006
Re: Confirmation to delete from a DetailsView
You can use the same technique I posted above in a detailsview control if you're using 2.0. The other option if you need to do this from code is to use the findControls method of the details view to find and then attach the javascript to the button control. e.g. (Button)delButton = (Button)DetailsView1.FindControl("deleteButton"); delButton.Attributes.Add("onclick", "return confirm("Do you want to delete?")); -C
Posted to
Client Side Web Development
(Forum)
by
cmgray
on 3/8/2006
Re: Confirmation to delete from a DetailsView
Here is an example of how you would do this with any standard ASP.NET 2.0 button control. You would need to find the button that you're looking for in the source editor and add the code to the OnClientClick property just like the code below. < asp : Button ID ="Button1" runat ="server" Text ="Delete" OnCommand ="Delete" OnClientClick ="return confirm('Do you wish to delete?');" /> That will get the job done. 2.0 adds that excellent OnClientClick property.
Posted to
Client Side Web Development
(Forum)
by
cmgray
on 3/7/2006
Re: Confirmation to delete from a DetailsView
I don't think it is possible to this server-side (someone correct me if I'm wrong) but you can easily do it on the client-side. If you're using .NET 2.0 you can just put the javascript code return confirm('Do you wish to delete?'); in the OnClientClick property. If you're using 1.1 you would just need to add that javascript to the onclick attribute from your code-behind. Let me know if you need an example of that one.
Posted to
Client Side Web Development
(Forum)
by
cmgray
on 3/6/2006
Re: Change forecolor of a cell in a dynamic datagrid?
If you are able to use asp.net 2.0, the gridview control makes it easy to do this. You override the onRowDataBound method and do you colorizing there.
Posted to
Data Presentation Controls
(Forum)
by
cmgray
on 2/27/2006
Re: retrieve image from database then resize it before rendering on webpage
Here is some C# code that I use to do exactly that. I pull the image from an image field in a database and resize it memory, then put it out to the output stream. public partial class ShowImage : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["Connection"].ConnectionString); SqlCommand photoCommand = new SqlCommand("SELECT Image FROM Photos WHERE PhotoID = @PhotoID", connection); photoCommand
Posted to
System.Drawing/GDI+
(Forum)
by
cmgray
on 2/25/2006
Re: Movable, Transparent Highlighting box over an image
That definitely sounds like something that would be accomplished using client script. Are you suggesting something like is done on flickr.com?
Posted to
System.Drawing/GDI+
(Forum)
by
cmgray
on 2/25/2006
Re: global variables help?
I think using the singleton pattern would be what you want since it creates a single instance of a globally accessible class. Here is a tutorial for C# http://www.codersource.net/published/view/293/implementing_the_singleton_pattern_in.aspx
Posted to
Getting Started
(Forum)
by
cmgray
on 2/25/2006
Custom Role Provider, IsUserInRole wont fire.
I am implimenting a custom role provider to work with an Active Directory. I want to use AD Scurity Groups for roles. I have the provider class written and when I call Roles.IsUserInRole from my page it seems to be working because the GetRolesForUser method will fire and I can output a list of all roles for that current user. But it will not fire my IsUserInRole method, it never gets to it and thus always returns false. Does anyone have any ideas why that method isn't firing? The GetRolesForUser
Posted to
Security
(Forum)
by
cmgray
on 9/19/2005
Page 1 of 1 (9 items)
ASP.NET:
Death to confirmation dialogs with jquery.undoable
Channel 9:
E2E: Brian Beckman and Erik Meijer - Co/Contravariance in Physics and Programming, 1 of 2
TechNet Edge:
Windows Server 2008 R2 Quick Look #3 - PowerShell V2
ASP.NET:
2009 Blogged - Greatest Hits
WindowsClient:
2009 Blogged - Greatest Hits
Channel 9:
Nikolaj Bjørner and Leonardo de Moura: The Z3 Constraint Solver
Channel 9:
MEF & Silverlight 4 Beta - Part 2, Imports & Exports
Channel 9:
MEF & Silverlight 4 Beta - Part 1, Introduction
WindowsClient:
The (Near) Final Word on Multi-Monitor Taskbars for Windows 7 - Ultramon vs. DisplayFusion
WindowsClient:
Looking back at 2009, and forward to 2010
Silverlight:
Polling Video – A Viable sub-second alternative?
TechNet Edge:
Windows Server 2008 R2 Quick Look #2 - Active Directory Recycle Bin
Channel 10:
I'm a Windows 7 PC Themes
Channel 10:
24 Years of Windows Box Art
WindowsClient:
Silverlight tutorial: HOW TO build CommandLink Control in Silverlight with Expression Blend 3 and Behaviors
ASP.NET:
Converting an RGB Color To Hex With JavaScript
Silverlight:
Silverlight HVP Design – Configuration & Scenarios
Channel 9:
Channel 9 Live at PDC09: Day 3 Welcome
Channel 9:
Channel 9 Live at PDC09: TWoC9 Day 3
Channel 10:
Microsoft's Mobicast: Stiched Cell Streams
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online