Click here to Skip to main content
15,908,111 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: how to copy row from one radgrid to another,each time a new row is added........ Pin
Seema Rayat25-Mar-11 1:30
Seema Rayat25-Mar-11 1:30 
GeneralRe: how to copy row from one radgrid to another,each time a new row is added........ Pin
Not Active25-Mar-11 2:22
mentorNot Active25-Mar-11 2:22 
QuestionHow can i input "&" in the html code? Pin
buffering8324-Mar-11 15:13
buffering8324-Mar-11 15:13 
AnswerRe: How can i input "&" in the html code? Pin
GlobX24-Mar-11 15:52
GlobX24-Mar-11 15:52 
GeneralRe: How can i input "&" in the html code? Pin
Pravin Patil, Mumbai25-Mar-11 2:04
Pravin Patil, Mumbai25-Mar-11 2:04 
AnswerRe: How can i input "&" in the html code? Pin
Dalek Dave26-Mar-11 3:39
professionalDalek Dave26-Mar-11 3:39 
Questionfile download in mvc 2.0 Pin
rudra prasanna biswal24-Mar-11 11:45
rudra prasanna biswal24-Mar-11 11:45 
QuestionDataList web user control Pin
De_Novice24-Mar-11 6:12
De_Novice24-Mar-11 6:12 
Hi,

I am not sure if this is possible. I am exploring web user controls. I have created a datalist user control (datalist.ascx). I have added this control to my default page. Now I want to bind data to this datalist. I am not sure how to do that. I am testing with user controls and any help will be appreciated.

Here is my code:

default.aspx

<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="Default" title="Untitled Page" %>

<%@ Register Src="datalist.ascx" TagName="datalist" TagPrefix="uc1" %>
<%@ MasterType VirtualPath="~/MasterPage.master" %>;
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <uc1:datalist ID="Datalist1" runat="server" />
  
    
</asp:Content>


default.aspx.vb
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
              Dim cmd As New SqlCommand("ws_Testimonials")
       Try
           If dalaccess.Connect = True Then
               rs1 = dalaccess.GetDataset(cmd, 60)
               dalaccess.Disconnect()
               Datalist1.datasource = rs1
               Datalist1.DataBind()
           End If
       Catch ex As Exception
       End Try


I get the compilation error that "Error 1 'datasource' is not a member of 'ASP.datalist_ascx'."

Gurus please help.
AnswerRe: DataList web user control Pin
Sandeep Mewara26-Mar-11 21:46
mveSandeep Mewara26-Mar-11 21:46 
QuestionLog messages in event viewer Pin
berba24-Mar-11 0:24
berba24-Mar-11 0:24 
AnswerRe: Log messages in event viewer Pin
Pete O'Hanlon24-Mar-11 3:28
mvePete O'Hanlon24-Mar-11 3:28 
QuestionSSRS page break problem Pin
rahul.net1123-Mar-11 23:49
rahul.net1123-Mar-11 23:49 
AnswerRe: SSRS page break problem Pin
Sandeep Mewara26-Mar-11 21:45
mveSandeep Mewara26-Mar-11 21:45 
Questionregular expression validator Pin
Satish_S23-Mar-11 21:21
Satish_S23-Mar-11 21:21 
AnswerRe: regular expression validator Pin
thatraja23-Mar-11 23:12
professionalthatraja23-Mar-11 23:12 
QuestionManipulating Colour Indexed Images (GIF) using palettes - ASP.NET C# Pin
Quintec23-Mar-11 16:08
Quintec23-Mar-11 16:08 
AnswerAnyone? Pin
Quintec26-Mar-11 1:41
Quintec26-Mar-11 1:41 
Questionwhen we use delegates? Pin
anoop_m8323-Mar-11 16:03
anoop_m8323-Mar-11 16:03 
AnswerRe: when we use delegates? Pin
Pravin Patil, Mumbai23-Mar-11 22:47
Pravin Patil, Mumbai23-Mar-11 22:47 
Questionbypass web filter Pin
yftah198923-Mar-11 6:37
yftah198923-Mar-11 6:37 
AnswerRe: bypass web filter PinPopular
Richard MacCutchan23-Mar-11 7:28
mveRichard MacCutchan23-Mar-11 7:28 
GeneralRe: bypass web filter Pin
yftah198923-Mar-11 7:43
yftah198923-Mar-11 7:43 
AnswerRe: bypass web filter Pin
Pravin Patil, Mumbai23-Mar-11 7:58
Pravin Patil, Mumbai23-Mar-11 7:58 
AnswerRe: bypass web filter Pin
Pete O'Hanlon23-Mar-11 7:58
mvePete O'Hanlon23-Mar-11 7:58 
GeneralRe: bypass web filter Pin
yftah198923-Mar-11 8:13
yftah198923-Mar-11 8:13 

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.