vb.net

How to set DataField property by code in c1flexgrid

I am useing C1FlexGrid and i set the datatable as c1flexgrid's datasource. now i want to map filed of datatable to columns of c1flexgrid by code. please tell me how to do it. ...

Crystal Report,VB.NET,ASP.NET

Hi Can help to get rid of this error in the Production website.This error is showing when i click on the Reports(Crystal Report) Error Message: The maximum report processing jobs limit configured by your system administrator has been reached Source Error: An unhandled exception was generated during the execution of the current web ...

VB.NET: Doesn't anyone use the dictionary member access expression? (a.k.a. the bang operator)

Doesn't anyone use the dictionary member access expression? (a.k.a. the bang operator) If so, in what scenarios? http://msdn.microsoft.com/en-us/library/aa712034%28VS.71%29.aspx ...

Access methods or properties from html in asp.net mvc

Ok this seems like an easy one: In c# asp.net mvc I can declare some public class like: public class Foo { public static string Bar {get {return "bar";} } } and access it from any html like: <%=Foo.Bar;%> right? Well, I have to do the same in ASP.NET MVC VB.Net but I cannot access any variable or method: public class Fo...

how to position form at the bottom right corner of the screen in visual basic

Hi How can I position a form at the bottom right corner of the screen when the form load? I use visual basic 2010 express (sorry I am a beginner) thanks EDIT: i did sth and it seems to work great here; Dim x As Integer Dim y As Integer x = Screen.PrimaryScreen.WorkingArea.Width - 400 y = Screen.PrimaryScree...

Re-direct page when session is lost?

I am using ASP.NET. If my sessions time out i want to re-direct the page to another URL: Say the home page.... On my page I make use of a GridView that uses Session variables. If the session variable time expire(currently at 60min) and the user click on a row in the GridView I want to re-direct him/her to the home page of my site. Can ...

for loop in vb.net

Hello, what is the equivalant of for (int rowCounter = 0; rowCounter < rowCount; rowCounter++) {for (int columnCounter = 0;columnCounter < columnCount; columnCounter++) {string strValue =GridView1.Rows[rowCounter].Cells[columnCounter].Text; grdTable.AddCell(strValue); } } in VB.net Thanks in advance ...

How to pass data between BLL and UI in 3-layer (single tier) application?

I am a fairly rookie programmer who is trying to learn the basics of n-layered architecture (DAL, BLL, UI). The application I am programming is a single tier, 3-layer application written in VB.NET (.Net 3.5). Layers as follows: DAL BLL UI COMMON - contains DTO's right now. I am having trouble determining what to pass between my BL...

What is pros and cons of calling procedures in VB.NET?

Hi All, I would like to know the pros and cons of calling procedures with Call Keyword and without Call in VB.NET? Private Sub ProOne() // Code Are Here End Sub Private Sub Calling() ProOne() // I would like to know pros and cons of this Call ProOne() // And I would like to know pros and cons of this End Sub...

VB.net Mid as left operator special (strange?) behaviour

Today, while talking with my colleague, something odd came out of his mind. A "secret" way to handle string coming from vb6, which was like: Dim strSomeString as String strSomeString = "i am phat" Mid$(strSomeString, 6,4) = "hack" This would put i am hack inside strSomeString. While being surprised of such oddity being supported...

ValidatorCalloutExtender Alert box

Is there any way to make a ValidatorCalloutExtender popup a standard alert box? ...

How do I data bind a drop down list in a gridview from a database table using VB?

So in this gridview, there is a column for status and I want to have a drop down list with Pass, Pending, Fail appear when the edit button is clicked. These values are already in a table, so I need to somehow bind from this table to each ddl for every row. Here is the column from the gridview. As you can see, I would like to just have a...

Are the VB.NET code snippets available for C#?

Question I was wondering if anyone knows where I might find C# versions of the VB.NET code snippets built in to Visual Studio (2008)? What are Code Snippets? VB.NET has a wide-ranging collection of snippets that cover most of the basic tasks one might want to accomplish, i.e. File I/O, LINQ, DB connectivity, and so on. C# has a much s...

unable to open web project the two need to map to the same server location error

I am getting the following error when trying to open a vb .net 1.0 project using VS2002. "Unable to open Web project 'ProjectName'. The file path 'FilePath' does not correspond to the URL 'ProjectURL'. The two need to map to the same server location. HTTP 404: Object Not Found." I have tried ALL of the links that Google threw at me (on...

Best Way of Determining that Website is Being run in Visual Studio

In my code behind I'd like to be able to tell that I'm running my web site project in Visual Studio (either Debug or Release). I was considering testing for "localhost" but that's not perfect because we could be testing it locally on the server. Any ideas? ...

How to catch events in multi-threaded application that can be watched by main thread?

I have a console application (VB.NET). When it is started, it spawns worker threads to find work in the database and do the task, then look for the next task (A workflow basically). The problem that I have is that I have my Event Handler in the main thread that spawns the worker threads. Those workers, if they error, raise an event to a...

import excel to sql db table

I am trying to write data from an excel spread sheet to a SQL Database. I have been able to connect to the Excel Spreadsheet and read the data but I am unable to get the data to insert into the SQL DB table. the current code is as follows any help most appreciated. Dim plmExcelCon As System.Data.OleDb.OleDbConnection Dim ldEx...

How to use parameterized queries in vb.net?

How to use parameterized queries in vb.net? Because I always wanted to make a program that could read an ms access database and display results based on your query. ...

How to create parameterized queries in vb.net?

Using parameterized queries with ms access 2003 integration. To search any data according to different criteria. ...

How to bind a query on the datagridview in vb.net?

I'm planning to create a program that would bind the search results into the datagridview in vb.net. For example, listing of students that has the same course in the datagridview. ...