I have a BMP file on the server that I want to display in an ASPX page but it is too large and the download time is too great. I need to convert it, server side, using VB, to PNG format. Can anybody tell me how to do this?
I have a string I need to convert back to a date. I can call .ToString("yyyyMMdd") and get the string i want. My question is how can I convert that back into a date? I'm trying something like the following with no luck.
DateTime d; var formatInfo = new DateTimeFormatInfo {ShortDatePattern = "yyyyMMdd"}; if (DateTime.TryParse(details.DetectionTime.Date, formatInfo, DateTimeStyles.None, out d)) { lit.Text = d.ToShortTimeString(); //would like 07/30/2010 as the text }
I've never used DateTimeFormatInfo before if that isn't obvious. Can someone point me in the right direction. I know I could probably use substring and create a new DateTime(y, m, d) etc... I'm just wondering since c# interpreted .ToString() correctly, if it can't derive a date from the very same string it output.
<%: Html.DropDownListFor(x => x.WillAttend, new[] { new SelectListItem { Text = "Yes, I'll be there", Value = bool.TrueString }, new SelectListItem { Text = "No, I can't come", Value = bool.FalseString } }, "Choose an option") %>
i am trying to convert aspx to pdf but i have one problem and the problem is if any image is there on the page then instead of searching for it in root directory,,,Its searching on hard disk
For ex-image path is in project folder Imagesxyz.png; but its searching as F:ImagesXYZ.png; like so how to make to search in root directory? and giving error message image file not found but if i place an image on the recommended path then its working fine.
i want to check only if the column Active is Yes, then get into the if loop. But it gives me an error "Cannot convert from string to int" for the last condition in if. What do you guys i can do.
if (ds != null && ds.Tables != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0 && ds.Tables[0].Columns[0].ColumnName["Status"] == "Y") { disableloc.DataSource = ds; disableloc.DataBind(); } else { ds = null; disableloc.DataSource = ds; disableloc.DataBind(); The stored procedure is SELECT ML.locationname, rtrim(ML.address) + (CASE WHEN ML.Address2 IS NOT NULL THEN ('' '' + rtrim(ML.Address2)) ELSE '''' END) + '' - ''+ ML.city + '', ''+ ML.state as address, ML.locationid, ML.merchantid, case when ML.active <> ''Y'' then ''Deactive'' else ''Active'' end [Status], (SELECT count(*) as retval FROM merchant_statistics WHERE type = ''merchant'' AND locationID= ML.LocationID AND status = ''clicked'') as stat, '' '' as button,'' '' as blank , dbo.GetCouponCountForLocations(@_merchantid,ML.locationID) couponCount, MP.DomainName, (SELECT Count(*) FROM Promotion WHERE LocationId = ML.locationid AND PostType = 1) AS jobs FROM merchant_location ML , Merchant_Pages MP WHERE MP.LocationID = ML.LocationID AND ML.merchantid = @_merchantid Order By '
What's the easiest way to convert a BMP file to a single page PDF using ASP.net? I'm going to generate the 8.5" x 11" BMP in Flash (which means I can manipulate it to make it as easy as possible), then use a POST to upload it to an ASP page, which will convert it to a PDF and redirect the user to the PDF. I don't want to add any margins or anything else, it will be laid out properly in the BMP for full-bleed.Would it be easier to convert it to PDF in Flash, then upload?
I've just spent the last few days writing a website using Visual Studio 2010, in ASP.NET. I've just gone to publish it to my website, and found ASP.NET is not supported! Apparently ASP is supported though - is the solution to convert from ASP.NET to ASP? Is this possible? Is there a better alternative?I'm not the best programmer in the world (hence my mistake)
I haev an old code for asp, its works fine, but i want it to .net vb now, can someone help me convert it to asp.net 3,5 (4) VB so i can see the new ways to do this now.....as sql source im using Linq today.Im only coding in my sparetime so there is many things im not knowing in this (funny) world.
I have been tasked with sifting through the worst classic asp spaghetti i've ever come across.The script runs a series of recordsets in sequence, getting 1 record at a time. As the record is built it takes the id and passes it to the next loop, which gets data, and passes on the id to the next loop. It then continues in this manner and builds an unordered list, kicking out the required html
I am currently developing a web application that receives data from an on-site database. The database developers have developed some web-services that I am able to call and send/receive data to and from the the database.
When I want to display an image the method returns the image in BLOB format. My question is: what is the best way to convert BLOB to .jpg or .bmp so I can display the image correctly?
i have to read pdf and create html document... for uploaded cv in my site... i can not use any shareware.please can anybody suggest me the best solution for converting pdf to html...or read pdf content using C#site is developed in C#, asp.net 3.5
I have data stored in the database with HTML format, and I want to get the value of this html content with MyReader.getString() after getting the html code I must do the conversion to PDF Format.