I put in my usercontrol(.ascx) the facebook social plugin(code below) <fb:comments href="my link here" num_posts="2" width="470"></fb:comments> My problem is it is not showing in my page(when it is in user control). The plugin works fine with aspx but not with the usercontrol.ascx

Member Avatar
Member Avatar
+0 forum 1

I am using dynamic ItemTemplate for ListView which populated from database.Here is how I do when I need to display string column "Parametr" (or some other datatypes): //my .ascx file <li><%# Eval("Parametr") %> </li> How can I display varbinary column that stores images?Thanks. Here is some more code if somebody needed: <asp:ListView ... DataSourceID="database" ></asp:ListView> <asp:SqlDataSource ... ID="database" SelectCommand="SELECT image FROM image_table"

Member Avatar
Member Avatar
+0 forum 1

In an XSLT file, I am calling a function to a javascript file (.ascx) and trying to pass parameters. One parameter is a Date() object. The only way I've found to successfully pass it is to pass it as a string. Here's the code from the XSLT file. [CODE]<script> grouping("<xsl:value-of select ="Date1"/>", <xsl:value-of select ="ID"/>); </script>[/CODE] Here's my function in Javascript. [CODE]function grouping(date, num) { // Date is now a string instead of a Date() object }[/CODE] What I want to do is keep the date object a date object and not a string. Anyone know how to do this? …

Member Avatar
Member Avatar
+0 forum 2

Hi, Im trying to convert my UserControls to be sharable across multiple projects. I have read up on this, and it seems that I need to have all code in one file (i.e. in the .ascx, rather than codebehind/designer) so I am trying to do this: [CODE] <%@ Control Language="C#" AutoEventWireup="true" ClassName="ImageButton" Inherits="Button" %> <%@ Register src="Button.ascx" tagname="Button" tagprefix="MIKE" %> <script runat="server"> protected override void OnInit(EventArgs e) { this.ImageTag.Src = ImageStartPath + "/" + ImgSrc + "_Up.png"; base.OnInit(e); } ... [/CODE] the problem is, that despite the "Inherits" attribute on the <%@ Control tag, set to "Button", which is the …

Member Avatar
Member Avatar
+0 forum 5

The End.