Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

milpo

@milpo
About
Posts
11
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Want to learn how to develop components for .net eg:Chart components
    M milpo

    Hi, I have some hands on experience in developing .net web applications .Now i am thinking about developing components (Like charting components,HTML to pdf etc) which can be referenced in .net applications. For eg like the one mentioned in http://www.dotnetcharting.com/[^] . I know it will take time and effort to create stuff like that . But i want to the basic steps in developing components like this . Is these are com components? (C++) or can we develop the same in pure .net code? Thanks

    C# csharp c++ html com tutorial

  • Text size problem while writing in an image
    M milpo

    Hi, When a user uploads an image in my image mangement module writen in asp.net and csharp , i need to resize , write some text on top of it and save This is working fine for all sizes of images but for large images i had to increase the font size used in code The below code is working for small images(around 500x600) g.DrawString("test", new System.Drawing.Font("verdana", 14, System.Drawing.FontStyle.Bold),System.Drawing.Brushes.Black, ((thumbNailImg.Width / 2)-5), (thumbNailImg.Height - 20)); But for large images g.DrawString("test", new System.Drawing.Font("verdana", 35, System.Drawing.FontStyle.Bold),System.Drawing.Brushes.Black, ((thumbNailImg.Width / 2)-5), (thumbNailImg.Height - 20)); i need to change the font size to a larger value, otherwise it wont be readable in the image Here is what i am doing 1) Resizing image uploaded to 250x200 2) Adding some text over re-sized image 3) Saving it images sized around 500x600 text is readble but large images i need to change font size I want to make font size fixed and write text on top of that with text in the image readable any idea how to do this complete code listing is shown below String UploadedFile = MyFile.PostedFile.FileName; int ExtractPos = UploadedFile.LastIndexOf("\\") + 1; //to retrieve only Filename from the complete path String UploadedFileName = UploadedFile.Substring(ExtractPos,UploadedFile.Length - ExtractPos); // Display information about posted file. Div is invisible by default FileName.InnerHtml =UploadedFileName; MyContentType.InnerHtml = MyFile.PostedFile.ContentType; ContentLength.InnerHtml = MyFile.PostedFile.ContentLength.ToString(); FileDetails.Visible = true; //div is made visible // Save uploaded file to server at the in the Pics folder MyFile.PostedFile.SaveAs(Request.PhysicalApplicationPath + "images\\" + UploadedFileName ); //thumbnail creation starts //Read in the image filename whose thumbnail has to be created String imageUrl = UploadedFileName; //Read in the width and height int imageHeight = 200; int imageWidth = 250; //You may even specify a standard thumbnail size //int imageWidth = 70; //int imageHeight = 70; if (imageUrl.IndexOf("/") >= 0 || imageUrl.IndexOf("\\") >= 0) { //We found a / or \ Response.End();

    ASP.NET csharp asp-net graphics sysadmin help

  • Page not working properly after file disposition
    M milpo

    Hi, now it is working fine, i just put Response.End() after Response.BinaryWrite(byteArray); and it is working,although i dont know the exact reason why

    ASP.NET help database sysadmin windows-admin xml

  • Page not working properly after file disposition
    M milpo

    Hi, i am using a charting component to generate graphs for which data is dynamically gets bind from db In my page there is an image creation button is there, if a user clicks on that an image download dialogue will be displayed The code i am using for it is MemoryStream mstream = new MemoryStream(); try { Chart1.Save(mstream, ChartImageFormat.Png); byte[] byteArray = mstream.ToArray(); Response.AddHeader("Content-Disposition", "attachment; filename=report.png"); Response.AddHeader("Content-Length", byteArray.Length.ToString()); Response.ContentType = "image/png"; Response.BinaryWrite(byteArray); } catch { } finally { mstream.Flush(); mstream.Close(); } The image downloading works fine, but after image download if i rebind the report again from db the page is taking too long to load, some times page loads partially,some times page gives some xml error, which i will work fine if i dont click image generating button only binds the report. In my local system this works fine, but in staging server(IIS 6.0) it is giving the above problem

    ASP.NET help database sysadmin windows-admin xml

  • problem wid downloading aspx page conatent as excel
    M milpo

    Are u getting data from db that has to be converted to excel then check this link http://www.codeproject.com/KB/custom-controls/Excel_CSV_export_button.aspx[^]

    ASP.NET com help question

  • Ajax update panel with javascript disabled
    M milpo

    hi, i have a requirement in which if the user disables javascript in browser the form submit should work. if javascript is enabled it should use ajax , otherwise postback.For this i am using an update panel in which there are 2 dropdowns,depending on first dropdown selection second dropdown items should populate in a ajax maner if javascript is enabled , otherwise postback. these two dropdowns are inside an update panel if javascript is disabled i am making ScriptManager1.EnablePartialRendering property to be false for full page postback.But it is not working . please help :(

    ASP.NET javascript help announcement

  • Dynamic Dropdown list Event (SelectedIndexChanged() ) is not firing
    M milpo

    hi, web pages are basically stateless. So in asp.net is using view state to maintain state. may be this article will help u to solve your problem http://forums.asp.net/p/974662/1235253.aspx#1235253[^] Regards, Aneesh Kumar

    ASP.NET csharp asp-net

  • Ajax ModalPopUpExtender and IE 6.0 UI Issue
    M milpo

    In the css style instead of specifying width and height in pixel use percentage format Regards, Aneesh Kumar http://www.techiespider.com/[^]

    ASP.NET csharp asp-net design help announcement

  • Run Exe file on page lode
    M milpo

    Hi, If you want to run an exe file , you can use asp.net processinfo class Process p = new Process(); ProcessStartInfo psi = new ProcessStartInfo("cmd.exe"); // this will open command prompt psi.Arguments = " yourexefile.exe parmeter[1] parmeter[1] etc. "; p.StartInfo = psi; p.Start(); or you can use xp_cmdshell present in master database if you are using MS SQL as database to run the exe file:)

    Web Development tools help javascript com sysadmin

  • How to convert an ASPX page to PDF page?
    M milpo

    Hi, Without using any third party controls you can convert .aspx page output to pdf format In the .aspx page put response.contenttype to "application/pdf" , It should be the first line before any lines like @page language=C# or vb :)

    Web Development tutorial question

  • asp and ajax control confuse
    M milpo

    Hi, the controls present with ajax tool kits are mostly control extenders means, it will extend the functionality present in existing asp.net server controls. please check http://asp.net/AJAX/Control-Toolkit/Live/Calendar/Calendar.aspx for more information

    Web Development csharp asp-net question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups