ASPFriends.com 'aspngdatagridrepeaterdatalist' list Archive - May 2002
Messages
Page: 1234
Update Problem (5 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Hello all, Does anyone see anything wrong with this code. I'm posting both the code and the error message. Thanks in advance. Richard M. CODE: %@ Page Language "VB" % %@ Import Namespace "System.Data" % %@ Import Namespace "System.Data.SqlClient" % HTML script language "VB" runat "server" Sub Page Load() Dim DS As DataSet Dim MyConnection As SqlConnection Dim MyCommand As SqlDataAdapter MyConnecti...
DATAGRID ROWS (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Moved from [aspngvb] to [aspngdatagridrepeaterdatalist] by devin devinr@drone interactive.com Hi I'm Andrea I've a DataGrid on a page and I want to Manage the visualization of the paging on the footer of the page For example if my datagrid Have more than 15 elements(rows) then I display the page on the footer But if are less I don't want display the paging... I've already Implemented this function...
REad Only (3 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
!DOCTYPE HTML PUBLIC " //W3C//DTD HTML 3.2//EN" HTML HEAD META HTTP EQUIV 3D"Content Type" CONTENT 3D"text/html; charset 3Dus ascii" META NAME 3D"Generator" CONTENT 3D"MS Exchange Server version 5.5.2652.35" TITLE REad Only /TITLE /HEAD BODY P FONT SIZE 3D2 How can one set the attribute of a cell/column or control with in a dg IF the cells value is equal to "Hello World" /FONT /P P FONT ...
Edit Column (6 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
!DOCTYPE HTML PUBLIC " //W3C//DTD HTML 3.2//EN" HTML HEAD META HTTP EQUIV 3D"Content Type" CONTENT 3D"text/html; charset 3Dus ascii" META NAME 3D"Generator" CONTENT 3D"MS Exchange Server version 5.5.2652.35" TITLE Edit Column /TITLE /HEAD BODY P FONT SIZE 3D2 HI all, /FONT /P P FONT SIZE 3D2 I have a dg with a edit function enabled. /FONT /P P FONT SIZE 3D2 Now I have drop downs on all the columns...
Drop down value (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
!DOCTYPE HTML PUBLIC " //W3C//DTD HTML 3.2//EN" HTML HEAD META HTTP EQUIV 3D"Content Type" CONTENT 3D"text/html; charset 3Dus ascii" META NAME 3D"Generator" CONTENT 3D"MS Exchange Server version 5.5.2652.35" TITLE Drop down value /TITLE /HEAD BODY P FONT SIZE 3D2 Hi all /FONT /P BR P FONT SIZE 3D2 I have a DG with drop downs in it (for the update/edit function) /FONT /P P FONT SIZE 3D2 Now how can...
Object as new object (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Hi All ~ This might be the wrong way to do this, but here's what I'm trying to do. On the aspx page, I have a datagrid, like so: asp:DataGrid AutoGenerateColumns "False" runat "server" id "TemplateGrid" AlternatingItemStyle BackColor "White" / Columns asp:BoundColumn DataField "vch Title" / /Columns /asp:DataGrid In the code behind, I want to create more than one of these grids, so that I can disp...
Counting (10 replies, VIP)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
!DOCTYPE HTML PUBLIC " //W3C//DTD HTML 3.2//EN" HTML HEAD META HTTP EQUIV 3D"Content Type" CONTENT 3D"text/html; charset 3Dus ascii" META NAME 3D"Generator" CONTENT 3D"MS Exchange Server version 5.5.2652.35" TITLE Counting /TITLE /HEAD BODY P FONT SIZE 3D2 IF I bind my data to my drop down in my editable drop down like this. /FONT /P P FONT SIZE 3D2 Client 3D CType(e.Item.Cells(3).Controls(1), Dro...
displaying data between <td></td> (6 replies, VIP)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Hi, I have a user control which displays news headlines from the database. I want to display the latest 5 headlines.How do i display them dynamically? I am using a stored procedure to get the data. My problem is I am not sure how to display them in the td . Thanks Srini Do not go where the path may lead, go instead where there is no path and leave a trail. R W Emerson
OnDeleteCommand... (4 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
ThreadPoolingWhen using an OnDeleteCommand within a DataGrid that holds a asp:ButtonCommand CommandName &quot;Delete&quot;/ the server generates the necessary client javascript that submits the form back to the server with the necessary parameters. Question: Is there a way to add a javascript Confirm method (or similar) to the generated javascript in order to check if the user really wants to Delete the row...
Loop through datagrid information(c#) (3 replies, VIP)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
The scenario; I just clicked Update on my datagrid that is displaying a SQL table, thus calling the 'MyDataGrid Update' method. I know if I want an individual item from a datagrid I could write something like this: Debug.Text ((TextBox)e.Item.Cells[4].Controls[0]).Text; But how do I loop through the whole row and get the values? How do I get the column names? Thanks, Stewart Haddock
Data Grid Row Height (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Does anyone know a way to manipulate the row height for data rows, header rows, and Paging rows?? If the data fills up the # of items per page, everything looks great. However, if I have say &quot;20&quot; items per page, and there are only 10 items, then all the rows expand.. I have tried the Paging Style Height, Header Style Height etc, but they don't seem to have any affect if the rows are less than the ...
Highlighting Update col (4 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
!DOCTYPE HTML PUBLIC &quot; //W3C//DTD HTML 3.2//EN&quot; HTML HEAD META HTTP EQUIV 3D&quot;Content Type&quot; CONTENT 3D&quot;text/html; charset 3Dus ascii&quot; META NAME 3D&quot;Generator&quot; CONTENT 3D&quot;MS Exchange Server version 5.5.2652.35&quot; TITLE Highlighting Update col /TITLE /HEAD BODY P FONT SIZE 3D2 Hi all /FONT /P P FONT SIZE 3D2 I am trying highlight the rows that have been update by using the following code in my itemcreat...
Data-binding array of hashtables (4 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Moved from [aspngcs] to [aspngdatagridrepeaterdatalist] by Douglas Reilly doug@accessmicrosystems.net My Wrox book and the .NET SDK docs don't really seem to cover a data binding case like this. I have a custom table that I want to bind data to. I'm using a Repeater object because each cell is full of spans and classes, so it looks like: [asp:Repeater id &quot;myRepeater&quot; runat &quot;server&quot;] [ItemTemplate]...
Check Box Item (2 replies, VIP)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
!DOCTYPE HTML PUBLIC &quot; //W3C//DTD HTML 3.2//EN&quot; HTML HEAD META HTTP EQUIV 3D&quot;Content Type&quot; CONTENT 3D&quot;text/html; charset 3Dus ascii&quot; META NAME 3D&quot;Generator&quot; CONTENT 3D&quot;MS Exchange Server version 5.5.2652.35&quot; TITLE Check Box Item /TITLE /HEAD BODY P FONT SIZE 3D2 Hi all, /FONT /P P FONT SIZE 3D2 I have some code where by I check which check boxes are check but if I use the following I keep receivin...
Randomnly assigned ID (4 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Hello All, I am using a DataView to show some data from my Database and I am wondering if is it possible to assign an custom ID to a checkbox created inside an ItemTemplate Something like this: asp:checkbox runat &quot;server&quot; Text &quot;Check 1&quot; ID &quot;chk % myDataSet.Rows(nLoop).Item(&quot;id&quot;)% &quot; /asp:checkbox Would this be possible, without needing to create the control dinammically? Thanks, Alexandre Rocco
Problem Uggrrr (4 replies, VIP)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
!DOCTYPE HTML PUBLIC &quot; //W3C//DTD HTML 3.2//EN&quot; HTML HEAD META HTTP EQUIV 3D&quot;Content Type&quot; CONTENT 3D&quot;text/html; charset 3Dus ascii&quot; META NAME 3D&quot;Generator&quot; CONTENT 3D&quot;MS Exchange Server version 5.5.2652.35&quot; TITLE Problem Uggrrr /TITLE /HEAD BODY P FONT SIZE 3D2 Here is a new well its not really a problem just code in the wrong place. /FONT /P P FONT SIZE 3D2 I have a dg ( as you all might know) a...
Anything wrong with this (2 replies, VIP)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
!DOCTYPE HTML PUBLIC &quot; //W3C//DTD HTML 3.2//EN&quot; HTML HEAD META HTTP EQUIV 3D&quot;Content Type&quot; CONTENT 3D&quot;text/html; charset 3Dus ascii&quot; META NAME 3D&quot;Generator&quot; CONTENT 3D&quot;MS Exchange Server version 5.5.2652.35&quot; TITLE Anything wrong with this /TITLE /HEAD BODY P FONT SIZE 3D2 Can anyone see anything wrong with this ( the names of the controls , pages and col are right they have been tripppple checked!...
Event not firing (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
!DOCTYPE HTML PUBLIC &quot; //W3C//DTD HTML 3.2//EN&quot; HTML HEAD META HTTP EQUIV 3D&quot;Content Type&quot; CONTENT 3D&quot;text/html; charset 3Dus ascii&quot; META NAME 3D&quot;Generator&quot; CONTENT 3D&quot;MS Exchange Server version 5.5.2652.35&quot; TITLE Event not firing /TITLE /HEAD BODY P FONT SIZE 3D2 Hi all, /FONT /P P FONT SIZE 3D2 I have text box ( BUT1) and but1 property onclick is set to run &amp;quot;onNext&amp;quot; /FONT /P P FONT SIZ...
bind hashtable to datagrid (4 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Hi, How can I bind a hashtable to a datagrid? I tried: DataGrid1.DataSource Hashtable1; But than it says: DataGrid with id 'DataGrid1' could not automatically generate any columns from the selected data source. Thanks, Yannick Smits
Why isnt the Datalist being displayed? (6 replies, VIP)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Dear all, I am trying to display some items in a datalist based on the Category obtained from a Query String. I have a few doubts here. 1) This page does not display the DataList at all. 2) I had declared the 3 Namespaces as Imports System, Imports System.Data, Imports System.Data.SQLClient, but I kept getting the error SQLDataReader not defined. 3) I had this same page as a Codebehind. In that ca...
(TextBox)e.Item.FindControl("ATextBox").Text of update button in datalist give old value not the changed value (2 replies, VIP)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
MessageHI LIST I have a datalist and a db field is assigned to a textbox's text property. now when i click on the button with CommandName &quot;Update&quot; and datalist OnUpdateCommand &quot;DoItemUpdate&quot;, and method/function public void DoItemUpdate(object sender, DataListCommandEventArgs e) { string a (TextBox)e.Item.FindControl(&quot;ATextBox&quot;).Text; UpdateMethod(a); } after I change the value of ATextBox textbox...
Repeater,DataList and DataGridRepeaterDataList (2 replies, VIP)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Hi could anyone help me in understanding the differences between a DataList and a Repeater. I have a situation where in I am using a datalist to pull some data out of a db and then using the repeatcolumns property of datalist display it in 2 columns. Can this be achieved using the Repeater also? And then there is the DataGridRepeaterDataList. Could some point me to some real time instances where t...
SV: Password field in datagrid (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Hi, I have a problem in datagrid. It will be helpful if anyone let me know the solution. I have a template column as follows. This has a password field asp:TemplateColumn HeaderText 3D&quot;Password&quot; ItemStyle HorizontalAlign 3D&quot;Center&quot; ItemStyle VerticalAlign 3D&quot;Middle&quot; ItemTemplate asp:TextBox cssclass 3D&quot;TextBox&quot; id 3D&quot;txtPassword&quot; TextMode 3D 94Password 94 runat 3D&quot;server&quot; text 3D' %# DataBinder.Ev...
Multiple db items in a single cell (5 replies, VIP)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Hi, I've got a database which has 4 columns output. I can't change the database output. I want to lay the data out such that there is a single table cell for each datarow which contains 3 of these fields in a formatted manner (i.e. concatenated with braces etc.). When the final field is true, I want the datarow to be a hyperlink. I've tried using the datagrid but can't seem to do any logic process...
Casting e.Item.FindControl (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Any ideas why this in codebehind: ((TextBox)e.Item.FindControl(&quot;txtQty2&quot;)).Text.ToString() is returning an empty string from a DataGrid. But, when a default value is added in the text property of the control in the asp the above code returns a value? Thanks. Jon The information contained in this communication is intended only for the use of the recipient named above, and may be legally privileged,...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com