User Profile

Collapse

Profile Sidebar

Collapse
krille
krille
Last Activity: Mar 31 '08, 04:46 PM
Joined: Feb 4 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • krille
    replied to Render images "on the fly" from html
    in .NET
    Do you have the name of that control?...
    See more | Go to post

    Leave a comment:


  • krille
    replied to Render images "on the fly" from html
    in .NET
    Read something about the WebBrowser object maby some one know if i can to it with that? "All" I need is an screenshoot from a webpage...
    See more | Go to post

    Leave a comment:


  • krille
    started a topic Render images "on the fly" from html
    in .NET

    Render images "on the fly" from html

    I have a problem....

    I need to send a graph via email from an asp.net (c#) web app. My Graph is buildt by an <ul> and css. When I mail this created HTML it doesnt show the right way in outlook but works fine in thunderbird. I guess that outlook isnt that good with rendering the html and css. I dont want to build my graph with tabels so is there any way to make an image of my graph and use it as an attachment.

    To...
    See more | Go to post

  • krille
    replied to Dropdown list in .Net
    in .NET
    I suggest you take a look at the .Net AJAX lib
    See more | Go to post

    Leave a comment:


  • krille
    replied to convert system date in dd/MMM/yyyy format
    in .NET
    Hmmm dont really get what you want to do so im guessing you want something like this:

    lblDate.Text = System.DateTime .Now.AddMinutes (30).ToString(" dd/MMM/yyyy ");


    Just add "dd/MMM/yyyy" int the ToString to get the wanted format

    GL
    Krille
    See more | Go to post

    Leave a comment:


  • krille
    replied to Delete operation in Datagrid
    in .NET
    And you have tryed rebinding the grid after your delete code?
    See more | Go to post

    Leave a comment:


  • krille
    replied to How to execute a stored procedure in C#
    in .NET
    Have to say that i prefer doing it with an sql statement, like this:

    Code:
    string strSql  = "spPastelConfig @ServerName='"+this.ServerName+"' @dbName='"+this.DatabaseName+"'";
    SqlCommand cmd = new SqlCommand(strSql, cn);
    cn.Open();
    cmd.ExecuteNonQuery();
    just my personal oppinion...
    See more | Go to post

    Leave a comment:


  • krille
    replied to two buttons on an asp.net page
    in .NET
    In your form set the imagebutton as the default button and when return is pressed in a textbox you will call the event of that button...
    Code:
    <form id="form1" runat="server" defaultbutton="Button1">
    Like that.
    See more | Go to post

    Leave a comment:


  • krille
    replied to calling data from database
    in .NET
    Dont understand what you want to do? An database editor?
    See more | Go to post

    Leave a comment:


  • krille
    replied to Delete operation in Datagrid
    in .NET
    I think you have to reload the data in the gridview in the delete event....
    See more | Go to post

    Leave a comment:


  • krille
    started a topic Signed activex control dont load
    in .NET

    Signed activex control dont load

    Hey!

    Im making an activex control in .Net that will print some nametags. Problem is that i need to sign my assembly with a strong name key to bypass some scurity issues with printing so this is what i have done:

    I added a new key to my assemby via the signing tab in propertys (vs2005) after this the activex control dont load in IE anymore....

    Do i need to add something to the object tag in the HTML or...
    See more | Go to post

  • krille
    replied to Error handling in sp in asp.net
    in .NET
    Do a Try Catch around that code that might fail....
    See more | Go to post

    Leave a comment:


  • krille
    replied to how to copy and paste image using c#?
    in .NET
    So true. Go with that since you not gonna use any features of the Bitmap class anyway
    See more | Go to post

    Leave a comment:


  • krille
    replied to how to copy and paste image using c#?
    in .NET
    Since you are using bmImage as file name and concat it to your path you will force it to call it´s ToString() method wich outputs what your file will be named.

    this is your code:
    Code:
    bmImage.Save(AppDomain.CurrentDomain.BaseDirectory   + "..\\..\\Images\\"+bmImage);
    use this insted:
    Code:
    string strFileName= fileDialog.FileName.Substring(fileDialog.FileName.LastIndexOf("\\")
    ...
    See more | Go to post
    Last edited by krille; Feb 4 '08, 04:02 PM. Reason: misstype

    Leave a comment:


  • krille
    replied to help
    in .NET
    To prevent getting index out of range exeption use the following piece of code:

    Code:
     protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            foreach (Control ctrl in e.Item.Controls)
            {
                if (ctrl.ID == "id of linkbutton")
                    ((LinkButton)ctrl).BackColor = System.Drawing.Color.Red;
            }
        }
    ...
    See more | Go to post

    Leave a comment:


  • krille
    replied to Print without showing dialog
    in .NET
    The error i get when trying to print from activex is:
    "Request for the permission of type 'System.Drawing .Printing.Print ingPermission' "
    See more | Go to post

    Leave a comment:


  • krille
    replied to how to copy and paste image using c#?
    in .NET
    Try not to use the StreamWriter insted use the code that i pasted, the method Save() in the Bitmap class
    See more | Go to post

    Leave a comment:


  • krille
    replied to help
    in .NET
    You have to do this in the repeter event called ItemCommand. Get the linkbutton from the repeter control array and set the color of it.

    this should go in the event but with propper index values
    ((LinkButton)Re peater1.Items[index].Controls[index]).BackColor = System.Drawing. Color.Red;

    Good Luck
    Krille
    See more | Go to post

    Leave a comment:


  • krille
    replied to C# - App - SQL parametes questions
    in .NET
    You can use concat for SQL if u make it safe from sql-injections wich isnt that hard... I usally just make an static method in my DB class.

    all you need to do is put ' around string and remove ' inside of string so this will work out:

    " ' " + strInput.Replac e(" ' ","") + " ' " (dont use white space in replace just did that now so you could read it)

    Cheers
    ...
    See more | Go to post

    Leave a comment:


  • krille
    replied to ap .net : gridview
    in .NET
    actually the gridview has a property for this and its named EmptyDataText.S o all you need to do is use that property.

    <asp:GridView ID="MyGrid" EmptyDataText=" No records found" ......

    This is nice to use when you populate a GridView with an search result.

    Good Luck
    /Krille
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...