vb.net

MEMBER NOT FOUND ERROR in VB.NET

i have a function in VB.net 2002 (see code below) and i get a "MEMBER NOT FOUND" error. cant figure out whats wrong.. Public Function GetSheetName_control(ByVal Filename As String) As String Dim oxlApp As Excel.Application Dim oxlBook As Excel.Workbook Dim oxlSheet As Excel.Worksheet oxlApp = CType(CreateObject("Excel.A...

Rowdatabound of gridview

hi guys, I am using following code in rowdatabound fn. Protected Sub gvwMileStone_RowDataBound(ByVal sender As System.Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) If e.Row.RowType = DataControlRowType.Footer Then Dim ddlItem As DropDownList = CType(e.Row.FindControl("ddlFProjectLevels"),...

How to use Windows Search Service instead of the old indexing service to index files?

In the past I had the indexing service installed on a Windows Server 2003 and used it to index files for my website. I did this by executing an OleDbCommand with a query and a connection string. How do I accomplish the same thing with the new "Windows Search Service" (Windows Server 2008) by using VB.NET? Does this work the same way so ...

How can i use a Gridview efficiently in asp.net by using only the keyboard?

Hi, i need to use my gridview by using only the keyboard.My clients prefer keyboard rather than using mouse.How can i use my gridview like that?What all events should i use? ...

Creating an web API in ASP.Net

Hi, I'm looking to create an API for a website I have built. The API will be built in ASP.Net - probably using VB and will need to be consumed by multiple platforms including PHP. I've read a bit about REST vs. SOAP APIs and am confused about which route I should go. I also need some examples and frameworks I can use to get started. T...

Can I use MyBase in a shared method

I have a class that inherits from a base class (this contains a lot of common db related stuff amongst other things and is marked as MustInherit). I want to write a shared methodin which I call a base class method, however the compiler gives me the message 'MyBase is only valid within an instance method'. This shared method is a logging ...

sql connnection, close as soon as possible - true for vb.net apps? or just asp.net

When writing apps with asp.net, which I do more of than vb.net apps, I have always followed the rule of opening a connection to the server, getting the data, and closing the connection as quickly as possible. This seems like a best practice. Is it equally important to do this on a client/server vb.net app? For example, if you had multip...

VB.NET Program Locks Up with Internet Explorer Opened

I'm using Visual Studio 2008 and developing a VB.NET application. I'm having strange lockup problems with my program, but only when Internet explorer 8 is opened. When I cover my form with another window and then uncover it, I find that it has locked up. My program has no references to IE and the only thing it even has to do with IE is ...

Is there a .NET method equivalent to NETWORKDAYS in Excel?

I'm trying to do some date math in Visual Basic. The NETWORKDAYS function in Excel is exactly what I need. Is there an equivalent or similar method available in .NET? ...

Linq Nested Grouping

I've a large table of Items and I need to organize them by Category, then by Year and then by Month. Item has CategoryID and Dated properties. I got this far: Dim Items = From Item In DB.Items _ Group By CategoryID = Item.CategoryID _ Into Categories = Group _ Order By CategoryID But where I put the: ...

How can I get the URL and Querystring? vb.net

I am refactoring some legacy code. The app was not using querystrings. The previous developer was hard coding some variables that the app uses in other places. Like this using VB.NET so.Cpage = "ContractChange.aspx" My question is can I programatically set this value and include the current querystring? I want so.Cpage to be something...

converting video files to .flv files

Hi guys I am having a problem with converting video files to .flv files. I am using ffmpeg.exe tool to achieve this. Here on my local server when I use ffmpeg.exe tool with c# code everything is working good. But when I deploy the same code with ffmpeg tool on to my hosting server, where as .exe files are not allowed to execute, the cod...

Handling CRUD Operations for a Linq to SQL View

I am running into a problem where my CRUD operations on an entity sourced from an SQL View is not calling the generated methods for said operations. Example: I press "Delete" in a ListView on an item, connected to a LinqDataSource. It throws an error saying that it cannot perform the operation because it affects multiple base tables. T...

Where does Visual Studio get the data intellisense and name-space completion

I admit...I am posting this question because I still don't have an answer to my other question and thought I would take a different tact. Can someone explain to me WHERE the values for intellisense and namespace/class/member completion works. I figured if I can drill into where/how it is deriving that data I can try to reconfigure my...

Need a ContentTemplate tag on my user control that is accessible like the ContentTemplate tab on the UpdatePanel

I'm creating a user control and I want to have a templated section on it called ContentTemplate similar to how the UpdatePanel has a ContentTemplate tag. When you use the UpdatePanel and you place controls inside of the ContentTemplate section you can access all of the controls in the ContentTemplate without having to do a FindControl() ...

WPF: How do I apply effects such as a DropShadowEffect class to a TextBlock Run element in WPF?

How do I apply effects such as a DropShadowEffect class to a TextBlock Run element in WPF? Think of it as a way of highlighting certain areas of text in a TextBlock where the Run element is located, but applying an individual effect to that area instead. ...

add filter row to gridview

I want to add a row to that will contain dropdowns,search textboxes, and maybe other controls to allow filtering to the gridview. I've looked at This Question but it did not help me. How can I add a row so i can add these controls to my gridview? Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebCo...

VB Getting Object from DataGridView Row

First off, I found a similar question here, but don't understand how it works, and I'm not comfortable 'bumping' or replying to a couple month old question. I have a datagridview control and it's DataSource property is set to a List type object. Question: I'm trying to figure out how to reference the actual object of a selected row so ...

MDI Child form calling, not generation.

Hello. I have an MDI form with 3 nested children with in it. As of right now all it can do is display a new form. For example: each time I press the menu button, the new child form(Form1) is created. Now, if I press that same menu button a second or subsequent time a new Form1 is created and it appears over the previous one. What I w...

Vb.Net Document Storage

I am attempting to add a document storage module to our AR software. I will be prompting the user to attach a doc/image to thier account. I will then put a copy of this file into our folder so that we can reference it without having to rely on them keeping the file in its original place. This system is not using a database but instead i...