Click here to Skip to main content
15,899,825 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to do online registration Pin
Muammar©8-May-07 22:51
Muammar©8-May-07 22:51 
QuestionEstablished connection aborted by the software in host machine Pin
SakthiSurya8-May-07 19:27
SakthiSurya8-May-07 19:27 
QuestionBytes to be written to the stream exceed the Content-Length bytes size specified. Pin
nasambur8-May-07 19:04
nasambur8-May-07 19:04 
AnswerRe: Bytes to be written to the stream exceed the Content-Length bytes size specified. Pin
Guffa8-May-07 20:50
Guffa8-May-07 20:50 
GeneralRe: Bytes to be written to the stream exceed the Content-Length bytes size specified. Pin
nasambur8-May-07 20:55
nasambur8-May-07 20:55 
Questioncrystal report using a stored procedure which requires a parameter Pin
rkherath8-May-07 17:03
rkherath8-May-07 17:03 
Questionhow to create an autoincrement id [modified] Pin
balanjingot8-May-07 16:33
balanjingot8-May-07 16:33 
Questionaccess to objectdatasource ondeleting value Pin
wongton8-May-07 16:09
wongton8-May-07 16:09 
Hi,

I am binding a gridview to an objectdatasource

The gridview consist of columns and contains one CustomerId which is hidden (with datakeyname = "CustomerId")

In objectdatasource, here is the code
<asp:objectdatasource id="ObjectDataSource1" runat="server"
="" enablepaging="True" maximumrowsparametername="PageSize" selectmethod="AA_Paging_GetCountry" typename="admin" startrowindexparametername="StartRow" selectcountmethod="AA_Paging_GetRowsCount" oldvaluesparameterformatstring="original_{0}" conflictdetection="CompareAllValues" updatemethod="AA_Paging_UpdateCountry" onupdating="AA_Paging_OnUpdating" ondeleting="AA_Paging_OnDeleting" deletemethod="AA_Paging_Delete">
<deleteparameters>
<asp:parameter name="CountryId" type="Object">




So in my code behind:
public void AA_Paging_OnDeleting(Object source, ObjectDataSourceMethodEventArgs e)
{


if (selected == null)
{
//NEED ANSWER HERE TO ACCESS THE SELECTED DATAKEYNAME OR SELECTED CUSTOMERID TO FURTHER
//PROCESS THE LOGIC, AND IF IT LEADS TO CONDITION SO I CAN CANCEL THE DELETE OPERATION

//cancel delete operation
e.Cancel = true;
}

}
QuestionProblem reading XML Pin
Mark F.8-May-07 14:49
Mark F.8-May-07 14:49 
AnswerRe: Problem reading XML Pin
Christian Graus8-May-07 16:55
protectorChristian Graus8-May-07 16:55 
GeneralRe: Problem reading XML Pin
Mark F.9-May-07 4:02
Mark F.9-May-07 4:02 
AnswerRe: Problem reading XML Pin
AFSEKI8-May-07 23:01
AFSEKI8-May-07 23:01 
QuestionReading a text file into a textBox Pin
simplicitylabs8-May-07 13:42
simplicitylabs8-May-07 13:42 
AnswerRe: Reading a text file into a textBox Pin
xibeifeijian8-May-07 14:34
xibeifeijian8-May-07 14:34 
GeneralRe: Reading a text file into a textBox Pin
simplicitylabs8-May-07 14:55
simplicitylabs8-May-07 14:55 
GeneralRe: Reading a text file into a textBox Pin
Dave Kreskowiak8-May-07 17:33
mveDave Kreskowiak8-May-07 17:33 
GeneralRe: Reading a text file into a textBox Pin
simplicitylabs8-May-07 18:22
simplicitylabs8-May-07 18:22 
GeneralRe: Reading a text file into a textBox Pin
xibeifeijian9-May-07 3:13
xibeifeijian9-May-07 3:13 
AnswerRe: Reading a text file into a textBox Pin
Christian Graus8-May-07 18:25
protectorChristian Graus8-May-07 18:25 
GeneralRe: Reading a text file into a textBox Pin
simplicitylabs8-May-07 18:38
simplicitylabs8-May-07 18:38 
QuestionDataView Problem Pin
Michael1018-May-07 13:37
Michael1018-May-07 13:37 
AnswerRe: DataView Problem Pin
SimulationofSai8-May-07 21:49
SimulationofSai8-May-07 21:49 
QuestionMDI and Childs Pin
VBDC8-May-07 12:57
VBDC8-May-07 12:57 
AnswerRe: MDI and Childs Pin
Blumen8-May-07 18:08
Blumen8-May-07 18:08 
QuestionMDI and Childs Pin
VBDC8-May-07 12:52
VBDC8-May-07 12:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.