Click here to Skip to main content
14,643,919 members
Home » Discussions » ASP.NET
   

ASP.NET

 
AnswerRe: itemupdating in detailsview Pin
Sandeep Mewara5-Jun-12 6:02
mentorSandeep Mewara5-Jun-12 6:02 
QuestionGetting data to the ASP.NET application from BAPI at Runtime and displaying that data(table) in Crysral Report Pin
venugopalreddy14-Jun-12 6:15
Membervenugopalreddy14-Jun-12 6:15 
AnswerRe: Getting data to the ASP.NET application from BAPI at Runtime and displaying that data(table) in Crysral Report Pin
jkirkerx4-Jun-12 11:53
professionaljkirkerx4-Jun-12 11:53 
GeneralSearch for BAPI Pin
jkirkerx5-Jun-12 6:44
professionaljkirkerx5-Jun-12 6:44 
QuestionC# work with linq to sql Pin
classy_dog4-Jun-12 5:34
Memberclassy_dog4-Jun-12 5:34 
AnswerRe: C# work with linq to sql Pin
DeDawg4-Jun-12 7:19
MemberDeDawg4-Jun-12 7:19 
QuestionDropDownList is giving following error : System.NullReferenceException Pin
M.S Varma4-Jun-12 2:29
MemberM.S Varma4-Jun-12 2:29 
AnswerRe: DropDownList is giving following error : System.NullReferenceException Pin
VJ Reddy4-Jun-12 6:15
MemberVJ Reddy4-Jun-12 6:15 
As explained here http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.datakeys.aspx[^]

When the DataKeyNames property is set, the GridView control automatically creates a DataKey object for each row in the control. The DataKey object contains the values of the field or fields specified in the DataKeyNames property. The DataKey objects are then added to the control's DataKeys collection. Use the DataKeys property to retrieve the DataKey object for a specific data row in the GridView control.

The reason for null reference exception in the above code could be due to not setting the DataKeyNames property but accessing the DataKeys[e.RowIndex] value at
customer.Update(Convert.ToInt32(GridView1.DataKeys[e.RowIndex].Values[0].ToString())

Try setting the DataKeyNames as shown in above reference like
datakeynames="CustomerID"

AnswerRe: DropDownList is giving following error : System.NullReferenceException Pin
taha bahraminezhad Jooneghani4-Jun-12 11:27
Membertaha bahraminezhad Jooneghani4-Jun-12 11:27 
QuestionEvery time I click a button in mymodal popup to add new row in Gridview it Disappears Pin
sheringkapoting4-Jun-12 2:18
Membersheringkapoting4-Jun-12 2:18 
AnswerRe: Every time I click a button in mymodal popup to add new row in Gridview it Disappears Pin
jkirkerx4-Jun-12 7:48
professionaljkirkerx4-Jun-12 7:48 
QuestionProcedure or function expects parameter that was not supplied why it arise and if arise how to resolve it Pin
ajitkmr094-Jun-12 1:10
Memberajitkmr094-Jun-12 1:10 
AnswerRe: Procedure or function expects parameter that was not supplied why it arise and if arise how to resolve it Pin
Richard MacCutchan4-Jun-12 1:59
mveRichard MacCutchan4-Jun-12 1:59 
GeneralRe: Procedure or function expects parameter that was not supplied why it arise and if arise how to resolve it Pin
ajitkmr094-Jun-12 20:53
Memberajitkmr094-Jun-12 20:53 
GeneralRe: Procedure or function expects parameter that was not supplied why it arise and if arise how to resolve it Pin
Richard MacCutchan4-Jun-12 22:10
mveRichard MacCutchan4-Jun-12 22:10 
GeneralRe: Procedure or function expects parameter that was not supplied why it arise and if arise how to resolve it Pin
Venkat Yerra4-Jun-12 21:02
MemberVenkat Yerra4-Jun-12 21:02 
AnswerRe: Procedure or function expects parameter that was not supplied why it arise and if arise how to resolve it Pin
jkirkerx4-Jun-12 11:48
professionaljkirkerx4-Jun-12 11:48 
GeneralRe: Procedure or function expects parameter that was not supplied why it arise and if arise how to resolve it Pin
ajitkmr094-Jun-12 20:54
Memberajitkmr094-Jun-12 20:54 
GeneralRe: Procedure or function expects parameter that was not supplied why it arise and if arise how to resolve it Pin
jkirkerx5-Jun-12 6:37
professionaljkirkerx5-Jun-12 6:37 
AnswerRe: Procedure or function expects parameter that was not supplied why it arise and if arise how to resolve it Pin
vvashishta4-Jun-12 22:10
Membervvashishta4-Jun-12 22:10 
QuestionValidation vs Business Rules (client side vs server side) Pin
Rahul Rajat Singh4-Jun-12 1:02
professionalRahul Rajat Singh4-Jun-12 1:02 
AnswerRe: Validation vs Business Rules (client side vs server side) Pin
jkirkerx4-Jun-12 7:59
professionaljkirkerx4-Jun-12 7:59 
Questionasp.net Pin
manoja medaramitla4-Jun-12 0:38
Membermanoja medaramitla4-Jun-12 0:38 
AnswerRe: asp.net Pin
Rahul Rajat Singh4-Jun-12 1:02
professionalRahul Rajat Singh4-Jun-12 1:02 
AnswerRe: asp.net Pin
taha bahraminezhad Jooneghani4-Jun-12 9:52
Membertaha bahraminezhad Jooneghani4-Jun-12 9: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.