Web Forms :: Operator Class Of Microsoft.VisualBasic Assambly Not Recognized?
Oct 20, 2010
I am trying to use Operator class to ConcatenateObject in my Class file of ClassLibrary. I have imported namespace of Microsoft.Visualbasic but still Operator class is not recognized. [URL] If I am trying to use add reference of Microsoft.VisualBasic.dll system say that it is already automatically adeed.
View 6 Replies
Similar Messages:
Nov 25, 2010
I want to use some features of namespace Microsoft.VisualBasic.CompilerServices but I am unable to get CompilerServices Class in Microsoft.VisualBasic. whenever I write imports Microsoft.VisualBasic. intelesences does not show me CompilerServices tell me sutable reason to resolve this. I am using vs3.5, even though visual studio allow me to import Microsoft.VisualBasic but using only this my requirement will not fullfill.
View 3 Replies
Apr 9, 2010
I have an assembly that i have built with a linq to SQL item, a web reference and a class that brings it all together.I build the project and it all seems fine but when i reference the object from another project the web reference and linq objects are available but the class isnt.
View 2 Replies
Sep 7, 2010
i got microsoft visual web developer and do not understand what a class is would.
View 6 Replies
Jun 15, 2010
I was hoping someone could lead me in the right direction in creating a search form with the data being displayed with paging. My background is ASP classic and I would like to know the best approach in acheiving this with MVC. Maybe if we could take the Movie Library tutorial and add a search function to it, so I can understand from the ground up. Basically, I'd like to see a couple of fields for the movie title and director in a form, with a search button. The data in these fields would the be used as parameters for the SQL to query the database and then display the data in the respective view with paging. Whats the use of a database if it cant be searched by the user? Obviously being an asp classic dev, I'm not familiar with C#. I will go down this road eventually, but I'd like to go down this path 1st.
View 4 Replies
Nov 2, 2010
what i am trying to achieve is a single image control with slideshow extender attached which when of the category option buttons are pressed the SlideService goes get the images for that category from the image folder sub folders and starts to display them i have got the code to work as to, the point that i have to hardcode the images sub folders path in to the webmethod - but i want the image folder name to be passed as a parameter when the webmethod GetSlides is called - the code i have so far is From the aspx page - (the category name will be a string retrieved from the button text when clicked
[Code]....
View 1 Replies
Dec 16, 2010
It looks that the old SqlHelper class from the Microsoft Enterprise Library has been mostly replaced by the Database class which is included in the new Enterprise Library version 5.
I have a very simple and trivial example:
using Microsoft.ApplicationBlocks.Data;
private void PopulateCheckBoxGroup()
{
const string strConnTxt = "Server=(local);Database=DataBindTests;Integrated Security=True;";
const string strlSql = "select Technology from PreferredTechnology where ParentId = 1";
CheckBoxList1.DataSource = SqlHelper.ExecuteReader(strConnTxt, CommandType.Text, strlSql);
CheckBoxList1.DataTextField = "Technology";
CheckBoxList1.DataBind();
}
View 1 Replies
Jan 23, 2010
from years go i use "SQL Helper" class that exist in Microsoft Application Blocks for .NET and i used it for about 1 year in many projects but after that many senior recommend me not to use as it's have many problems in big projects and i let it but know in a new company they want to use it in a projects ... Could any make his recommendations about it / and if it's really excellent to use it have already issues ?Is there any other good solution rather than SQL Helper ?
View 2 Replies
Sep 1, 2013
Error 10 Operator '*' cannot be applied to operands of type 'string' and 'int'
Show Error
Line 85: v1.Text = Convert.ToString(y[0]) + "صوت";.
Line 86: h1.Text = Convert.ToString(Convert.ToInt32((y[0] / tx) * 100));
Line 857: Image1.Width = Convert.ToInt32(h1.Text * 2);
Line 88: v2.Text = Convert.ToString(y[1]) + "صوت";
Line 89: h2.Text = Convert.ToString(Convert.ToInt32((y[1] / tx) * 100));
[Code]....
View 1 Replies
Oct 18, 2010
I would like to use an eval stmt to return a true/false for the visible property of a HyperLinkField. IF clientComment exists, I would like it to return True, if clientComment is null or "", then would like it to return False.
By default I noticed it already will not show the hyperlink if clientComment is Null, however the bug I'm running into is if the client enters a comment but then later deletes it so it's not null but blank, or "", in which case the HyperLinkField will incorrectly display. Here's my attempt so far but I'm obviously hitting a wall:
Visible='<%# Eval("clientComment")==Null or =="",False) %>'
View 14 Replies
May 7, 2015
How to use ternary operator in this condition
if (drSiteDetail["sitetype"].ToString() == "Local")
rdbType.SelectedIndex = 0;
else
rdbType.SelectedIndex = 1;
View 1 Replies
Mar 28, 2011
We have developed apllication in Microsoft VS 2008 and when we opening this same application with Microsoft VS 2010. Then it's asking to convert.
So can anybody tell me what it is converting exactly. Means it's open application in Microsoft VS 2010 and running properly also. But i am understanding whats happning while converting.
View 3 Replies
Oct 8, 2010
I know that the problem is my field having NULL values. However, I don't know how to have it process the code even if the field have nullshere's my code:
[Code]....
View 5 Replies
Jul 21, 2010
I am moving a website to a new framework. But the old site is in vb and the new on I'm coding it in C#.
I have this line of code that I can't figure out, This is on the aspx page. It's in a datagrid as well.
[Code]....
The line that is messing up is the second to last one where it starts with </a>(<%#Math.Round....
Here is the error I get...CS0019: Operator '/' cannot be applied to operands of type 'object' and 'int'
I've tried to work around it but can't fix this
View 4 Replies
Jan 14, 2011
I created a new page in an existing project. The existing pages are still good, but the new page is having problems at runtime. The problem is that controls are not recognized and throw a "object reference not found" error. I even tried Page.FindControl and that didn't work either. This is only happening with this page. The controls are recognized at design time, and are not recognized only at runtime.
The controls were copied from a regular Web form into a content form with a master page. They worked fine when in the regular web form. Could that be the issue?
I tried creating a new page and moving the controls over, but that didn't fix the problem. I also tried deleting the designer file and recreating it (using convert to web application) but that didn't resolve it either. I'm out of ideas here. Here is the page directive and the first control that is not recognized.
<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="default_grid.aspx.cs" Inherits="TestItemDevelopment.default_grid" %>
<asp:Content ID="Content4" ContentPlaceHolderID="mainContentHolder" runat="server">
View 2 Replies
Aug 6, 2010
[Code]....
Attribute not recognized 'setProcedure' ?
View 2 Replies
Aug 3, 2010
I downloaded iTracker to get started doing some web development with ASP.NET. I don't understand why in the code behind file, the standard web controls are not recognized.
For example:
This is the ASPX File ...............
<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/ITracker.Master" CodeBehind="Details.aspx.vb" Inherits="dfs.ITracker.Details"
title="Untitled Page" %>
<asp:Content ID="Content2" ContentPlaceHolderID="cphTitle" runat="server">
<asp:label ID="lblPageHeader" runat="server" CssClass="PageHeader"></asp:label>...
View 6 Replies
Aug 13, 2010
I'm new in ASP I was watching a video which explains how to add a webform and declar a variable
[Code]....
but it says <%var1%> it's not declard when I run it without debugging .
View 2 Replies
Feb 14, 2011
This worked before but NOW it is not working. Really weired.
[Code]....
The second line gives me the error. What's wrong with this
View 2 Replies
Nov 9, 2010
while inserting joindt,exitdt to employee table it shows error "String was not recognized as a valid DateTime." help me withthis error.my code:
DateTime creationdt = Convert.ToDateTime(TextBox5.Text + "/" + DropDownList1.SelectedValue + "/" + TextBox6.Text);
DateTime join_dt = Convert.ToDateTime(TextBox7.Text + "/" + DropDownList16.SelectedValue + "/" + TextBox8.Text);
[code]...
View 3 Replies
Jul 15, 2010
i am writing a datetime string to my sql db and i get the above error. code is as follows:
String WCRDate = txt_Date.Text;
String WCRTime = DDL_Hour.SelectedValue + ":" + DDL_Min;
DateTime WCRDateTime = new DateTime();
WCRDateTime = DateTime.ParseExact( WCRDate + " " + WCRTime , "dd/MM/yyyy hh:mm" , new CultureInfo("en-GB",true));
the txt_Date.text field gets the date from an asp calendar in the format 21/07/2010
however when debugging the WCRDateTime shows {01/01/0001 00:00:00 }
View 9 Replies
Jan 9, 2012
I am using calender extender for 2 textboxes(txtstartdate,txtenddate) and have set the format as "dd/MM/yyyy". At the txtenddate textchanged event i am calculating no of days to diplay in txtduration.text..I am getting format exception like this:
String not recognised as valid datetime..
Where am i going wrong.. My code is as below
private int duration(string startdate, string enddate)
{
DateTime dt1= DateTime.Parse(startdate);
DateTime dt2= DateTime.Parse(enddate);
//dt1 = Convert.ToDateTime(txtstartdate.Text);
//dt2 = Convert.ToDateTime(txtenddate.Text);
[Code] ....
View 1 Replies
Apr 28, 2010
i need to use the like operator in a linq queryfor this:
timb = time.Timbratures.Include("Anagrafica_Dipendente")
.Where(p => p.Anagrafica_Dipendente.Cognome + " " + p.Anagrafica_Dipendente.Nome like "%ci%");
View 2 Replies
Nov 19, 2010
I need to access controls of aspx page and usercontrol page through the external .js file. I created a global varaible in the aspx page
<script language="javascript" type="text/javascript">
var loadPanelID = "<%=ajaxLoadingPanel.ClientID%>";
</script>
Now I pass this value in the onclick event of button click (Let the funtion name be Fun(loadPanelID) ) . The controls is recognised in the .js file. Everything is fine till now. Now i need to call the same javascript method Fun() from the button click of usercontrol.
<script language="javascript" type="text/javascript">
var loadPanelID = "<%=ajaxLoadingPanel1.ClientID%>";
</script>
I have ajaxLoadingPanel1 in the usercontrol and I have defined global variable as in the first one in ascx and passed that value to Fun() method. But this time it gives error called "loadpanelID" is undefined.
View 1 Replies
Oct 6, 2010
I want to dynamically create asp textbox objects (as well as other types) with id's named sequentially up to a number the user decides but I'm having a problem getting my code behind to recognize these dynamically created objects. In "div1" below I manually create the objects and I have no problem getting the values in Sub cmdSaveDiv1Info_Click. My dynamically created code generated in Page_Load routine is identical to that in "div1" except for the textbox ID's yet when I try to retrieve the values the same way in cmdSaveDiv2Info_Click I get an "object reference not set to an instance of an object" error on the "Dim d2Year as String.." line.
[code]....
View 2 Replies