Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter. Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.
I am creating a new setup page where I am trying to have a user add new setup values. These values have a unique identifier id (like HEAD01, HEAD02 and so forth - which happens to be the primary key in that record) which I have to generate using code.
Here I am trying to use a detailsview object with the New/Update/Delete option.
Here if the user Chooses to Add a new value, I need to determine the next unique identifier for this new value to be added (say HEAD16) by looking at the last generated number in that table and have this new value added in the database. The user should not be able to give this primary key value manually it should be autogenerated by code.
Can you help me on how to do this?
I am using SQLDataSource with Detailsview to add update values.
Nope, Without limitation, you are not authorized to make the Information available on any web site or otherwise reproduce, distribute, copy, store, use or sell the Information for commercial gain without the express written consent of UPS.
They want you to use their products to do it. See the "Integrate Tracking Tools" section of their tracking page[^]
I have DataView control with paging on an asp.net webpage. I have been asked if it is possible to default the DataView to the last page, rather than page 1.
So I tried this :-
Protected Sub telemetryGridView_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles telemetryGridView.PreRender
If Not IsPostBack Then
telemetryGridView.PageIndex = telemetryGridView.PageCount - 1
I read somewhere that after setting the PageIndex I would need to call the DataBind method of the GridView.
The result is that the GridView still defaults to page 1.
Can anyone enlighten me as to where I am going wrong?
------------------------- Real programmers don't comment their code. If it was hard to write, it should be hard to read.