I have an aspx page that loads a static graphic and put session strings in it. I used Image1.Save(Server.MapPath("gen_img2.jpg"), ImageFormat.Jpeg), but it's not saved on the server. I thought this was a user permission problem, so I assigned the ASPNET account write permission to the folder, and it still doesn't work. Did I use the wrong account? I use winserver 2003 and IIS 6.
I write the following code but there is an error. I just want to retrive the image which I have save into tha database from the sql server and to display in the picture Box(image)
how to read content information from a saved image in SQL image column. I do not want to read the image and display it I know how to do that, what I am trying to accomplish is read the content of that images already saved in the SQL image field, for instance I have a saved image (.JPG, .GIF, PNG, BMP etc) that contains customer demographic information such as (name,address,phone etc) and also contains sensitive data such as (SSN, DOB etc) I just want to retrieve the demographic information and display it on the screen leaving out the sensitive data.
we save the images in database and read the file to show on web front. The problem is some of the images fails to be shown on the page. but if we right click and choose show image, it is shown again. is it because of database timeout ?
I am able retrieve the image for imagebutton from db on to gridview and perform some events but I am unable to view the complete image i.e, i am able to see only part of the image
I have a coloumn in a database table in which i am storing the candidates photo in a binary format.
now i have to show these photo in a gridview according to the candidates rollno. i am trying to use the imagefield of a gridview control to display the photo but it is not displaying the photo in a grid view
I have two scripts inside my webpage <script type="text/javascript" src="http://somesite/somefile.js"></script> <script type="text/javascript" >somecode('a','1z4j73');</script> This script is generating a visitor map on my web page, now I don't want my user to click on the script and get redirect to that website. How can I restrict that? Can I make a div tag and make all element inside the div tag to read only? I have make sure that this restriction doesn't falls under company rules, they just want their logo under the map. Can I catch this through any event and again redirect the user to the default page? Like when user click the image, I check the URL and if the URL contains that site name I again redirect to the default page.
I have one ogoing thread [URL]. IN addition to this thread I would like to insert image in newly generated word document. My problem here I can give our hosted server path using Img Source property. I want to copy or embed the imaged in the word document.
Let me know what is the best way to do it using asp.net/C#.
I have a hyper link control and I set the NavigateURL and the ImageURL property at runtime. I also need to set the class of the image tag that it generates but I cannot figure out how I can do that. The solution mentioned here [URL] does not work because the image url is hard coded.
I have a dynamically generated image placed inside an update panel. The image is generated with the Generated Image control (see here for more:
[URL]. This is basically a specialised httphandler linked to a normal asp:image, where the image src is generated dynamically. In my case, I use some GDI+ to dynamically generate the image, based on values from a database query.
The problem I have is that the image does not update when the update panel updates. The image does, however, update if I manually reload/refresh the page (i.e., hit F5). Why is is that some code fires during an update panel update, and not other code? And, more importantly, what can I do to make sure the image generation code does fire during the updatepanel update?
i created area "Decoration" for dynamically generating images.
public ActionResult Round(CornerPosition x, CornerPosition y, int radius, string color, int width) { Color c = ColorTranslator.FromHtml(color); Pen pen = new Pen(c, width); MemoryStream s = new MemoryStream(); using (Bitmap bmp = new Bitmap(radius, radius)) using (Graphics g = Graphics.FromImage(bmp)) { g.SmoothingMode = SmoothingMode.HighQuality; g.Clear(Color.Transparent);
when i reference image on the page <img src="/Decoration/Corner/Round/Right/Top/8/Black/1" /> it displayed properly if started in VS 2010 debugger.
but as soon as publish web site image not displayed!
I am generating barcode image dynamically on button click .
The image is display on the asp image control, now I want to save that image in database
string barCode = txt_ID.Text; using (Bitmap bitMap = new Bitmap(barCode.Length * 40, 80)) { using (Graphics graphics = Graphics.FromImage(bitMap)) { Font oFont = new Font("IDAutomationHC39M", 16); PointF point = new PointF(2f, 2f);
am having two textboxes and a label in a gridview control, i am adding a javascript function to the second textbox onblur event attribute and display the result in the label, the function works fine and result is displayed in the label, but when i am saving the grid data into the database, the label is returned 0 or empty, but i am able to see the value , how to overcome this.
i have formview which i populate with some data that coming i store inside class, inside the form view there are two textbox controls that are "hardcoded" inside the FV markup and an ASP Table:
[Code]....
its all work fine, but once i press on the update button inside the formview the page get reloaded with the two "hardcoded" controls that in the markup but all the controls that i added during run-time are no longer there!
i can see them in the form collection but they not visible in the page.
I have a text field into which I'm saving order details, using LINQ to SQL.
Each order may have a different number of columns, depending on the type of order, so I thought I'd just create a single structure to take care of everything, and display details in tab delimited columns.
The text is created properly prior to saving to database:
[Code]....
However, when stored in the database, the spacing is no longer maintained.