Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
C

Chrissy Callen

@Chrissy Callen
About
Posts
10
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • datlist, select item
    C Chrissy Callen

    ive never used datalists before and i'd really appreciate some help? What i'd like to do is select an item (eg, hyperlink or button) from a datalist on one webform, which will either: a) transfer to another datalist on another webform, showing more details of that particular record ... or b) open up the details of that record directly underneath. Ive no idea where to start and the more i look it up the more i get confused Chrissy Callen

    ASP.NET help question

  • select item in dropdownlist & display in datalist
    C Chrissy Callen

    Hi there...im writing a program where basically a user should select his/her name from a dropdownlist and then all details pertaining to that particular user are displayed in the datalist. At the moment the datalist is displays records for all users. How do i bind the records in the datalist to the selected item in the dropdownlist? Any help much appreciated - Thanks :) Chrissy Callen

    ASP.NET question help

  • listview - iif statement
    C Chrissy Callen

    Hi im trying to retrieve data using a listview but get the following error when running: An unhandled exception of type 'System.Data.SqlTypes.SqlNullValueException' occurred in system.data.dll Additional information: Data is Null. This method or property cannot be called on Null values. My code is as follows: listitems.subItems.Add(IIf(IsDBNull(.GetString(1)), .GetString(1), "")) can someone please help Chrissy Callen

    Visual Basic help

  • display checkbox in columns of datagrid
    C Chrissy Callen

    well at the moment i'm looking into creating a listview instead on the advice of one of my colleagues :) Chrissy Callen

    Visual Basic help

  • display checkbox in columns of datagrid
    C Chrissy Callen

    that was quick :) im very impressed..thank you..will give that a go right now. Chrissy Callen

    Visual Basic help

  • display checkbox in columns of datagrid
    C Chrissy Callen

    thanks but is there any chance of having this in vb.net code please?? Chrissy Callen

    Visual Basic help

  • display checkbox in columns of datagrid
    C Chrissy Callen

    basically im very new to this :) i need code examples to help me figure it out. How exactly do i apply DataGridCheckBoxColumn to any particular column that already exists in my datagrid?? Chrissy Callen

    Visual Basic help

  • display checkbox in columns of datagrid
    C Chrissy Callen

    i have 4 columns in my datagrid which at the moment are displaying "yes" or "no". My boss wants these existing columns to display checkboxes instead. Ive tried really hard to find a solution to this problem but so far nothing has worked :( Any help would be greatly appreciated - getting desparate now!! Chrissy Callen

    Visual Basic help

  • vb.net, timer, run program every 5 mins
    C Chrissy Callen

    Hi there :) Ok, the timers seems fine now, next prob is this: I want the program to email only if the file contains new "errors" but NOT to email if there are no new instances of the "error" word. so i wrapped the mail code in if sline <> "" then ... (mail code)...end if and it doesnt seem to mail at all now (i added errors manually to the file to check it). Could u pls tell me where im going wrong? Thanx! Imports System Imports System.IO Imports System.Collections Imports System.Web Module Module1 Sub Main() Dim myTimer As New System.Timers.Timer Dim LineNo As String myTimer.Stop() Dim CurrentLineNo As New Integer If GetSetting("OrEM", "Settings", "LineNo") = "" Then SaveSetting("OrEM", "Settings", "LineNo", "1") End If LineNo = Val(GetSetting("OrEM", "Settings", "LineNo")) Dim objReader As New StreamReader("filename") Dim sLine As String = "" Dim arrText As New ArrayList Do sLine = objReader.ReadLine() : CurrentLineNo = CurrentLineNo + 1 If CurrentLineNo >= LineNo Then If InStr(UCase(sLine), "MON") Or InStr(UCase(sLine), "TUE") Or InStr(UCase(sLine), "WED") Or InStr(UCase(sLine), "THU") Or InStr(UCase(sLine), "FRI") Or InStr(UCase(sLine), "SAT") Or InStr(UCase(sLine), "SAT") Then sLine = objReader.ReadLine() : CurrentLineNo = CurrentLineNo + 1 If InStr(UCase(sLine), "ERROR") Then arrText.Add(sLine) While sLine <> "" sLine = objReader.ReadLine() : CurrentLineNo = CurrentLineNo + 1 End While End If End If If Not sLine Is Nothing Then End If Loop Until sLine Is Nothing objReader.Close() If sLine <> "" Then 'create mail notification Dim mailMsg As New System.Web.Mail.MailMessage mailMsg.BodyFormat = Mail.MailFormat.Text mailMsg.To = "me@co.uk" mailMsg.Subject = "name" mailMsg.From = "name" Dim txtBody As String For Each sLine In arrText txtBody = txtBody & sLine & vbCrLf Next mailMsg.Body = txtBody System.Web.Mail.SmtpMail.SmtpServer = "server" System.Web.Mail.SmtpMail.Send(mailMsg) End If SaveSetting("OrEm", "Settings", "LineNo", Trim(Str(CurrentLineNo

    Visual Basic help csharp question

  • vb.net, timer, run program every 5 mins
    C Chrissy Callen

    Hi :) ive created a program that will read a file, check it for the word "error" and then email me with a list of all new errors in the file. im now trying to get the program to read the file every 5 minutes and then send email notification only if there are new errors - could some1 pls help? here's my code so far, which was working until i started to get the timer working! Imports System Imports System.IO Imports System.Collections Imports System.Web Public Class Form1 Inherits System.Windows.Forms.Form Private Shared myTimer As New System.Windows.Forms.Timer 'Private Shared exitFlag As Boolean = False Private Shared Sub TimerEventProcessor(ByVal myObject As Object, ByVal myEventArgs As EventArgs) myTimer.Stop() Dim LineNo As String Dim CurrentLineNo As New Integer If GetSetting("OrEM", "Settings", "LineNo") = "" Then SaveSetting("OrEM", "Settings", "LineNo", "1") End If LineNo = Val(GetSetting("OrEM", "Settings", "LineNo")) Dim objReader As New StreamReader("c:\ProjectSearch\sx3liveALRT.LOG") Dim sLine As String = "" Dim arrText As New ArrayList Do sLine = objReader.ReadLine() : CurrentLineNo = CurrentLineNo + 1 If CurrentLineNo >= LineNo Then If InStr(UCase(sLine), "MON") Or InStr(UCase(sLine), "TUE") Or InStr(UCase(sLine), "WED") Or InStr(UCase(sLine), "THU") Or InStr(UCase(sLine), "FRI") Or InStr(UCase(sLine), "SAT") Or InStr(UCase(sLine), "SAT") Then sLine = objReader.ReadLine() : CurrentLineNo = CurrentLineNo + 1 If InStr(UCase(sLine), "ERROR") Then arrText.Add(sLine) While sLine <> "" sLine = objReader.ReadLine() : CurrentLineNo = CurrentLineNo + 1 End While End If End If If Not sLine Is Nothing Then End If Loop Until sLine Is Nothing objReader.Close() 'create mail notification Dim mailMsg As New System.Web.Mail.MailMessage mailMsg.BodyFormat = Mail.MailFormat.Text mailMsg.To = "???" mailMsg.Subject = "???" mailMsg.From = "???" Dim txtBody As String For Each sLine In arrText txtBody = txtBody & sLine & vbCrLf Next mailMsg.Body = txtBody System.Web.Mail.SmtpMail.SmtpServer = "???" System.Web.Mail.SmtpMail.Send(mailMsg) S

    Visual Basic help csharp question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups