vb.net

Making text box hidden in ASP.NET

I am using ASP.NET 3.5 and C#. On my page I need to have a Text box that must not be visible to the user but it MUST be there when you look at the Page Source, reason being, another program called Eloqua will be looking at the page source and it must get the value of that text box. The value of that text box will be populated based on ...

How to bring a system out of standby programatically?

Is there a way to do it in c# or vb.net? I have to bring a system out of standby and play a notification sound if it is in standby mode, at specific time intervals. Is this possible? ...

DetailsView not retaining mode on postback, within custom Panel

Hi all, I have a custom Panel control which works like a regular Panel, but adds a heading to the top. The code for this panel is as follows : Public Class GInfoPanel Inherits System.Web.UI.WebControls.Panel Protected WithEvents lblHeader As New Label() Protected WithEvents innerDiv As New HtmlGenericControl("div") Pu...

How can you dynamically generate list items to an unordered list in ASP.NET?

I have an error panel that is subbed in to a page if an error goes wrong to gracefully handle and display errors. Currently, I am just appending the error messages to a string and pushing that to a label. If you have multiple errors, this gets messy. Therefore, I'd like to push each error to a list item in a bulleted, unordered list. ...

How do I test for DBNull so as not to crash with "Column .... does not belong to table row"?

I am reading 2 tables in T-SQL like so: Select r.UID,c.Forename,c.Surname,c.DOB From c LEFT OUTER JOIN r on........ Then in VB.NET I loop through the dataset like so: For Each drR In dsR.Tables(0).Rows......Next However when I test like so: If Convert.IsDBNull(drR("r.UID")) Then Or String.IsNullOrEmpty(drR("r.UID")) Convert.I...

Sending information from one webform to another

i'm generating HyperLinks, all of them (depending on the circunstance, could be 1, 2 or 1000) send to the same webform: from default.aspx to envia.aspx i can't use session, or anything i already know, because i can't create as many methods i want (that would not be good, due to possible large numbers) example, there are three lines i ...

How can I remove a word from string?

I have a string which contains words with parentheses. I need to remove the whole word from the string. For example: for the input, "car wheels_(four) klaxon" the result should be, "car klaxon". Can someone give me an example that would accomplish this? ...

vb.net 2008 textbox max length

What is the maximum amount of characters that can be put into a textbox in vb.net 2008? ...

how to vb.net programmatically specify connection string in dataset.xsd in vs2005

I want to create a dataset.xsd in vs2005, and I am using access database, so I cant know where my client save the application. Hence I used application.startuppath() to get the application folder and appended "Data\db.msd" to the application.startuppath() so i got the target location for the access databse in client machine. Now to creat...

How Can I check whether DataReader has Data or not?

Hi All, Again I have problem with checking whether DataReader object has data or not? Dim cmd as SqlCommand Dim drd as SqlDataReader cmd = New SqlCommand ("SELECT * FROM Stock", conx) drd = cmd.ExecuteReader() ''HERE I WOULD LIKE TO CHECK WHETHER drd has Data or not While (drd.Read()) { txtName....

How to print records using crystal report?

Hi Guyz! I'm trying to print a record in vb.net(vb2008 express edition) and what I'm familiar with printing was using data report way back when i was in vb6.0 but when i moved to vb.net lately i heard about using crystal report but im not familiar with it so i don't really know how to start with.I know it sounds like im depending too mu...

Hierarchical Menu using unordored list

Hi, What I'm want to accomplish is to build a hierarchical menu build on my custom sql sitemapprovider. Now when I just write down the structure using recursion it builds up correctly like this: Main -- Item1 -- Item2 Second -- Item1 -- Item2 ---- Sub1 ---- Sub2 Third But what I would like to accomplish is that the childeren only...

How convert byte to decimal?

Hi... Please guide me how make convert that input to decimal.tq. BF C2 FF 12 65 E4 EE 17 BF C2 64 F2 41 84 11 C1 C4 38 41 14 10 C1 04 10 49 04 18 41 06 72 B5 FF 17 BF C2 64 72 41 84 11 C1 85 19 C1 07 17 7D C2 5F 3D 5E FD DE 57 FD 10 E1 94 30 B5 FF 17 BF C2 FF 12 65 CC 76 17 BF C2 FF 12 69 FC 77 ...

ASP.NET MVC strongly typed view convert from C# to VB.NET

I'm starting to learn ASP.NET MVC and since I work in a VB.NET shop I'm converting an example from C#. I'm trying to implement a strongly typed view and the example I'm looking at shows the following: <tr> <td>Name:</td> <td><%=Html.TextBox(x => x.Name)%></td> </tr> I've come up with the following in VB.NET: <tr> <td>Name:</td>...

vb.net word document

I can add a bullet in word document through vb.net by using applybulletDefault() method but how can i remove it in next line?? ...

Was Visual Studio 2008 or 2010 written to use multi cores?

basically i want to know if the visual studio IDE and/or compiler in 2010 was written to make use of a multi core environment (i understand we can target multi core environments in 08 and 10, but that is not my question). i am trying to decide on if i should get a higher clock dual core or a lower clock quad core, as i want to try and f...

VB - ListView - Change Header Height?

Useing Winform and VB.Net - how can I change the column header height? ...

How to export a DataGridView to Excel format in VB.NET

I'm using OLE to connect to a database using VB.NET, and show the results in a DataGridView. I want to export the data that is in the DataGridView to an Excel format file, i.e., the user can save the content of the DataGridView as MS Excel file. ...

VB.NET byte <-> string conversion error/problem

I am reading data from a socket (as bytes) and storing this data in a string. Then later i need to access specific bytes within the string and do some math with them. However the bytes that I read back from the string are not what I am expecting. Here's code to demonstrate my problem: Dim bytTest() As Byte = {131, 0} Dim strTes...

LINQ to SQL A member defining the identity of the object cannot be changed.

Hi, I'm writing a Generic for LINQ to SQL CUD. I 'Generic Insert Public Shared Sub Add(Of T As Class)(ByVal entity As T) Using db As New APIUDataContext() db.GetTable(Of T)().InsertOnSubmit(entity) db.SubmitChanges() End Using The genric Insert is working good. 'Generic Update Public Shared Sub Update(Of...