473,395 Members | 1,577 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Cannot fetch values from detailview

I cannot get values from detailview, here is the demo code...

<Fields>
<asp:BoundField DataField="serverip" HeaderText="Server IP"
ReadOnly="true" SortExpression="serverip" />
<asp:BoundField DataField="location" HeaderText="Location"
SortExpression="location" />
<asp:BoundField DataField="server_owner" HeaderText="Server
Owner" SortExpression="server_owner" />
<asp:BoundField DataField="application" HeaderText="Server
Application" SortExpression="application" />
<asp:BoundField DataField="backup_type" HeaderText="Backup Type"
SortExpression="backup_type" />
<asp:BoundField DataField="remark" HeaderText="Remark"
SortExpression="remark" />
<asp:BoundField DataField="server_id" HeaderText="server_id"
SortExpression="server_id"
Visible="False" />
</Fields>

protected void dv_ServerInformation_ItemUpdating(object sender,
DetailsViewUpdateEventArgs e)
{
Response.Write("Field: " +
dv_ServerInformation.Rows[0].Cells[1].Text + "<br/>");
Response.Write("Field: " +
dv_ServerInformation.Rows[1].Cells[1].Text + "<br/>");
Response.Write("Field: " +
dv_ServerInformation.Rows[2].Cells[1].Text + "<br/>");
Response.Write("Field: " +
dv_ServerInformation.Rows[3].Cells[1].Text + "<br/>");
Response.Write("Field: " +
dv_ServerInformation.Rows[4].Cells[1].Text + "<br/>");
Response.Write("Field: " +
dv_ServerInformation.Rows[5].Cells[1].Text + "<br/>");
Response.Write("Field: " +
dv_ServerInformation.Rows[6].Cells[1].Text + "<br/>");
Response.End();
}

The result is :
Field: 10.10.10.193
Field:
Field:
Field:
Field:
Field:
Field:

The readonly boundfield can be displayed only, other fields cannot get, why
???????????

Thanks a lot.
Jul 6 '07 #1
0 1122

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ann | last post by:
Hello everyone, hope someone can help me with this. I have a SQL stored procedure that inserts a record into a table, creates a cursor to fetch the last record that was added to get the unique...
0
by: Mike | last post by:
I have a detailview, with several template columns in it. It's setup so that a user views info from a datagrid, and if they want to add another row, they click a button. The button causes a...
0
by: Luqman | last post by:
I have used a single objectDataSource for GridView and DetailView, and when I load the page, the GridView shows all the entries of Invoice, and DetailView shows the 1st entry of Invoice, thats all...
0
by: =?Utf-8?B?THVib21pcg==?= | last post by:
Hi, I have a GridView and Dataview controls. If user clicks on a row in GridView, the details will be shown in DetailView. 1/ I want to show in DetalView only details field - without column...
2
by: Luqman | last post by:
Hi, Any Idea how to Display Todays Date in DetailView Template Field while Inserting ? For example: When I click on New Button of DetailView Control, I need to display Today's Date in a...
0
by: LamSoft | last post by:
By Double clicking the object detailview, it will auto make a sub-procedure called XXXXX_Selecting, however I want a sub-procedure to be called while the detailview is being updated, so that i add...
1
by: Ganesh | last post by:
Hi There, I've a page with with sqldatasource and detailsview, detailview was assinged to sqldatasource on design time. Now i would like to display a some fileds value in text box. How can i...
1
by: Ganesh | last post by:
Hi There, I use detailView to edit, insert and delete data. It gets value from datagrid.selectedvalue. How can i insert a record initially. If there is not any record in the grid, still i would...
3
by: nrain | last post by:
Hi This is nrain here in a pl/sql block, some rows are getting inserted into the table violating the primary key and going to exception. I need to fetch records and want to check what...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.