obj = new
if (country = india.ToString ())
View Complete Post
this is my code:
DataClassesDataContext db = new DataClassesDataContext();
item it = new item();
var items = from p in db.items
where p.id = TextBox1.Text
GridView1.DataSource = items;
an error message at line 5 says:
Cannot implicitly convert type 'string' to 'bool'
the id attribute on the items table is of varchar(50) type. and the text box too is of string type.
so why does it says conversion between boolean and string problem?
thank you all.
I am working in WCF Data service, in client side i am returning result as IEnumerable as below.
IEnumerable<MTSR> SearchResult = context1.Execute<MTSR>(new Uri(url));
i am converting this enumerable to datatable as below.
public static DataTable ToDataTable<T>(IList<T> data)
PropertyDescriptorCollection props =
DataTable table = new DataTable();
for (int i = 0; i < props.Count; i++)
PropertyDescriptor prop = props[i];
object values = new object[props
For site collection administrators and top level site designers the document conversion works correctly. However, when a user who isn't one of these two roles tries to convert a word document to a web page they get the following error.
An error was encountered performing this operation. You
may re-try the operation, and you may need to clean up the half-created data first before re-trying. If the problem persists,
please contact your system administrator.
I've tried giving the users designer permissions to their sites but they still get the error.
Any ideas on how I can give users the ability to convert documents to web pages without making them site collection admins or designers of the top level site?
Ive gotten this error to my underlined line(bold): Cannot convert method group 'ToString' to non-delegate type 'int'.
How do i Solve it??
protected void GridView1_SelectedIndexChanged1(object sender, EventArgs e)
Label2.Visible = true;
SqlConnection conn = new SqlConnection("Data Source= EN12-2-20-PC02\\SQLEXPRESS;" + "Initial Catalog=ssms;Integrated Security=SSPI");
DataSet ds = null;
ds = new DataSet();
int timestamp = 0;
timestamp = GridView1.SelectedDataKey.Value.ToString;
SqlDataAdapter da = null;
string mySQL = null;
mySQL = "SELECT timestamp from loginHistory where username = '" + lblShowUser.Text + "'";
da = new SqlDataAdapter(mySQL, conn);
DataSet dsSel = new DataSet();
GridView1.DataSource = dsSel;
I am about exhausted trying to figure out this error:
Description: The page cannot be displayed because an internal server error has occurred.
Error Code: 0x8007007b
Requested URL: http://localhost:80/ReportServer
Physical Path: c:\Program Files\Microsoft SQL Server\MSSQL.2\Reporting Services\ReportServer
When I enable Failed Request Tracing Rules and view the log output I am supposing that the actual problem is in the 2nd call where there are 2 backslashes before the actual filename in the specified path:
How do i handle 404 page not found?
I am creating a web form that requires a lot of validation. I use many of the validation control in asp.net already like RequiredFieldValidator and CompareValidator.
My Problem: after my custom validation for the value entered return an error message, and I pressed enter key when the field is empty, my custom error message is overlapped by my ValidationSummary.
Setting my custom error to visible = false on button click also does not seem to work as it requires for me to enter the value first.
This made me think, is there a way to insert my custom validation inside the ValidationSummary as an error message like for other validation control?
Thanks in advance
Let's say we have 2 time consuming functions, aaa and aaa1 inside a aspx page.
public static string aaa(int i)
public static string aaa1(int i)
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
<input type="button" value=
I face this "Jscript runtime error: Object does not support property or method" whenever im trying to run this page.
Im using Microsoft Visual web developer 2008, i wonder if this is related to my problem, i not sure there is anything i need to add as reference or update anything.
Anyway, it happen that last time i tried use the same type of jquery code in another project and it seems to work well without an error.
But now when im try to use it again in this recent project i created, it come out with this error and i have no idea how to solve it even look through google and this forum.
So below is my code that i need to use.
A couple of days ago I started getting an unusual behavior when compiling Website projects. I have referenced class libraries added to my bin folder that are also correctely referenced in using statements in my aspx.cs code behind. When I compile, I get the
The type or namespace name 'CommonClassLibrary' could not be found (are you missing a using directive or an assembly reference?)
error message that would typically be received when the dll has not been added as a reference or added in a using statement.
I can eliminate the error by adding an
(VB Express website directed me to ASP.NET Web Services which in turn redirected me to this forum).
Hopefully someone can help me here......
I am using VIsual Web Developer and downloaded the small business application to use as a starting point to help my wife get a website up for her small business. When I load the application, I can F5 and it runs fine but as soon as I make any modification to the app and hit F5, I get the HTTP Error 403 - Forbidden when it tries to show the website.
I notice a pop up that occurs when I run that allows me to choose the link for my app and it displays correctly (I close the webpage that has the error on it).
This seems like a pain, is there a setting I'm missing - I would think that this should "just work".
is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site project
my current project references
i have a very annoying iis problem
iis server stops working until app pool is recycled
i am hoping that new visual studio (net framework 4.0) may solve this very annoying unsolveable problem
When i try to do anything in webmatrix it shuts down. i get this error in the log
I am using VS2010
When I try to updated or insert a record in my User table I am getting an error that does not make sense to me and I cannot figure out what is wrong.
Also, when I try to insert a new record I get a validation error saying that the Id is required. However it is an identity field in the db so it should not be necessary to send it to the server.
Could you please shed some light?
An error has occurred. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Microsoft.Web.UI.WebControls.EntityOperationException: An error has occurred.
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
[EntityOperationException: An error has occurred.] Microsoft.Web.UI.WebControls.DomainDataSourceView.PerformCudOperation(ChangeSetEntry operation, Action`1 operationPerformingEvent, Action`1 operationPerformedEvent) +331 Microsoft.Web.UI.WebControls.DomainDataSourceView.UpdateObject(Object oldEntity, O