Click here to Skip to main content
15,867,308 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Performance issue ....Pls help me ... Pin
Guffa18-May-07 1:53
Guffa18-May-07 1:53 
QuestionRe: Performance issue ....Pls help me ... Pin
Ankur.Bakliwal18-May-07 3:43
Ankur.Bakliwal18-May-07 3:43 
AnswerRe: Performance issue ....Pls help me ... Pin
Guffa18-May-07 5:33
Guffa18-May-07 5:33 
AnswerRe: Performance issue ....Pls help me ... Pin
Guffa18-May-07 1:51
Guffa18-May-07 1:51 
GeneralRe: Performance issue ....Pls help me ... Pin
Ankur.Bakliwal18-May-07 2:06
Ankur.Bakliwal18-May-07 2:06 
GeneralRe: Performance issue ....Pls help me ... Pin
badgrs18-May-07 5:12
badgrs18-May-07 5:12 
QuestionButton Column Select. Pin
nclauder17-May-07 21:44
nclauder17-May-07 21:44 
AnswerRe: Button Column Select. Pin
nclauder18-May-07 4:18
nclauder18-May-07 4:18 
I have corrected my statement and this time I'm getting this error:
"Object reference not set to an instance of an object."
And the error source:
Line 219: myCommand.CommandText="select * from dbo.DashBoard where
Name Like @Billing";
Line 220: myCommand.Parameters.Add(new
SqlParameter("@Billing",SqlDbType.VarChar,50));
Line 221: myCommand.Parameters["@Billing"].Value= bc.Text;
Line 222: SqlDataAdapter myAdapter=new SqlDataAdapter(myCommand);
Line 223: DataSet ds = new DataSet();
This is my code:
<Columns>
<asp:ButtonColumn HeaderText="Operations"
DataTextField="TeamOperation" ButtonType="LinkButton"
CommandName="Select"></asp:ButtonColumn>
</Columns>
My code behind:
private void dgoperation_ItemCommand(object source,
System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
System.Web.UI.WebControls.LinkButton bc=new
System.Web.UI.WebControls.LinkButton();
bc=(System.Web.UI.WebControls.LinkButton)e.Item.Cells[0].FindControl("TeamB­illing");
SqlCommand myCommand=new SqlCommand();
myCommand.Connection=con;
myCommand.CommandText="select * from dbo.DashBoard where Name Like
@Billing";
myCommand.Parameters.Add(new SqlParameter("@Billing",SqlDbType.VarChar,
50));
myCommand.Parameters["@Billing"].Value= bc.Text;
SqlDataAdapter myAdapter=new SqlDataAdapter(myCommand);
DataSet ds = new DataSet();
myAdapter.Fill(ds);
dgis.DataSource=ds;
dgis.EditItemIndex = -1;
dgis.DataBind();

}


How can I solve this?
Thanks
QuestionDevelopment Method Pin
prabooooooooo17-May-07 19:40
prabooooooooo17-May-07 19:40 
AnswerRe: Development Method Pin
kubben18-May-07 2:18
kubben18-May-07 2:18 
QuestionDifferent Browsers Pin
Brendan Vogt17-May-07 2:33
Brendan Vogt17-May-07 2:33 
AnswerRe: Different Browsers Pin
Edmundisme17-May-07 7:39
Edmundisme17-May-07 7:39 
AnswerRe: Different Browsers Pin
badgrs18-May-07 5:07
badgrs18-May-07 5:07 
AnswerRe: Different Browsers Pin
JimmyRopes18-May-07 6:34
professionalJimmyRopes18-May-07 6:34 
Questionhow to create an voting system in Java script ? Pin
prashant pissey16-May-07 22:48
prashant pissey16-May-07 22:48 
AnswerRe: how to create an voting system in Java script ? Pin
Christian Graus17-May-07 0:15
protectorChristian Graus17-May-07 0:15 
GeneralRe: how to create an voting system in Java script ? Pin
prashant pissey17-May-07 0:36
prashant pissey17-May-07 0:36 
AnswerRe: how to create an voting system in Java script ? Pin
Guffa17-May-07 1:07
Guffa17-May-07 1:07 
GeneralRe: how to create an voting system in Java script ? Pin
Christian Graus17-May-07 1:34
protectorChristian Graus17-May-07 1:34 
GeneralRe: how to create an voting system in Java script ? Pin
Bradml17-May-07 5:43
Bradml17-May-07 5:43 
JokeRe: how to create an voting system in Java script ? Pin
Guffa18-May-07 0:04
Guffa18-May-07 0:04 
JokeRe: how to create an voting system in Java script ? Pin
DavidNohejl18-May-07 3:42
DavidNohejl18-May-07 3:42 
QuestionSingle Event issue Pin
sanyalpritish16-May-07 20:37
sanyalpritish16-May-07 20:37 
AnswerRe: Single Event issue Pin
Sandeep Akhare17-May-07 0:04
Sandeep Akhare17-May-07 0:04 
GeneralRe: Single Event issue Pin
Expert Coming21-May-07 20:53
Expert Coming21-May-07 20:53 

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.