I want to create an Image to show the used space of each user. I explain it in details. Each user can login and can upload its document on the web. I want to calculate that space and want to show the space used i form of Image like attached. I have calculated the space for logged in user but unable to create Image on basis of this calculated space.
I am trying to show an image on Mouseover and hide it on Mouseout. I am successful in mouseover and mouseout but the image is actually taking the space around the text though i have visibility as hidden..The text is surrounded with the space of image but the image is displayed on mouseover. Here is the code:
i'm writing a stored proc and if a field i return is longer then 200 characters, i want to truncate, find the last space, remove any characters after that space, then add some full stopseg:
INSERT INTO @rec(articleid, abstract) SELECT a.id, CASE
I have a website that requires the user to log in to it. Once the user is logged in they can select a report and criteria, click a button which will then create a CSV file on the server in CSVFiles folder and email to the logged in email address. My problem is I am getting a Access Denied when it trys to open a file for out put on the server.
I am taking MSDN's walkthrough on Creating a Web Site with Membership and User Login. I have some free time and am taking a look at some topics I'm not 100% clear on. So this isn't for a live site; just for my own edification. I set up a user in the web site administration tool then another one in the CreateUserWizard control. I was surprised that in the control it let me create the 2nd user with the same email id as the 1st so I was looking around at how to prevent this. I found requiresUniqueEmail="true" that goes in web.config, in this block:
Which I believe would be the solution. Is that right? My problem is what do I set all those other attributes to in the block? All I really want is requiresUniqueEmail but it seems I have to specify a connectionstring also but I don't know what this would be. The website is using ASPNETDB.MDF which got created in App_Data after I ran the administration tool for the first time (I believe). So I need to explicitly define a connectionstring to that DB now that I want to require a unique email?
I want to crop an image at the server side (I am using 'JCrop' and 'ASP.NET 3.5').
There is a case when the user can add an image from external site to an article.I want to anable the user to create a thumbnail from that image and store the result on the server.
I have developed one software in C# and the database used is sql server 2005. I have completed the software but now I want to provide setup in a autorun CD to my customer. I have prepare setup but I am not able to deliver my database along with my .net code. What I want to do is when user will install my project on his computer using the CD I am suppose to provide, it should install SqlServer Enterprise edition and should use this database. It may means that, setup should create database on the user computer.
I have a problem with DataSet.GetXml() in ASP.NET 4.0:
First I populate the dataset with some tables.
Then I run the .GetXml() method on the dataset and some XML is returned. The output of this method is not want I want it to be, however.
The desired result is this:
[code]....
How do I stop this from happening? I mean, how do I stop the cell from being included at all?
In ASP.NET 1.1 the same code is used and the desired output is returned. This means that it is probably some new thing in 4.0 that I have to switch on/off. But what?
i want to display image in my datagrid.....so i added a field named img and set its datatype to nvarcharmy database content is like this:i did this code:
Code: Dim obj As New DataAccess Dim dt As New DataTable dt = obj.getDataTable("Select * from Table1") Dim dr As DataRow For Each dr In dt.Rows dr("img") = MapPath("~img") & dr("img") [code]...
If FileUpload1.HasFile Then Dim emailMessage As System.Net.Mail.MailMessage = New System.Net.Mail.MailMessage emailMessage.From = New System.Net.Mail.MailAddress(System.Configuration.ConfigurationSettings.AppSettings("txt")) emailMessage.To.Add(txtTo.Text.Trim()) emailMessage.Subject = txtSubject.Text.Trim() Dim plainTextView As System.Net.Mail.AlternateView = System.Net.Mail.AlternateView.CreateAlternateViewFromString(txtBody.Text.Trim(), Nothing, "text/plain") Dim htmlView As System.Net.Mail.AlternateView = System.Net.Mail.AlternateView.CreateAlternateViewFromString(txtBody.Text.Trim() + "<img src=cid:HDIImage>", Nothing, "text/html") Dim imageResource As New System.Net.Mail.LinkedResource(FileUpload1.PostedFile.FileName) imageResource.ContentId = "HDIImage" htmlView.LinkedResources.Add(imageResource) emailMessage.AlternateViews.Add(plainTextView) emailMessage.AlternateViews.Add(htmlView) Dim smtpClient As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient Try smtpClient.Send(emailMessage) Catch smtpexc As System.Net.Mail.SmtpException Catch ex As Exception End Try End If
I'm using lightbox [URL] .... to display a 6 images in a ASP.NET repeater looks great and almost does every thing i need.
I have set the .vb to make imagename.visible=false if the imageUrl=""... again works like a charm and I only see images that have a value in the database.
The problem i have is in order to list how many images in each set Lightbox uses an attribute in the HTML Hyperlink tag called 'data-lightbox'.
The problem is that when 3/6 images are uploaded and populated in the database lightbox still says there are 6 in the set even though only 3 are visible.
What i would like to do is in the .vb code when i check to see if the database field for the image is blank is set the data-lightbox value accordingly so visible images get a data-lightbox value only and are therefore added to the set.
I need to show an image and then 4 pointer small images. The user then has the facility to grab each of the pointer images and drop them on the large image.
Is this possible and if so how do I go about getting started or is there and third party controls out there that will do the job.
I need to write a routine which uploads a largish (2-4 meg) jpg photo and shrink it down to a small size. Adobe image ready does what I need but I need to develop it in my web application. Basically I need to reduce the image file size so it is web friendly.
I have a website wrote in asp.net which is dynamic which gets its data from an access database. I want to put some sort of image control on my site and load it with images in code behind. I then want the control to scroll horizontally. I don't have a clue where to start.
I have a div container with an image to the left and a smaller image to the right. My problem is the small image to the right is at the top and I want it to be at the bottom.
Have following sub that displays message. It works fine except for that when message is displayed then it hides any image controls. After click on OK then image controls are being shown again.
Public Sub UserMsgBox1(ByVal Message1 As String, ByVal Message2 As String, ByVal Message3 As String) Dim sb As New StringBuilder() Dim oFormObject As New System.Web.UI.Control Message = Message1.Replace("'", "'") & Message2.Replace("'", "'") & Message3.Replace("'", "'") Message = Message1.Replace(Chr(34), "" & Chr(34)) & Message2.Replace(Chr(34), "" & Chr(34)) & Message3.Replace(Chr(34), "" & Chr(34)) Message = Message1.Replace(vbCrLf, " ") & Message2.Replace(vbCrLf, " ") & Message3.Replace(vbCrLf, " ") Message = "<script type=text/javascript>alert(""" & Message1 & " " & " " & Message2 & " " & " " & Message3 & """)</script>" sb = New StringBuilder() sb.Append(Message) For Each oFormObject In Me.Controls oFormObject.Controls.AddAt(oFormObject.Controls.Count, New LiteralControl(sb.ToString())) Next End Sub
Mater page:
<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" [URL]> <html xmlns=[URL]> <head id="Head1" runat="server"> <title>Job Reporting - Certified Jobs Inquiry</title>..............................
I am using Visual Studio 2008 and SQL Server 2005 as my back-end.I saw this topic is already introduced in StackOverflow but I have different question related to this topic.I just want to directly get the file from my server/hard-disk and save it in the database.
i wanted to store image in sqlserver database image field and i did. But now in some cases i want to store null value in that image field how to do this using file uploader.
I have a program that will update the graph (using zedgraph) every 60 sec. Every update it will reload a new image file, when reloading there always flickering effect. Anyone can advice me to reduce the flickering so that it will look much more smooth than flickering.