Click here to Skip to main content
15,887,585 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: How to provide reference path for a web application Pin
kubben21-May-07 2:29
kubben21-May-07 2:29 
QuestionRe: How to provide reference path for a web application Pin
Mushtaque Nizamani21-May-07 2:53
Mushtaque Nizamani21-May-07 2:53 
AnswerRe: How to provide reference path for a web application Pin
kubben21-May-07 3:55
kubben21-May-07 3:55 
QuestionTesting performance of website ( Thread test ) Pin
ctlqt1218-May-07 13:32
ctlqt1218-May-07 13:32 
AnswerRe: Testing performance of website ( Thread test ) Pin
enjoycrack19-May-07 6:08
enjoycrack19-May-07 6:08 
QuestionASP.Net view in MAC Pin
hifiger200418-May-07 9:02
hifiger200418-May-07 9:02 
AnswerRe: ASP.Net view in MAC Pin
Christian Graus18-May-07 16:18
protectorChristian Graus18-May-07 16:18 
GeneralRe: ASP.Net view in MAC Pin
hifiger200419-May-07 3:31
hifiger200419-May-07 3:31 
GeneralRe: ASP.Net view in MAC Pin
JimmyRopes20-May-07 6:40
professionalJimmyRopes20-May-07 6:40 
GeneralRe: ASP.Net view in MAC Pin
hifiger200421-May-07 18:21
hifiger200421-May-07 18:21 
QuestionHow to dispaly custom toolbox on a webpage using asp.net Pin
Krishnamenon18-May-07 2:30
Krishnamenon18-May-07 2:30 
AnswerRe: How to dispaly custom toolbox on a webpage using asp.net Pin
badgrs18-May-07 5:14
badgrs18-May-07 5:14 
GeneralRe: How to dispaly custom toolbox on a webpage using asp.net Pin
Krishnamenon18-May-07 9:13
Krishnamenon18-May-07 9:13 
QuestionPerformance issue ....Pls help me ... Pin
Ankur.Bakliwal18-May-07 0:59
Ankur.Bakliwal18-May-07 0:59 
AnswerRe: Performance issue ....Pls help me ... Pin
andyharman18-May-07 1:50
professionalandyharman18-May-07 1:50 
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 

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.