-
-
-
-
-
public bool insert(DropDownList ddJnlCode, TextBox txtJnlName, TextBox txtArticleID, TextBox txtMspage, TextBox txtTable, TextBox txtImage, TextBox txtRDate, TextBox txtDDate,
DropDownList ddStage, TextBox txtRemarks)
{
try
{
string str;
str ="insert into wip_articles(ArticleID,ProjectID,ProjectName,Mspageno,Tables,Images,Receiveddate,Duedate,Stage,Remarks) values('" + ddJnlCode.SelectedItem.Text + "','" + txtJnlName.Text + "','" + txtArticleID.Text + "','" + txtMspage.Text + "','" + txtTable.Text + "','" + txtImage.Text + "','" + txtRDate.Text + "','" + txtDDate.Text + "','" + ddStage.SelectedItem.Text + "','" + txtRemarks.Text + "')";
if(objsqlcon.Execute(str) == 1)
{
return true;
}
else
{
return false;
}
}
catch
{
}
}">I am getting an error as "public bool insert(DropDownList ddJnlCode, TextBox txtJnlName, TextBox txtArticleID, TextBox txtMspage, TextBox txtTable, TextBox txtImage, TextBox txtRDate, TextBox txtDDate, DropDownList ddStage, TextBox txtRemarks): not all code paths return a value"public bool insert(DropDownList ddJnlCode, TextBox txtJnlName, TextBox txtArticleID, TextBox txtMspage, TextBox txtTable, TextBox txtImage, TextBox txtRDate, TextBox txtDDate, DropDownList ddStage, TextBox txtRemarks) { try { string str; str ="insert into wip_articles(ArticleID,ProjectID,ProjectName,Mspageno,Tables,Images,Receiveddate,Duedate,Stage,Remarks) values('" + ddJnlCode.SelectedItem.Text + "','" + txtJnlName.Text + "','" + txtArticleID.Text + "','" + txtMspage.Text + "','" + txtTable.Text + "','" + txtImage.Text + "','" + txtRDate.Text + "','" + txtDDate.Text + "','" + ddStage.SelectedItem.Text + "','" + txtRemarks.Text + "')"; if(objsqlcon.Execute(str) == 1) { return true; } else { return false; } } catch { } }
-
">
When i try to open the asp.net web application template with C# projects as project type i'm getting the error message as"The default web access mode for this project is set to file share,but the project folder at http://localhost/webapplication1 cannot be opened with path acer-a6abc676f9wwwroot$webapplication 1." What i have to do to rectify this error ?
-
-
-
-
-
-
-
-
-
-
What is a diffgram ?
Skill/Topic: AdvancedA) The one which renders the dataset object contents to XMLB) Finds the difference in two objectsC) Finds the difference in two filesD) None of the above
-
-
-
-
ASP.NET Interview Questions
Ans