Click here to Skip to main content
15,917,859 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Custom Installation Pin
Richard MacCutchan3-Jul-14 5:21
mveRichard MacCutchan3-Jul-14 5:21 
GeneralRe: Custom Installation Pin
STSanford3-Jul-14 5:24
STSanford3-Jul-14 5:24 
GeneralRe: Custom Installation Pin
Richard MacCutchan3-Jul-14 5:37
mveRichard MacCutchan3-Jul-14 5:37 
GeneralRe: Custom Installation Pin
STSanford3-Jul-14 5:42
STSanford3-Jul-14 5:42 
AnswerRe: Custom Installation Pin
GuyThiebaut3-Jul-14 5:56
professionalGuyThiebaut3-Jul-14 5:56 
QuestionChange db connection dynamically in vb.net for reportviewer Pin
Keval Savani3-Jul-14 0:10
Keval Savani3-Jul-14 0:10 
QuestionCreating zip files limited to size Pin
ctrl+s1-Jul-14 7:38
ctrl+s1-Jul-14 7:38 
AnswerRe: Creating zip files limited to size Pin
Dave Kreskowiak1-Jul-14 12:18
mveDave Kreskowiak1-Jul-14 12:18 
AnswerRe: Creating zip files limited to size Pin
Richard Deeming2-Jul-14 1:30
mveRichard Deeming2-Jul-14 1:30 
Questionform1 as background of form2 in vb.net Pin
khei-chan00729-Jun-14 21:03
khei-chan00729-Jun-14 21:03 
AnswerRe: form1 as background of form2 in vb.net Pin
Dave Kreskowiak30-Jun-14 1:54
mveDave Kreskowiak30-Jun-14 1:54 
QuestionReport Viewer in Code Behind Pin
jkirkerx29-Jun-14 10:19
professionaljkirkerx29-Jun-14 10:19 
GeneralI was able to populate the tablix with static data Pin
jkirkerx29-Jun-14 11:19
professionaljkirkerx29-Jun-14 11:19 
QuestionDATAGRIDVIEW ARRAY QUESTION VB.NET 2012 Pin
AntonyJackson26-Jun-14 0:04
AntonyJackson26-Jun-14 0:04 
Questionvb.net drop down list insidelist view Pin
walsh2725-Jun-14 0:17
walsh2725-Jun-14 0:17 
I Have inside a list view a dropdown list as follows:

XML
<td>
                                       <asp:DropDownList ID="ddlAllocatedTeam" runat="server" CssClass="inputsize-1-3" DataSourceID="odsAllocatedTeam" DataTextField="TeamName" DataValueField="TeamID" AppendDataBoundItems="true" AutoPostBack="true" SelectedValue='<%# Eval("TeamID") %>'>
                                           <asp:ListItem Text="Please Select .." Value="-1"></asp:ListItem>
                                       </asp:DropDownList>
                                       <asp:ObjectDataSource ID="odsAllocatedTeam" runat="server" TypeName="Team" SelectMethod="List">
                                           <SelectParameters>
                                               <asp:Parameter Name="SearchTerm" Type="String" ConvertEmptyStringToNull="false" DefaultValue="" />
                                               <asp:ControlParameter ControlID="ddlSeason" Name="SeasonID" PropertyName="SelectedValue" />
                                               <asp:Parameter Name="Showall" Type="INT32"  DefaultValue="0"/>
                                           </SelectParameters>
                                       </asp:ObjectDataSource>
                                       <asp:HiddenField ID="hdfTeamID" runat="server" Value='<%# Eval("TeamID") %>' />
                                   </td>


I bind the list as follows:

VB
Protected Sub lvData_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.ListViewItemEventArgs) Handles lvData.ItemDataBound

        If e.Item.ItemType = ListItemType.Item Then

            Dim ddlAllocatedTeam As DropDownList = e.Item.FindControl("ddlAllocatedTeam")

            Dim hdfTeamID As HiddenField = e.Item.FindControl("hdfTeamID")

            ddlAllocatedTeam.SelectedValue = hdfTeamID.Value
            ddlAllocatedTeam.DataBind()

        End If

    End Sub



When I edit and update the row I get the following error message

Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.


I need to be able to update the record not changing the value or on index change on ro drop down list need this updating
Questionsybase ASE 15.7 with VB.Net framework 1.1 connection error Pin
ashishj01624-Jun-14 19:30
ashishj01624-Jun-14 19:30 
AnswerRe: sybase ASE 15.7 with VB.Net framework 1.1 connection error Pin
Dave Kreskowiak25-Jun-14 2:47
mveDave Kreskowiak25-Jun-14 2:47 
QuestionNeed to find html tags in strings Pin
Amir Tallap22-Jun-14 16:49
Amir Tallap22-Jun-14 16:49 
AnswerRe: Need to find html tags in strings Pin
thatraja22-Jun-14 22:10
professionalthatraja22-Jun-14 22:10 
QuestionError Trying to connect to a database after restoring Pin
dilkonika22-Jun-14 11:17
dilkonika22-Jun-14 11:17 
AnswerRe: Error Trying to connect to a database after restoring Pin
Eddy Vluggen23-Jun-14 7:12
professionalEddy Vluggen23-Jun-14 7:12 
GeneralRe: Error Trying to connect to a database after restoring Pin
dilkonika23-Jun-14 8:24
dilkonika23-Jun-14 8:24 
GeneralRe: Error Trying to connect to a database after restoring Pin
Eddy Vluggen25-Jun-14 8:15
professionalEddy Vluggen25-Jun-14 8:15 
QuestionWhy does this Array.FindIndex for case insensitive return 2 not 0 Pin
QuickBooksDev21-Jun-14 4:15
QuickBooksDev21-Jun-14 4:15 
AnswerRe: Why does this Array.FindIndex for case insensitive return 2 not 0 Pin
Dave Kreskowiak21-Jun-14 5:38
mveDave Kreskowiak21-Jun-14 5: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.