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:636357
More Search Options
RSS Available
Matching Posts
Re: Can you have nested gridviews or a gridview inside a gridview?
Glad you found this usefull. The permalink to the article is http://www.kellytadams.com/mt-archives/2006/01/nested-gridview.html After learning a but more, I think it's a bit wasteful, since it makes a new connection for each row in your master gridview (turn paging on!).
Posted to
Data Presentation Controls
(Forum)
by
CodeSalad
on 5/2/2008
Re: Total Row Count of GridView
If you are using the Scott Mitchell tutorials on custom paging, and an object data source, you can get the total row count for your data this way: It's important to note that the Selected event on the ODS get's called twice, once returning the data set, and again to call the method you specified in the SelectCountMethod property. Simply test to see if the return is an Int32 in the event. protected void searchDS_Selected( object sender, ObjectDataSourceStatusEventArgs e) { if (e.ReturnValue
Posted to
Data Presentation Controls
(Forum)
by
CodeSalad
on 8/3/2007
Re: reportviewer: code the windows credentials
This can be done. First create a class called ReportServerCredentials that implements the IReportServerCredentials interface. You will need to import System.Net and Microsoft.Reporting.WebForms to this class. Overload the New and GetFormsCredentials methods and the NetworkCredentials and ImpersonationUser properties. Here's a class that I use: Imports Microsoft.VisualBasic Imports Microsoft.Reporting.WebForms Imports System.Net Public Class ReportServerCredentials Implements IReportServerCredentials
Posted to
SQL Server Reporting Services
(Forum)
by
CodeSalad
on 8/10/2006
Re: Configure Data Source doesn't set Size property on parameters in VS2005
I would have loved to use the ObjectDataSource and confined the business logic there, but we are only a three developer department, this app is a rush job (when are they not?), and it's intranet only-- so, yeah, the SQL is in the, uh, ahem, presentation layer. Basically this all adds up to: quickness beats out elegance and maintainability. Maybe part of it is that old habits are hard to break. I seem to remember a 15Seconds or 4GuysFromRolla article discussing ad hoc versus business objects from
Posted to
Data Presentation Controls
(Forum)
by
CodeSalad
on 2/16/2006
Configure Data Source doesn't set Size property on parameters in VS2005
Wow, I love how fast I can crank out an app using the built in "Congfigure Data Source" wizard for the SqlDataSource objects. It's nice that it automatically interrogates the schema of the table/stored proc to generate the proper INSERT and UPDATE commands, and then it creates parameters of the proper type (strings for varchars, bytes for tinyints, etc.). But man, I sure wish it would set the Size property to the maximum size of the underlying field. Since you can't set a MaxLength for a BoundField
Posted to
Data Presentation Controls
(Forum)
by
CodeSalad
on 2/2/2006
Re: Binding second stored proc to gridview
You could try binding a nested GridView to the first by using the Eval("field", "string") one-way data-binding to create the SelectCommand property value that executes your stored proc. ex: SelectCommand='<%# Eval("user_id", "EXEC StoredProc '{0}'") %>' I have a write-up on my blog showing how to do it: http://www.kellytadams.com/mt-archives/000263.html
Posted to
Data Presentation Controls
(Forum)
by
CodeSalad
on 1/30/2006
Re: SQLDataSource Relational Data
I found a cheesy way to do nested GridViews using the Eval("field", "string") method to dyno-magically generate SelectCommands for the nested datasource. It's not pretty, but if you have paging set up on the parent GridView, it won't crush the server too hard. See my expanded write-up on my blog at: http://www.kellytadams.com/mt-archives/000263.html
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
CodeSalad
on 1/30/2006
Page 1 of 1 (7 items)
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
Channel 9:
BugCamSmash in Action!
Channel 9:
Virtual Earth Videomap Movies
TechNet Edge:
AD RMS Certificates and Licensing on the Client and the Server
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 10 of 13 [C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 10 of 13]
Channel 10:
Bing Launches 2nd Homepage Photo Contest
Channel 10:
Bing4Free Lets You Use Bing.com Images for Desktop Wallpaper
Channel 10:
Bing Updates: Streetside Views, Photosynth, and "Mapplications"
Channel 10:
Bing for Windows Mobile Updated
WindowsClient:
New WPF Showcase: Bling Tweets
WindowsClient:
Tale of two tweets - VS beta - is it busy 70% of the time or is it brilliantly fast?
TechNet Edge:
Forefront TMG URL Filtering and MRS
Mix Online:
Using the HTML5 Video and Audio Tag with Gestalt
WindowsClient:
Subclassing Shape (or more accurately, Path)
WindowsClient:
Having trouble deleting files? Try this
Channel 9:
Nick Baker: Xbox Architecture
TechNet Edge:
Thrive Live! Behavioral Interviewing: A behavioral answer is always the correct answer
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online