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
H

hemant kaushal

@hemant kaushal
About
Posts
92
Topics
46
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Update parent form control status from child form [modified]
    H hemant kaushal

    Hi all, I m trying to create toolbar for IE . In my toolbar i had a button "Sign in" which opens a form which allow user to login. On login suceed i have to remove the sign in button from toolbar and have to show "Sign out" button on toolbar. Thanks in advance.

    modified on Wednesday, December 23, 2009 4:51 AM

    C# announcement

  • Toolbar by .net
    H hemant kaushal

    hi all, I want to know that if I create a toolbar for IE(like google toolbar) or any browser using .net then it is necessary that .net frmaework is installed on client machine. Thanks in advance.

    C# csharp

  • Toolbar for browser
    H hemant kaushal

    Hi all, I have to create plugins toolbar(like google toolbar) for IE,FireFox and Flock But I have no idea where to start for it. I had search on google but not getting any help. Thanks in advance.

    C# help

  • Create toolbr for browser
    H hemant kaushal

    Hi all, I have to create plugins toolbar(like google toolbar) for IE,FireFox and Flock But I have no idea where to start for it. I had search on google but not getting any help. Thanks in advance.

    ASP.NET help

  • Problem with image upload in 2008
    H hemant kaushal

    I m trying to create thumbnail image of uploaded image

          {
                                    image = new byte\[len\];
                                    updFIle.PostedFile.InputStream.Read(image, 0, len);
    
    
    
                                    ImageUtility objImage = new ImageUtility();
                                    timage = objImage.UpdateGalleryphoto(filemime, len, image, 100, 100);                                  
                                   
                                    filename = updFIle.FileName;
                                    BL.clsAdmin obj = new BL.clsAdmin();
                                    //DataTable dt = obj.uploadImage(Request.QueryString\["prop"\].ToString(), image, timage, txtCaption.Text, filename, filemime);
    

    } updateGallery photo is function which generates the thumbnail

    public byte[] UpdateGalleryphoto(String strImageType, int len, byte[] thumbnail, int height,int width)
    {
    byte[] Thumbpic = null;
    try
    {
    int EH = 75; // Max height of thumbnail
    int EW = 100;//= 100; // Max width of thumbnail
    Thumbpic = new byte[len];
    MemoryStream stream = new MemoryStream(thumbnail);
    Bitmap bmp = (Bitmap)System.Drawing.Image.FromStream(stream);
    int w = bmp.Width;
    int h = bmp.Height;
    bool bImage = false;
    // Adjust hegith or width on basic of width or height whichever is greater on same ratio

                if (height >= h && width >= w)
                {
                    return thumbnail;
                }
    
                if (h >height)
                {
                    EW = (EH \* w) / h;
                }
                else
                {
                    EH = (EW \* h) / w;
                }  
                
                Thumbpic = ModifyImage(thumbnail, EW, EH, strImageType, bImage);
               
    
            }
            catch (Exception ex)
            {
                throw ex;
            }
    
            return Thumbpic;
    
        }
    

    above code is working in 2005 but throwing exception in 2008 at line

    Bitmap bmp = (Bitmap)System.Drawing.Image.FromStream(stream);

    ASP.NET graphics help

  • Problem with image upload in 2008
    H hemant kaushal

    MemoryStream stream = new MemoryStream(thumbnail);

                Bitmap bmp = (Bitmap)System.Drawing.Image.FromStream(stream);
    

    i m using above code for image uploading in 2005 and it is working properly but same code is throwing exception "Parameter is not valid." on line

    Bitmap bmp = (Bitmap)System.Drawing.Image.FromStream(stream);

    is there any issue with 2008 or there is some other way in it.

    ASP.NET graphics help

  • how can u insert values in the database
    H hemant kaushal

    insertSQL += "workplace, job, skills"; insertSQL += "VALUES ('"; output of above line will be workplace, job, skillsValues (' so it will give syntax error when executed on database change your code to

    insertSQL += " workplace, job, skills ";
    insertSQL += " VALUES('";

    always remember to add proper spaces between keywords when u are createng query through code.

    ASP.NET csharp help asp-net database sysadmin

  • value pass in textbox in java script
    H hemant kaushal

    in Js controls are accessed by their id using document.getElementById document.getElementById('textbox1').value=c;

    ASP.NET java javascript tools

  • Quering Nested Data in a table
    H hemant kaushal

    Select @parentid=parentid from tablename where projectid=4

    if(@parentid<>0)
    Begin
    WHILE (@PARENTID <> 0 )
    BEGIN

    Select @parentid=parentid from tablename where projectid=@parentid

    if(@parentid is null)
    break
    set @id=@parentid
    End
    End

    You can use these logic to get the parentid, Variable @id will contain your final parentid I had not tested this code so u may have to made some change in this. It may get in infinite loop so i used

    if(@parentid is null)
    break

    Database database help

  • Using asp.net website and its associated class library through visual source safe.
    H hemant kaushal

    Hi Dont add dll to source safe only add classes on source safe and let others to take latest version at their end and than build at their end. We also went through same problem

    ASP.NET csharp asp-net debugging collaboration help

  • Disable save as from File menu
    H hemant kaushal

    Hi, Is there any way to disable Save As.. Menu option on web page ? Got an article related to it but not getting any way to do that http://msdn.microsoft.com/en-us/library/ms814886.aspx[^]

    ASP.NET com question

  • Give Permission foe ActiveX control
    H hemant kaushal

    Hi, In my application i am using ActiveX control(creted by .net2.0) to capture PrintScreen image. when i am using it through http://localhost it gives error Request for the permission of type ‘System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′ failed But when i run same page by using computer name its work i.e. http://computername/Applicationname/xyz.aspx How to give permission for activeX. Thanks in advance.

    COM csharp com security help tutorial

  • Give permision for ActiveX control
    H hemant kaushal

    Hi, In my application i am using ActiveX control(creted by .net2.0) to capture PrintScreen image. when i am using it through http://localhost it gives error Request for the permission of type ‘System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′ failed But when i run same page by using computer name its work i.e. http://computername/Applicationname/xyz.aspx How to give permission for activeX. Thanks in advance.

    ASP.NET csharp com security help tutorial

  • Reading from excel file.
    H hemant kaushal

    Thaks dilip_rollwala, I change the first value to alphanumetic and it works. But I cant create columns of datatable first.

    ASP.NET help database tutorial question

  • Reading from excel file.
    H hemant kaushal

    Hi, In my application I m using excel file to enter the values in database. It is working fine but it is giving a strange error. If in a column let A If we have value "DMIX00008" and "65400004" Then it is reading values like "65400004" but values like "DMIX00008" are coming blank. I think it is reading that column datatype as integer or numeric. But i want that column to display values as they are entered. How to rectify this problem?

    ASP.NET help database tutorial question

  • Convert a VB statement to C#
    H hemant kaushal

    Try this byte[] buffer= null; buffer=new byte[streamObj.length];

    ASP.NET csharp help

  • how to call code behind function in javascript ? [modified]
    H hemant kaushal

    You can use ajax to call server side function by javascript.

    ASP.NET question javascript database sysadmin

  • showing world map
    H hemant kaushal

    you can use google maps. try this link http://www.tomanthony.co.uk/blog/geocoding-uk-postcodes-with-google-map-api[^]

    ASP.NET question

  • Create ftp account by application
    H hemant kaushal

    Hi, In my application I have to give ftp access to site users. Their username and password will be same that they use to access the sites. Is their any way to set their ftp account by application or have to do this manually. Thanks in advance.

    modified on Friday, August 29, 2008 10:04 AM

    ASP.NET

  • Master page is to changed
    H hemant kaushal

    yes u can Page.MasterPageFile = "name of master page"

    ASP.NET
  • Login

  • Don't have an account? Register

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