CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.dotnetnuke.getting_started Tags:
Item Type: NewsGroup Date Entered: 4/8/2008 6:05:27 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 39 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
sparrow1
Asp.Net User
Accessing controls in a gridview in dotnetnuke.4/8/2008 6:05:27 AM

0/0

I have been struggling to access my controls in a gridview using Findcontrol built-in. I have no idea why. Can someone help please? Below is my code.

Dim Dist As DropDownList = DirectCast(GridView1.FindControl("ddlDistrict"), DropDownList)

Dim CaseLabel As Label = DirectCast(GridView1.FindControl("lblCaseID"), Label)

Unfortunately, I can't retrieve the dropdown and  label values. Please help.

ecbruck
Asp.Net User
Re: Accessing controls in a gridview in dotnetnuke.4/8/2008 12:19:51 PM

0/0

You must use the FindControl method of the GridViewRow reference instead of the GridView itself. A GridView has many rows within it so it has no idea what row you are trying to retrieve your references from. What event are you using to try and retrieve your controls?


Thanks, Ed

Microsoft MVP - ASP/ASP.NET

Please remember to 'Mark as Answer' if this post answered your question!
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Cannot access GridView in javascript - ClientAPI Component [Lead ... Dec 3, 2008 ... I am not being able to access the grid on the client side as i can access the other ASP controls. So basically when i say documnet. ...
Cannot access GridView in javascript - ClientAPI Component [Lead ... Dec 3, 2008 ... Jango Studios - Skins, Modules and Hosting for DotNetNuke ... to access the grid on the client side as i can access the other ASP controls. ...
DotNetSlackers: Accessing individual cell data in a GridView ... Accessing individual cell data in a GridView through the CommandArgument value. Posted by: The Code Project Latest Articles, on 12 Sep 2007 | View original ...
Retrieving GridView nested EditItemTemplate TextBox control value ... Rows[index]; // then access the cell where the TextBox is. } ... e) in c:\ DotNetNuke\DesktopModules\pulladata2\altQuery.ascx.cs:line 189 ...
Who actually uses DataGrid/GridView/FormVIew/etc in production ... I like the GridView control and have used it in several custom DotNetNuke modules for my company's web site. For one thing, using the built-in controls ...
CodeProject: Creating a DotNetNuke® Module - For Absolute ... Jan 21, 2007 ... The module consists of three controls (and their "code-behind" files): ....
Accessing gridview DataKey field in some javascript function ... Nov 10, 2008 ... Accessing gridview DataKey field in some javascript function ... yes you can accessing it through all predefined events of the controls, ...
import access to gridview - Dot Net Search Engine swicki - powered ... gridview editing in window base forms. import access to gridview. ... Stuartdenley The Fastest, Easiest way to learn DotNetNuke! ...
DotNetNuke Modules - DNN Controls - Label Jun 18, 2008 ... The DotNetNuke framework has several built-in controls that you should use ... DotNetNuke Modules - Data Access Layer - August 5th, 2008 ...
GridView and dynamic rows... - ng.asp-net-forum.windows ... Gridview and dynamic controls. Well, I was refactoring some code today ... When accessing the Rows property of the gridview when the rows . ...




Search This Site:










how to detect line break on text area

sitemap control

the specified string is not in the form required by an email address

membershipusercollection changepassword

dynamicaly adding nodes to sitemap

adding a blank to a dropdownlist (**newbie**)

css stylesheet in theme not applied to 1 page out of 40 in site

problems with dynamic webpart

login control - username whitespaces

programmatically format date

automatic domain logon based on windows login?

windows media player wont play

calling asp.net1 from asp.net2 on same page, frames, best practice?

question about loging user into an asp.net application

wrong publishing locally russian page

login

visual basic or c#

dataset question

cookie problem

simplest form ever! a little help?

how to connect an asp.net application to a desktop application?

connection string (sql) write it once and not 20 times!!!!

sharing cookies in domains

accessing control inside the wizard step

dnn 3.1 module definition files

passing dropdownlist name (any asp.net control) to single function

http handler problem

buy dnn skins

vsmar07ctp_vsts_7partstotal.part05.rar corrupted?

adding properties to the user object

 
All Times Are GMT