Displaying Comments And Images On Web Page
Sep 9, 2012
I am new in vb.net ... I am working on a project where users are able to post comments and also to be able to upload images. I am able to save the comments and also able to save the images to the database as a binary.
I am able to show the comments thru a listview as a user adds the comments, but how can i show the comments and the images. this would be similar like "Facebook"
View 1 Replies
Similar Messages:
Feb 20, 2012
I have to display some HTML from our system and do by using
DivOutline.InnerHtml = outlinetext;
where outlinetext is a string of HTML
However the string contains code as below
"<!--[if !supportLists]-->"
which for some reason also gets displayed.
I think it could be because the actual string is
("<!--[
but even when I try
outlinetext.Replace("<", "<");
the text does not seem to get replaced
How to make the comments not display or why the string.replace function cannot pict out "<" when I can see it is definately in the string?
View 2 Replies
Jan 21, 2010
hows the best way to display comments/user data from a db using mvc?do we just do our own for loop and manually display it or? will doing it this way cause paging problems in the future? any best methods or practice?
View 4 Replies
Mar 30, 2010
In my web application, i need to display Images(.jpg,.tif,.png,.bmp etc.,) and also Text Files(.txt,.doc,.xml,.html etc.,) in the web page. Can you suggest me, the best way to do this? NOTE: The Web Page should be compatible with Mobiles Phones(Iphone, Android)
View 5 Replies
Jan 23, 2012
I have div with two images at top n bottom and text in the center.
On each pag load i want to change both the images and text as well as the position of div(MainContent).
My code in asp.net as follows:
<div id="MainContent">
<asp:Image ID="ImgRibbonTop" runat="server" src="Images/Default/ribbon-top.png" alt="ribbon" />
<div id="LeftSection">
[Code] .....
View 1 Replies
May 30, 2012
This is my last thread [URL] .....
In details.aspx i have datalist that have 3 lable and 1 image when i write this code in global.aspx
public static void RegisterRoutes(RouteCollection routes)
{
routes.Add("BikeSaleRoute", new Route
(
"bikes/{Data}",
new CustomRouteHandler("~/Details.aspx")
));
}
When i type behtob.com/bikes/1111 in addressbar it go to details.aspx and show this page with datalist that fill from my db 3 lables and 1 image but when i write this code in my global.asax
public static void RegisterRoutes(RouteCollection routes)
{
routes.Add("BikeSaleRoute", new Route
(
"{Data}/",
new CustomRouteHandler("~/Details.aspx")
));
}
I should type behtob.com/1111 in address bar it go to details.asax but in my datalist just show 3labales that i bind from db it didn't show image that i bind from DB what should i do? I want use second code.
View 1 Replies
May 7, 2013
How user post comment on my website using gmail ,fb,yahoo ,hotmail account ...
how to apply this.. [URL] ....
View 1 Replies
Oct 10, 2010
i have this forum page on my website. I want when users leave comment, the old comments should be at the bottom and new comments at the top. The code for that is below:
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString2 %>"
DeleteCommand="DELETE FROM [forum] WHERE [Postingid] = @Postingid"
InsertCommand="INSERT INTO [forum] ([UserName], [TheDateTime], [Subject], [Message]) VALUES (@UserName, @TheDateTime, @Subject, @Message)"
SelectCommand="SELECT * FROM [forum] "
UpdateCommand="UPDATE [forum] SET [UserName] = @UserName, [TheDateTime] = @TheDateTime, [Subject] = @Subject, [Message] = @Message WHERE [Postingid] = @Postingid">
<DeleteParameters>
<asp:Parameter Name="Postingid" Type="Int32" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="UserName" Type="String" />
<asp:Parameter Name="TheDateTime" Type="String" />
<asp:Parameter Name="Subject" Type="String" />
<asp:Parameter Name="Message" Type="String" />
</InsertParameters>
<UpdateParameters>
<asp:Parameter Name="UserName" Type="String" />
<asp:Parameter Name="TheDateTime" Type="String" />
<asp:Parameter Name="Subject" Type="String" />
<asp:Parameter Name="Message" Type="String" />
<asp:Parameter Name="Postingid" Type="Int32" />...........................
View 1 Replies
Nov 11, 2010
I have a details page, which lists the selected Restaurant. I want to be able to add comments at the bottom and display them. I have managed to add comments but only on a different page, i am struggling to get both the datails and the Comment create on the same form. This is what i have:
Controller
[Code]....
View Model
[Code]....
View
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BestRestaurant.ViewModels.RestaurantDetailsViewModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
Details
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>Details</h2>
<fieldset>
<legend>Fields</legend>
<div>R_ID</div>
<div><%: Model.Restaurant.R_ID%></div>
<div>R_Name</div>
<div><%: Model.Restaurant.R_Name %></div>....................
View 1 Replies
Apr 19, 2010
how I would code a comments functionality into a web page. So a user can leave a comment on a page and rate it, out of 5, for instance. How would this look in terms of C Sharp??
View 1 Replies
Jan 24, 2011
I'm trying to get the facebook comments plugin working on my aspx page..but it is not appearing on the page.
I am using the Facebook.NET api from codeplex for authorization. I inserted the code that was generated from the Facebook Comments plugin page...
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js#appId={MyApp's ID}&xfbml=1"></script>
<div>
<fb:comments numposts="15" width="425" publish_feed="true"></fb:comments>
</div>
I can see that the script is retrieved by inspecting the resulting html code in firebug...but can't figure out why the plugin is not being rendered...
View 1 Replies
Apr 3, 2010
i placed an image control in my aspx page and asssigned an url to it,but the thing gets worse,that image is not displaying in browser.
View 3 Replies
Apr 11, 2010
I have a datalist where i am displaying an image using the following:
<asp:Image ID="prodimage"
Width="200" Height="150"
ImageUrl='<%# (DataBinder.Eval(Container.DataItem, "vcimagelocation")) %>'
Runat="server"
CssClass="aspImage"/>
but i want to do the following as i am implementing the zoom functionality. How have another field in my database which is vcimagelocationsmall which will go in img src. But how can i do the following in .net using my image locations?
<a href="demoimg/kawasakigreen.jpg" class="jqzoom" style="" title="Kawasaki Green" name="demo1"><img src="demoimg/kawasakigreen_small.jpg" title="Kawasaki Green" style="border: 1px solid #666;"></a>cheerstj
View 2 Replies
Dec 9, 2010
I had bad problem I had table in database which display images for products the data type of model image VarBinary(Max) when I published new web site and tested the pages on sararie,firefox,IE8 the image in some of images appeared with small size from the original on image size
View 2 Replies
Jan 4, 2011
write this post in the wrong section, if I do please don't hessitate to tell me.Now to my problem. I've been searching the internet for a way to display my images from my server to my asp.net website.The way I have it in my server (local) is that I have stored all the links to the images in the server (The images are on some other websites).Now my question is:How can i display the images on my website in asp.net? Is it even possible to display the images through a link or do i have to store the whole image in my database?If someone has some tips or links to other websites that go through I am using C# if someone is wondering.
View 4 Replies
Dec 22, 2010
my website generates a bunch of images on the server side which I like to display dynamically as a table. For this I have created a function called "CreateDynamicTable". The code can be found here [URL]
Basically I have a bunch of threads that generate Bitmaps which are all saved inside the Application State. All images are very small and the number of images is also pretty small. My question is what would be the easiest way to display the images on the Client side.
I have tried to save all Bitmaps as JPEGs which are then linked with a System.Web.UI.WebControls.Image inside a table cell. Unfortunately no images are displayed inside the browser.
View 6 Replies
Jul 7, 2010
I have created a simple ASP.NET Website in Visual Studio 2010. I have got a Default.aspx page that contains an image. When the image is located in the Images folder it displays perfectly. When I move the image to another folder, or a sub-folder of the Images folder, it still displays in the Designer, but not in Internet Explorer. In IE, it shows nothing. When I view the source in IE the image tag is there, but nothing is displayed. I navigate to the root folder of the site (which I can do on the dev Web server), go into the Images folder, then go to the image - it displays perfectly. But when I navigate to another folder, or a sub-folder in Images, and try to go to the image, it does not display. I opened the page in google chrome, opened the dev tools, and saw that the image was there, but it was 1x1 pixel and 43 bytes, which doesn't make sense because the image is 38KB.
Code of Default.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
View 16 Replies
Jan 10, 2011
In my application, in a single page i need to display small images(say some 10, i.e category wise) and if the user selects any one image then it needs to be maximized (like photo album). How I need to do this. Pls any Idea. maximized image will be displayed in the same page or another new page?
View 2 Replies
Apr 27, 2010
I'am developing a commercial website with asp.net 2.0 and sql server 2005, in which i want to display 5 images as a scroll according to the numbers below in which number 1 consists of first image 2 consists of second image and so on it automatically scrolls and changes
similar to the example as in website [URL]
View 3 Replies
Jan 28, 2011
I am trying to change the Impage at certain time interval(5 images),its working fine in my system when i launched in windows server2008-IIS7.5 it is showing only one image other 4 are not displaying, i have navigated the images in root site folder but it is showing only one image other images are not.
[Code]....
Protected Sub gettickvalue(ByVal sender As Object, ByVal e As EventArgs)
Dim RandomNumber As New Random()
Dim n As Integer = RandomNumber.[Next](1, 5)
imgBanner.ImageUrl = System.[String].Concat("/images/pcb", n.ToString(), ".jpg")
End Sub
View 4 Replies
Aug 30, 2010
I have a theme set on my site, in the
App_Themes
HWEnergy
HWEnergy.css
[Code]....
this will display the image in development, however when I deploy my site the images arent displayed
I have tried
background-image:url("~/Resources/bg_content.jpg");
this doesnt seem to work in either development or deployment
View 3 Replies
Apr 26, 2010
why my images are not displaying/loading when i run ASP.net application with IP Address on server 2003.
View 4 Replies
Apr 27, 2010
I'am developing a commercial website with asp.net 2.0 and sql server 2005,in which i want to display 5 images as a slide according to the numbers below in which number 1 consists of first image 2 consists of second image and so on it automatically slide and changes similar to the example as in website http://embassy-travels.com/
View 1 Replies
Dec 12, 2010
I am trying to create a comments page for users to review and comment on an article. I have 2 buttons on each comments posted by users; "Like" and "Don't Like". I am stuck with how to track which user voted already for a given comment. I am thinking of two options and would like to know if they are they way to go or is there a better solution.
Option 1: I have created a table in my database with stores, the comment id, the userid of the user who rated it and the value "like" or "don't like". So each time I have to query my table to find out if this user indeed vote for a given comment. The table unfortunately grows exponentially!!
Option 2: I store the commentid, userid, and "like" or "don't like" value in a cookie on the client's machine. I read the cookie and find out if the user has already voted on a comment. This is proving to be VERY quirky with cookie expiration, growing cookie size and also multiple users on the same machine.
In either way, my test case of ~1500 users, and 2 Million comments, this is getting to be HEAVY on both methods. Is there anything better?
View 3 Replies
Jun 2, 2010
i created a crystal report in my project . that is report worked fine if i run in debug mode(F5).then i created a virtual directry "myweb". if i run it from the browser like "localhost/myweb".. Data is displaying properly.but crystal report header images are not displaying. and i am not able to export & print.i have "aspnet_client" in www root folder. crystal report images and hava script files are exists in below path
C:WINDOWSMicrosoft.NETFrameworkv2.0.50727ASP.NETClientFilesCrystalReportWebFormViewer3
View 3 Replies