Web Forms :: Creating A Thumbnail.aspx Page That Shrinks Pics Offsite?
May 24, 2010
working on a client's website that has a gallery and uses a thumbnail.aspx page to shrink images on their site for product galleries. However, they want to move the image files to another URL so I need to modify the thumbnail.aspx code to use a networkstream, but I'm not sure exactly how to do this. Could someone point me in the right direction?
I need to post data from my asp.net page to a non-asp.net page that is offsite. How can I do that without redirecting to that page? IE: not using a button's PostBackUrl property.
I have an image control that puts user's photo in it. Once it's loaded, I resize it using the javascript.But the thing is, when the page is loading, the image gets really big, then shrinks down being called by the javascript. Is there a way for me to pre-load the image before displaying it? I do'nt want to set the image control's width and height to fixed pixels at this point.
So I created a site optimized to be rendered in a mobile device. I set the Width Site is looking good on Blackberry of my <DIV> tags to be about 300px, for the most part, to account for the reduced screen size. However, the IPhone Safari browser renders this to the screen extremely small, and I can only assume that it's automatically reducing the size of the html accordingly to fit the device. Again, Blackberry does not do this.
I want to find the distance between the two points on a map. like.. the user clicks on one point and then on other location.., it should draw a line and should calculate the distance between the two points showing in a lable text..
I want to display a aspx page dynamically by reading the function from class1.cs file.
In need to implement the code in .cs file i.e in Bussiness logic layer.In a class file i need create the instance for each webcontrol but i struck up at a point that where the instance of the webcontrol to be added and also how to use the function of BLL in aspx.cs file.
Am crating instance like this,
Textbox txt=new Textbox(); panel.add(txt);
But i want to implement thesame in BLL instead of adding object to panel in aspx.cs i want to call it from BLL.Appreciate your response.
Is it possible to create a popup window using an Aspx page and Java Script? I thought I saw this done once, but I don't recall how it was done. Here is really what I want to accomplish
So here is the pseudo code of what I would like to do.
1. Have an Aspx web page named default.aspx with a button on the web page named "Press Me"
2. Have an Aspx web page named popup.aspx that is 1/4 the size of the web page in step 1 and has a texbox control named txtPersonsName. And a submit button.
3. When the button on default.aspx is pressed, the web form in step 2 popup.aspx is displayed giving the impression of a popup window. A person enters their name on popup.aspx and then presses the submit button. The popup closes and the code behind of default.aspx captures the name entered in popup.aspx
Thougths: I think popup.aspx can be displayed using Java Script from the code behind of default.aspx. Or from within default.aspx.
I need to be able to write something like this into a textarea "Hello user, Welcome to a random place. but then when I grab the text for use, I want to grab the HTML so it would be
"Hello user,<br/>Welcome to a random place. We hope you enjoy your stay! </br></br>From the team."
I dont really want to go the trouble of getting a 3rd party component with all the bells and whistles because my requirment is simple, and the emails will have no formatting. (apart from the line breaks)
I also do not want to use an server control because this part of my site is strictly JQuery AJAX and only uses static code behind methods for the AJAX calls.
I have a ModalPopupExtender control inside accordin control, users can add images, that I sotre the path in database(sql server) and the actual image in physical address inside web server,I automatically resize the image to thumbnail size in C#, when users first connect to the site,the see the thubmnail version of the image,which is much faster to download,and by clicking the thubnail, the hidden asp:pnael is shown with imzge in full size, I use javascript to unhide the panel and also change the image source to actual image,everything works fine in IE, but in Firefox and Chrome, the first time user clicks on thumbnail can not see the full size image,only after couple of time, they see the full size image? what could be the problem?
I am using asp.net ,C# what is the best way to achieve this?
Have a look at this link.Web pageIf I want to have this kind of speed in my page load which consists of many thumbnail images. It that image is stored in database or in file system.What measures to take to achive this kind of speed like indexing, denormalization, caching and what else?
i m using photo gallery in a website but pics takes much time to be view than any other sites like facebook or orkut. hw can i overcome this problem. i m resizing the image on file upload btn. you can check the url www.sanskarbhartipublicschool.com/photogallery
i have pics in my website in differnt pages with width and height set to 320*320 px how can change this images in admin section to be replace by new one and with the same size. i m using file concept of storing the images
i,m workign on mailing project , and in a user table i added the UserImage feild in the user table and i uploaded the images to the database as bytes but it make the size of the database too large so i wanna upload images for users to a folders but link them to database table to use them when i make queries to retrive user image or user data like (Request.Querystring["ID"])
I need to include an offsite javascript file on my page, however I don't want it to be able to affect the performance of my site, in case the server where the javascript is on is down or not responding.
What I'd like to know, is if it's posible with javascript to make some sort of wrapper function to ensure that the page where the offsite javascript is hosted is responding within an acceptable timeframe.
I've considered adding the "defer" attribute to where I include the javascript, but that would as far as I know still leave the site hanging after the rest of the page is loaded.
If it's not possible to do in javascript are there any good alternatives?
I need to create aspx pages on the fly or at the runtime.I read that creating a template page and posting content to the page would be a solution, in a few posts in the forum. Can i get information on this method.
I have a few websites that should access a central location (folder) on a different domain that stores pics. In previous version of this system I stored each pics folder under the same domain and I could access the files with FileInfo
Dim fi As FileInfo = New FileInfo(MapPath(img.ImageUrl)) How can I ger the file info for a file in a different domain ?
getting this error message : Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 7: Line 8: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Line 9: UserIdValue.Text = Membership.GetUser().ProviderUserKey.ToString() Line 10: cannotUploadImageMessage.Visible = False Line 11: End Sub
Am building an app in VB.NET | ASP.NET 4 | SQL 2008 R2I am building an site that will potentially have upto 15, 000 pics for now. More added each weekWould it be best to insert those pics (from a few kb to 2.5 Mb per pic) into the database or have them in a directory with links to those pics in the database?The site will have pages of pics which the user can browse or click on taking them to another page with info. Basically like a photo album
in my new c#.net 3.5 ASP Website, user have the possibility to upload a picture.What solution is the best for saving this picture? Should I save it on my server in a folder and save the path in the database, or should I save the picture in the database?
I need the file "default.aspx.designer.cs" which is not auto generating even for the first time when I am trying to create a ASP.NET web application using C# Everyone says delete the default.aspx.designer.cs code and then click on "convert to web application" but I can neither find the file default.aspx.designer.cs nor the option "convert to web application" How to auto generate a designer.cs file in Visual Studio 2005 using c# ASP.NET web application?