ASPFriends.com 'aspngdatagridrepeaterdatalist' list Archive - June 2002
Messages
Page: 12
Exception on every third row? (2 replies, VIP)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Moved from [aspngfreeforall] to [aspngdatagridrepeaterdatalist] by Marcie Jones marciejones@yahoo.com Moved from [aspfreeforall] to [aspngfreeforall] by Kenneth Hor lists@vervesystems.ca Is there any way to do this with some feature in a datalist controll? I want to display 3 images next to each other and then add a tr and continue on the next row .. /Ola Solberg Kommunikation AB Ola Johansson Box...
current option? (3 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Moved from [aspngfreeforall] to [aspngdatagridrepeaterdatalist] by Marcie Jones marciejones@yahoo.com This is a multi part message in MIME format. InterScan NT MIME Boundary Content Type: multipart/alternative; boundary " NextPart 000 0013 01C20B3D.C236D840" NextPart 000 0013 01C20B3D.C236D840 Content Type: text/plain; charset "gb2312" Content Transfer Encoding: quoted printable Hi, did any one kn...
Paging not working after code moved to a control (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Here's my situtation: I have a news script that I use and when it was not a control (I later moved all code to news.ascx), paging worked fine. But after I moved it, I noticed that you can click on next, but the datagrid generated table isn't here. Here's my code: % Dim strControl As String Select Case Request.QueryString("mode") Case "news" strControl "news.ascx" Case Else strControl "news.ascx" E...
Sorting a datagrid (9 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Hi all, I have a simple question. I have 4 drop downs on my page. What i want to do is sort my datagrid by the dropdown's selected. How do i set up the function in order to do this? Do far I have: public void ShowSelected(Object sender, EventArgs e) { SqlConnection myConnection new SqlConnection("server xxxL;database xxxx;uid xx;password xxxx;"); SqlDataAdapter DataAdapter new SqlDataAdapter("sele...
DropDownList values (2 replies, VIP)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Moved from [aspngibuyspy] to [aspngdatagridrepeaterdatalist] by Cain Marco juggernaut@aspelite.com I have a page that has a DataList that gets populated when the page loads. Each row in the DataList contains the following items: a CheckBox control, a TextBox control, and a DropDownList control. Each of these items is data driven (the CheckBox label text and the DropDownList Item array all populate...
Datagrid vanish after changing autopoostback field (2 replies, VIP)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Hi all, I have datagrid in my ASP page as the following asp:textbox id "txtDate" tabIndex "1" runat "server" CssClass "fieldstext" AutoPostBack "True" MaxLength "10" /asp:textbox asp:datagrid id "dgrdSchedule" runat "server" BorderColor "Black" BorderWidth "1px" AutoGenerateColumns "false" ItemStyle CssClass "GridText" /ItemStyle HeaderStyle CssClass "gridHeader" /HeaderStyle /asp:datagrid and the...
relating tables? (7 replies, VIP)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Moved from [aspngfreeforall] to [aspngdatagridrepeaterdatalist] by Cain Marco juggernaut@aspelite.com I am trying to select some data from two tables and put the data in a grid. I am getting the error message which says my tables do not contain unique values. The data is in a SQL database which was imported in from and other source. Each table does have a unique value in a table. Can someone pleas...
.aspx problem (3 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Moved from [aspngclient] to [aspngdatagridrepeaterdatalist] by James Avery javery@deluxeeng.com html div style 'background color:' DIV I can't update my Datagrid. I get this error: BR Exception Details: System.ArgumentOutOfRangeException: Specified argument was BR out of the range of valid values. Parameter name: index BR BR Source Error: BR BR Line 275:           Tex...
Nested DataGrid Display in Web UI (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Hi, I want to display some data in the UI in the following format: Books Image Price Quantity Add to Cart Music Image Price Quantity Add to Cart "Quantity" is a textfield and "Add to cart" is a CheckBox column. I'm not sure if I'm approaching this problem in the right direction, but I would really appreciate your feedback. asp:DataGrid id "masterDataGrid" AutoGenerateColumns "false" AllowPaging "f...
asp.net repeater OnItemCommand event. (2 replies, VIP)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
I folks. I am having a problem with my data repeater. I have a data repeater on a web form. the contents of the form are listed below. On the clicking of an element on that form, I would like to have the OnItemCommand Event to fire and call a function called drCrossTubeStyle ItemCommand. The drCrossTubeStyle ItemCommand event is defined below. All it should do at this time is to print a message sa...
SV: Format colmn (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Hmm, DataBinder.Eval( Container.DataItem, "created", "{0:D}" ) Regards/Halsningar Andre Colbiornsen Sonnenburg Communications Bergsgatan 3, SE 211 54 Malm F6 Sweden Tel.: 46 (0)40 97 78 80 Fax.: 46 (0)40 97 78 80 Mob.: 46 (0)708 97 78 79 Mail: colbiornsen@sonnenburg.se Web.: www.sonnenburg.se B2B Web agency Specializing on .Net Ursprungligt meddelande Fr E5n: Carlos Magalhaes [mailto:CarlosM@trenc...
DataGrid vs. XML Performance (4 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
I wanted to know what the performance difference was in using the DataGrid control and an asp:xml element to display a table of data. To this end, I set up both to use the same XML file as the data source and displayed the page with no formatting. The DataGrid was an order of magnitude slower than the XML/XSL transformation equivalent. I wouldn't have expected there to be so much difference. Does ...
Format Date in DataGrid (5 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Moved from [aspngfreeforall] to [aspngdatagridrepeaterdatalist] by Marcie Jones marciejones@yahoo.com Hello All, I have a standard DataGrid that contains data, one of which is a data. I need to be able to format it so the minutes and seconds do not appear. I've included the code below. Thanks in advance. Richard M. CODE: ASP:BOUNDCOLUMN HEADERTEXT "PACKET SENT" DataField "Packet Sent"/
Paging problem persist to exist, please help! (3 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
I have an ASP.NET control (news.ascx) that REFUSES to page, period. When I click the Next link, the datagrid disappears. In trace "true" this shows up: aspx.page Begin ProcessPostData 0.001744 0.000185 aspx.page End ProcessPostData 0.002073 0.000329 aspx.page Begin ProcessPostData Second Try 0.004005 0.001933 aspx.page End ProcessPostData Second Try 0.004214 0.000209 Which looks weird, also, the t...
SV: RE: Paging problem persist to exist, please help! (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Try Dimming your DataSet outside of the methods: script language 3D"VB" runat 3D"server" Dim objDataSet As DataSet Sub Page Load(Source As Object, e As EventArgs) If Not IsPostBack Then DataBindNews() End If End Sub Protected Function returnNewsDataSet() As DataSet Dim objConn As New SqlConnection(ConfigurationSettings.AppSettings("sqlConnection")) objDataSet 3D New DataSet() Dim strSQL As String ...
User Control (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
I have a datagrid with a button in each row, contained in a user control. How can I capture the postback(select) event of the button and run a routine in the serverside script of the user control. Pointers to tuts etc would be great Cheers Will Currie
Control column value dislplay in DataGrid (3 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Moved from [aspngfreeforall] to [aspngdatagridrepeaterdatalist] by Cain Marco juggernaut@aspelite.com Hi All, i have a datagrid bound to datareader in Code behind page. i need to monitor values in column 1. i don't wnt to display same title several time but only once per set of records. what would be the best way to do it? for example: what i have now: Title companyName dollars title1 ABC 12 title...
repeater mess (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Hi, I'm in the process of creating a warranty claim system and I've got myself into a bit of a muddle. I'm trying to display a list of faults with all the parts relating to each fault nested below, thus: Fault | Further Info | Work Done | Hours Claimed | Hourly Rate Part No. | Description | Order Number | Quantity | Price | Return Part No. | Description | Order Number | Quantity | Price | Return P...
SV: RE: Access caption of buttoncolumn object in datagrid (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Do you mean the text on the button? If so I would think something like this: e.item.cells(0).Controls(0).text If this is not what you mena could you please explain it again. Regards/Halsningar Andre Colbiornsen Sonnenburg Communications Bergsgatan 3, SE 211 54 Malm F6 Sweden Tel.: 46 (0)40 97 78 80 Fax.: 46 (0)40 97 78 80 Mob.: 46 (0)708 97 78 79 Mail: colbiornsen@sonnenburg.se Web.: www.sonnenbur...
Datagrid limitations... (5 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
I've just read through the 'extensive examination of the datagrid' on 4guysfromrolla.com I have a few questions about the limitations of the datagrid when it comes to customising its output... i.e how could I perform the following functions on a datagrid? 1.) One of my columns need to contain multiple images, linked to multiple functions, such as ADD | EDIT | DELETE. 2.) How could I place a JavaSc...
NOT ANSWERED BEFORE DataGrid (web) - Data from two tables (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Greetings, I tried this on both sqlngClient and aspngDataGridrepeaterdatalist list earlier and got the suggestion I should try to "nest" datagrids. I dont see how and now hope someone here might be able to help out. Objective: Present data from two different tables (members of the same DataSet) in a DataGrid with a few columns from one table and a few columns from the other table like so: KeyID Ta...
Dropdowns in DG (2 replies, VIP)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Hmf, I have made my own subclassed dropdown to bubble events up in the grid.. I have made functions to bind each and one dropdown in the grid and select the current item listed in the record. From there I just update etc with the bubble. The problem: I want the field val in the column before the dropdown to be a part of the binding criteria for the dropdown... So this is how it looks so far: DataS...
SV: Updating a Datagrid in Edit Mode (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
You are obviously not getting the UserID for the Sql Statement. First of all, in your Datagrid, set your 'DataKeyField' value to reflect your 'UserID' column. Then in your Update Command, set; Dim userID As Integer 3D myDataGrid.DataKeys(e.Item.ItemIndex). Then use this variable in your statement instead, like so: SqlText 3D "UPDATE TSubscribers SET " & "Date 3D '" & txtDate.Text & "', " & "Name 3...
Want to append string in asp:image (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Moved from [aspngfreeforall] to [aspngdatagridrepeaterdatalist] by Cain Marco juggernaut@aspelite.com asp:Image runat "server" ImageUrl "C:\ewhCms\Images2\Picture\ %# DataBinder.Eval(Container.DataItem, "Name") % " / I basically want to do the above but I keep getting the server tag not well formed error how do I put a string in the image url as well as the eval statement to get the full path of m...
Container.DataItem's (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Hello All, I have a datagrid that contains template columns. What I am trying to figure out is if there is a way to test the contents of a container.dataitem before it renders to the screen. Below is a non working example: ItemTemplate % If Container.DataItem("B1") " b " then% %# Container.DataItem("B1")% %End If% a href "profile.aspx?UID %# Container.DataItem("SenderID")% " %# Container.DataItem(...
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