16,016,204 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Andy Morris (Top 21 by date)
Andy Morris
7-Feb-12 12:30pm
View
I got it to work but only if the background color is not set in the style from the ASP page.
Thanks
Andy Morris
7-Feb-12 12:28pm
View
1, reference problem, I think I have that solved:
Dim row = DirectCast(e.Item.FindControl("Itemrow"), HtmlTableRow)
2, If I set the bgColor to #808080 (Grey) nothing changes.
row.BgColor = "#808080"
I have step through the code to ensure it is firing in the databound event.
Andy Morris
1-Feb-12 16:13pm
View
I finally got it to work. I had a reference problem (mp.GetUser(userName, False) should have been mp.GetUser(userName.text, False) but the link you referenced helped.
Thanks
Andy Morris
23-Jan-12 10:26am
View
Thanks, still learning.
Andy Morris
23-Jan-12 0:09am
View
How do I load the data into a viewstate?
Andy Morris
23-Jan-12 0:08am
View
Deleted
Won't this change the page index back to 0?
Andy Morris
19-Jan-12 9:23am
View
I'll give the above a try. I am getting another strange error though. I get Data Base Error when viewing the report.
Andy Morris
3-Jan-12 8:56am
View
I am new to Asp.net, how do I do that?
Andy Morris
1-Jan-12 12:54pm
View
I changed it to zEdits, but still doesn't work. I built a DropDownList outside of the ListView and it worked fine. It seems the issue is with the:
Dim ddlWorkArea As DropDownList = ListView1.Items(i).FindControl("WorkAreaDDL"
it like it doesn't see it, here is the asp.net part
<asp:ListView ID="ListView1" runat="server" DataKeyNames="ID, WorkArea, SubWorkArea"
DataSourceID="AuditChecklistAnswerData" InsertItemPosition="LastItem" >
<edititemtemplate>
<tr style="background-color:#008A8C;color: #FFFFFF;">
<td style="width: 55px" rowspan="2">
<asp:Button ID="UpdateButton" runat="server" CommandName="Update"
Text="Update" />
<asp:Button ID="CancelButton" runat="server" CommandName="Cancel"
Text="Cancel" />
</td>
<td>
<asp:TextBox ID="WorkAreaTextBox" runat="server" Text='<%# Bind("WorkArea") %>'
width="100px" Enabled="True" BackColor="White" visible ="false" Font-Bold="true" />
<asp:DropDownList ID="WorkAreaDDL" runat="server" BackColor="#FFFFCC" AppendDataBoundItems="true"
DataSourceID="WorkAreaDDLSelect" width="200px" DataValueField="WorkArea" >
~~ rest of the listview ~~
Andy Morris
22-Dec-11 9:46am
View
I added the following in VB code and it now works:
Private Sub ddlLastName_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddlLastName.DataBound
Me.ddlLastName.Items.Insert(0, New ListItem("All", "%"))
End Sub
Private Sub ddlFirstName_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddlFirstName.DataBound
Me.ddlFirstName.Items.Insert(0, New ListItem("All", "%"))
End Sub
Andy Morris
22-Dec-11 9:05am
View
The problem with this is now I need to add the "ALL" to the list. If fixed the issues of the doubling of the data but I need to reset it so every thing will show when "All" is selected.
<asp:ListItem Text="All" Value="%">
Andy Morris
13-Dec-11 20:17pm
View
I tried the Eval also but I get the following error:
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30691: 'Nullable' is a type in 'System' and cannot be used as an expression.
Source Error:
Line 310: <asp:TextBox ID="DateQualifiedTextBox" runat="server"
Line 311: Text='<%# Bind("DateQualified") %>' />
Line 312: <asp:CalendarExtender ID="DateQualifiedTextBox_CalendarExtender" runat="server"
Line 313: Enabled="True" TargetControlID="DateQualifiedTextBox" SelectedDate='<%# IF(not IsDBNull(Eval("DateQualified")), Eval("DateQualified") %>' >
Line 314:
Source File: C:\Users\Andy\Desktop\PKL_QMWh\PKL_QMW\PersonnelMain.aspx Line: 312
Andy Morris
12-Dec-11 7:45am
View
I tried the Eval also but I get the following error:
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30691: 'Nullable' is a type in 'System' and cannot be used as an expression.
Source Error:
Line 310: <asp:TextBox ID="DateQualifiedTextBox" runat="server"
Line 311: Text='<%# Bind("DateQualified") %>' />
Line 312: <asp:CalendarExtender ID="DateQualifiedTextBox_CalendarExtender" runat="server"
Line 313: Enabled="True" TargetControlID="DateQualifiedTextBox" SelectedDate='<%# IF(not IsDBNull(Eval("DateQualified")), Eval("DateQualified") %>' >
Line 314:
Source File: C:\Users\Andy\Desktop\PKL_QMWh\PKL_QMW\PersonnelMain.aspx Line: 312
Andy Morris
29-Nov-11 22:17pm
View
Here is a copy of my current code:
<asp:DropDownList ID="DropDownList3" runat="server"
DataSourceID="SqlDataSource1" DataTextField="Reviewer1Title"
DataValueField="Reviewer1Title" Height="25px" style="margin-left: 0px"
Width="162px">
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:PKLConnectionString %>" SelectCommand="SELECT tblEvaluationListing.Reviewer1Title
FROM tblEvaluationListing
GROUP BY tblEvaluationListing.Reviewer1Title
HAVING ((Not (tblEvaluationListing.Reviewer1Title) Is Null));">
Andy Morris
7-Oct-11 16:47pm
View
Thanks, this worked. Just in case someone else needs an example:
strSQL = "INSERT INTO tblEvaluationQuestions ([EvaluationID] " & _
" ,[PID] " & _
" ,[Checklist] " & _
" ,[Item] " & _
" ,[Objective]) " & _
"SELECT " & _
" '" & txtAssessmentID & "' as EvaluationID" & _
" ,'" & txtPID.Text & "' as PID" & _
" , Checklist " & _
" , Item " & _
" , Objective FROM tblEvaluation" & _
" WHERE checklist = '" & ddChecklist.Text & "' and ProgramGroup = '" & CType(Session.Item("SessionProgramGroup"), String) & "'"
Andy Morris
6-Oct-11 23:22pm
View
I tried several different ways of doing this and still cannot get it to work.
Andy Morris
6-Oct-11 23:21pm
View
Thanks for the info. It worked like a charm.
Andy Morris
3-Oct-11 10:17am
View
Is that on the page load event? or under Asp?
I'm new to the web development aspect and trying to figure it all out.
Andy Morris
29-Sep-11 23:18pm
View
I see my error, I initialized the SQLcmd and ObjCommand both as New SQLCommand. I appreciate your help.
Andy Morris
29-Sep-11 23:05pm
View
Thanks for the help. One other question I am also using the "objCommand" on the Insert SQl statement, should I change that as well to the "SQLCommand"?
Andy Morris
29-Sep-11 22:26pm
View
I'm quite new to VB.Net (crossing over from MS Access). Can you provide me a good reference or sample?
Show More