Click here to Skip to main content
15,890,973 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: System.Null Pin
Richard Deeming18-Nov-13 4:44
mveRichard Deeming18-Nov-13 4:44 
QuestionHow can i avoid my vbscript running in temp folder when converted to exe using iexpress wizard Pin
superselector14-Nov-13 21:12
superselector14-Nov-13 21:12 
AnswerRe: How can i avoid my vbscript running in temp folder when converted to exe using iexpress wizard Pin
Mike Meinz16-Nov-13 3:09
Mike Meinz16-Nov-13 3:09 
GeneralRe: How can i avoid my vbscript running in temp folder when converted to exe using iexpress wizard Pin
Dave Kreskowiak16-Nov-13 3:18
mveDave Kreskowiak16-Nov-13 3:18 
GeneralRe: How can i avoid my vbscript running in temp folder when converted to exe using iexpress wizard Pin
Mycroft Holmes16-Nov-13 17:00
professionalMycroft Holmes16-Nov-13 17:00 
GeneralRe: How can i avoid my vbscript running in temp folder when converted to exe using iexpress wizard Pin
superselector21-Nov-13 21:09
superselector21-Nov-13 21:09 
GeneralRe: How can i avoid my vbscript running in temp folder when converted to exe using iexpress wizard Pin
Mike Meinz22-Nov-13 1:21
Mike Meinz22-Nov-13 1:21 
QuestionSorting Gridview with Data from DataTable error Pin
Commish1314-Nov-13 5:11
professionalCommish1314-Nov-13 5:11 
I'm getting an error that says:

nullreferenceexception was unhandled by user code

This is my Code:

Protected Sub GrdSorter(ByVal sender As Object, ByVal e As GridViewSortEventArgs)
Dim dt As DataTable = TryCast(ViewState("grdNurseVisits"), DataTable)
Dim dvGridDataView As DataView = dt.DefaultView
Dim strSortOrder As String = ""
If ViewState("SortOrder") Is Nothing Then
ViewState("SortOrder") = "asc"
End If
If ViewState("SortOrder").ToString() = "asc" Then
ViewState("SortOrder") = "desc"
strSortOrder = "desc"
ElseIf ViewState("SortOrder").ToString() = "desc" Then
ViewState("SortOrder") = "asc"
strSortOrder = "asc"
End If
dvGridDataView.Sort = Convert.ToString(e.SortExpression) & " " & strSortOrder
dt = dvGridDataView.ToTable()

grdNurseVisits.DataSource = dt
grdNurseVisits.DataBind()
End Sub


I got the code from this site and there is step I didn't put in because I don't know the correct code.

this is the step:

Populate the ViewState with the datasource of the gridview in the If Not Page.IsPostBack

I don't know how to write that step in vb code

Could some one please let me know how to get this code to work...
AnswerRe: Sorting Gridview with Data from DataTable error Pin
Richard MacCutchan14-Nov-13 6:13
mveRichard MacCutchan14-Nov-13 6:13 
GeneralRe: Sorting Gridview with Data from DataTable error Pin
Commish1314-Nov-13 7:07
professionalCommish1314-Nov-13 7:07 
GeneralRe: Sorting Gridview with Data from DataTable error Pin
Richard MacCutchan14-Nov-13 7:16
mveRichard MacCutchan14-Nov-13 7:16 
GeneralRe: Sorting Gridview with Data from DataTable error Pin
Tim Carmichael14-Nov-13 8:47
Tim Carmichael14-Nov-13 8:47 
QuestionTabing to a certain program window from excel... Pin
harry.roy14-Nov-13 4:52
harry.roy14-Nov-13 4:52 
AnswerRe: Tabing to a certain program window from excel... Pin
Richard MacCutchan14-Nov-13 6:16
mveRichard MacCutchan14-Nov-13 6:16 
AnswerRe: Tabing to a certain program window from excel... Pin
TnTinMn14-Nov-13 16:35
TnTinMn14-Nov-13 16:35 
GeneralRe: Tabing to a certain program window from excel... Pin
harry.roy14-Nov-13 16:43
harry.roy14-Nov-13 16:43 
GeneralRe: Tabing to a certain program window from excel... Pin
TnTinMn14-Nov-13 16:55
TnTinMn14-Nov-13 16:55 
QuestionNeed Help Pin
Member 1040050613-Nov-13 17:44
Member 1040050613-Nov-13 17:44 
AnswerRe: Need Help Pin
Richard MacCutchan13-Nov-13 21:43
mveRichard MacCutchan13-Nov-13 21:43 
AnswerRe: Need Help Pin
Marco Bertschi13-Nov-13 22:17
protectorMarco Bertschi13-Nov-13 22:17 
QuestionConnect MySQL Database in Linux PC by VB.NET Pin
Biplob Singha Shee13-Nov-13 3:16
Biplob Singha Shee13-Nov-13 3:16 
AnswerRe: Connect MySQL Database in Linux PC by VB.NET Pin
Dave Kreskowiak13-Nov-13 4:44
mveDave Kreskowiak13-Nov-13 4:44 
GeneralRe: Connect MySQL Database in Linux PC by VB.NET Pin
Biplob Singha Shee13-Nov-13 8:03
Biplob Singha Shee13-Nov-13 8:03 
AnswerRe: Connect MySQL Database in Linux PC by VB.NET Pin
Bernhard Hiller13-Nov-13 21:05
Bernhard Hiller13-Nov-13 21:05 
Questionvoting system based on image steganography Pin
fizie896-Nov-13 6:38
fizie896-Nov-13 6:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.