Asp.net - .net An Error Is Coming
Apr 6, 2010Compiler Error Message: ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl).
View 2 RepliesCompiler Error Message: ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl).
View 2 Repliessee the pic. and advise why this error is coming up and how to fix it.
View 1 RepliesI keep having this error coming up. Im retrieving messages from outlook. But it bring up this error.
View 4 RepliesI'm trying to make a calculation app, but the 'Declaration expected' error keeps coming up.
Imports System.Math
PublicClass Form1
Dim k AsInteger
[Code].....
i have this code to open a record and this working if there is any, but if no records it will come out with error
[Code]...
I've been hired at a company to fix some bugs and make some improvements to their in house programs. The program I am currently working has been written in Visual Studio 2005, in Visual Basic specifically. The program is used to connect to a database on a server and provide various information. However, I have run into a snag where the program will refuse to connect to the database when it using a user account and password that has been set up on the database. When I look at the logs i see it is giving the error as stated above, however, I have double and triple checked the password both on the database and the one hardcoded into the program and they are identical yet it still logs that there is a password mismatch. Has anyone run into this problem or figured out a solution towards fixing it, I will be much obliged.
View 6 RepliesError is coming Registry Access is not allowed.While Opening a Key.
Code:
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
NewDelete("HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRun", "Sonia")
End Sub
[CODE]...
PHP
BeforeInverse= ((2nd.Text ^2 + 3rd.Text ^ 2 - 1st.Text ^ 2) / (2 * 2nd.Text * 3rd.Text))
Calculation.Text = Math.Acos(BeforeInverse/ Math.PI * 180)
The above is using the cosine formula which has been rearranged to solve for the angle. When i calculate, it comes up with NaN and i'm not dividing by 0. What does NaN mean and is there an error with the above code?
I am calling my business layer project in Web Project. I added refress business layer project to Web. When I call class in BL project, I need to write twice this namespace. I dont know why it is coming.
MyCompanyName.HRHead.DataLayer.MyCompanyName.HRHead.DataLayer.User
I suppose to call
MyCompanyName.HRHead.DataLayer.User
In my BL project I defined all classes namespace is MyCompanyName.HRHead.DataLayer?
I would like to decrypt a files that sis coming to me as pgp, is there anyway of doing this. without the pgp command or any other third party dll. or I rememeber A long time ago there was a .dll called NSDpgp3.dll but it only works with vb6 ( sdpgp3 was free)
View 2 Repliesi want to create a view but when i'm typing CREATE the only intellisense that are are coming out are 'created', 'createobject', and 'createparams'
when i try to type 'create' only.. there is a wiggly line on that word..
See the result just stops at the first one, I want to try and overflow it so then it can do other commands as well. By the way, here is my code. Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim var As String
[code].....
I have a splash screen set using the Application Framework. In my main form, I check for some conditions in Load() event of the MainForm and display a MsgBox if some of them fails.
But the problem is, the MsgBox comes below the Splash Screen.
I am changing the row color of my gridview based on how many days the task is from today. But it is not working date1 is todays date and date2 is the due date of the task.also when i sort i click on the column headers to sort, the rows change colors..[code]
View 3 RepliesProblem I'm facing now is when the call is going, there is alot of noise coming out form the speakers. I want to cancel all the other sound which is coming out other than the voice. I want to cancel echo.How can I do that?
View 2 RepliesI am using Vb.net 3.5, An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in System.Windows.Forms.dll
Additional information: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
This exception is coming when control is trying to added into the page i.e Me.Controls.Add(CntrlName). I have registered.Then also i am getting error.Please help me.Its urgent.
I am looking to be able to do life frequency detection in VB.net. I must say I don't really know where to begin here. I have looked into BASS.net, but that seems to only work with pre-recorded audio. I need to be able to detect the frequency of audio coming in over the line in or mic input in near real-time.
View 2 RepliesDoes anyone know why the domestic figure is showing up in both the domestic and international textbox? And why the totals of the domestic and international figures keep coming out to zero? [Code]
View 4 RepliesI know it will sound like a dull question, but, coming from a VB6 and C in micro controllers it might be quite reasonable:
[Code]...
OS: windows xp sp 2 visual studio IDE: VS 2008
I have found this link for creating custom Install of setup in vb .net[URL]...To create the custom action
On the File menu, click New Project.In the New Project dialog box, select Visual Basic Projects in the Project Types pane, and then click Class Library in the Templates pane. In the Name box, type OpenWeb.
The project is added to Solution Explorer.
On the Project menu, click Add Class, and then in the Add New Item dialog box, select Installer Class.Accept the default name of Installer1.vb. Click Add.Switch to code view by clicking click here to switch to code view on the design surface (or by right-clicking the design surface and clicking
View Code). In the Code Editor, add the following code (which opens a Web browser) to Installer1.vb, under the constructor:
How would I get it so every time a timer ticks it measures the ammount of sound coming out of the application and puts it into a progress bar? it's any help I'm using an "axprogressbar" set to go vertical.
View 6 RepliesI'm having trouble on how to code this. First I need to assign a value for every item in the list (1 for the first item, 2 for the 2nd and so on). Does this control have a separate field for the value aside from text?
Second, I need to insert this into my database(MSSQL 2008) in this format:
insert into table values(ID,selectedvaluegoeshere)
how to code the "from" portion when an email via vb.net. I could easily do "mm.From= email@domain.com"...but for this project it needs to be sent automatically depending on which user is entering the information. So I have lets say a group of 10 users, anytime a specific user sends in an update on a project form, the email is sent to the manager from the person who it's been updated from. Any suggestion? They all have specific ID's. How would I code it to where I could get the program to find them by their ID and then get their email address from their ID?
Protected Sub SendEmail()
Dim ToAddress As String = ConfigurationManager.AppSettings("AstMgr").ToString()
Dim mm As New Net.Mail.MailMessage("Engineering.Systems@exchange.nscorp.com", ToAddress)
[Code].....
My WebBrowser1 keeps going backwards like 8 pages and then coming forward, I don't get it.
[Code]...
I have a CheckBoxList on my page that isn't behaving very well.The idea is that once the submit button on the form is clicked, the app should clear the database table of all rows pertaining to the specific user and then re-insert new ones based on the user's CheckBoxList selections.The problem is that regardless of whether or not any (or all) items in the CheckBoxList are selected, the app keeps getting Selected = False.[code]I'm aware of the potential for SQL Injection here. I'll be going over to using Parameters as soon as I have the loop working.
View 3 Repliesi manage to export a data coming from listview to excel here is my code
Try
' Open output file
Dim os As New StreamWriter(filename)
[Code]...
how to set the size of the cell in excel? i mean how to change the width?
I am new to <acronym title="Visual Basic">vb</acronym>.net but i have been writing my first Application. The application is a customer database. I have a contacts form and in one of the fields the user puter their date of birth. Alk data is writen to a SQL database. I also have a listview on the right when the application lauches. I want this listview to show birthdays that are coming up in say the next 30days. This is so the user can send a card/ present.
Here is my SQL Update
"update Contacts set contactname='" & tbName.Text & "', PostalAddress='" & tbAddress.Text & "', PhoneNumber='" & tbPhone.Text & "',MobileNumber='" & tbMobile.Text & "', Email='" & tbEmail.Text & "',DateOfBirth='" & Format(dtpDOB.Value, "dd MMM yyyy") & "' where contactID ='" & localContactID & "'"
Then my listview has the select
"SELECT ContactName, DateOFBirth, ContactID FROM Contacts"
I did try
Dim todaysdate As DateTime
todaysdate = Date.Now.AddDays(+30).ToString("dd MMM yyyy")
But it is looking at the YYYY and for it to show evey year the YYYY has to be ignored.
make a window change instead of a whole new form coming up(EX: when I press the next button, the layout of the page changes, but no extra forms)Well, If it is not worth it, it is not fun - you say programmers are boring but i say they are worth it.
View 2 RepliesThe following string could be: dsafk$asdlfdl or odldl$ldlkfjdsljfdslkjfdslkjf I need to do the following. Select everything to the rigt of the dollar sign, move it to the left of the dollar sign, and then put a second string that is coming into this function to the right of the dollar sign where the old string was.
View 2 RepliesUsing open source code and trying to modify to parse data out into 6 different text boxes. Sample string expected in looks like this, "01+11111 02+22222 03+33333 04+44444 05+55555 06+66666" Main receive box shows all of it but when I try to work with it the data cuts off at 16 characters. I've tried many ideas without luck. Some of my code will show this. [code]...
View 7 Replies