User Profile

Collapse

Profile Sidebar

Collapse
Sakalicek
Sakalicek
Last Activity: Nov 5 '09, 05:05 PM
Joined: Mar 21 '07
Location: Prague, Czech Republic
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Sakalicek
    replied to dropdown on selectedindex changed event
    in .NET
    put here some code.
    show us the PageLoad event or Init.
    See more | Go to post

    Leave a comment:


  • Sakalicek
    replied to Web Service input parameters
    Well, I have found that there is maximum allowed length of input. See this article .

    I have just set this

    <httpRuntime

    maxRequestLengt h="102400"

    />

    into my web.Config and all goes well.

    Zdenek....
    See more | Go to post

    Leave a comment:


  • Sakalicek
    started a topic Web Service input parameters

    Web Service input parameters

    Hello,

    I have following problem.
    I have Web Service and there are few WebMethods. I have generated proxy using WSDL. I call method on Web Service with some object. That object has some properties and one of them is collection of attachments to email. That are some other objects.

    If I call my method with collection of e.g. 5 or 10 attachments, its all ok.
    But I am not able to call it with e.g. 50 attachments....
    See more | Go to post

  • Expect that we have some input parameter string sColumnName.
    So create the query string like this:

    string sQuery = String.Format(" select \"{0}\" from customers;", sColumnName)

    or like this:

    string sQuery = "select \"" + sColumnName + "\" from customers;";


    Is this what you asked?

    Z....
    See more | Go to post

    Leave a comment:


  • Sakalicek
    replied to .NET Windows Service: Credentials
    in .NET
    Hi, I already solved it.
    So I created another Remote provider with channels and network credentials.
    It s now working.
    See more | Go to post

    Leave a comment:


  • Sakalicek
    replied to .NET Windows Service: Credentials
    in .NET
    On the first PC there is installed Windows Service.
    This one calls other Windows Service on the other PC.
    Both PCs are Virtual Machines on Virtual Machine Server.
    So both PCs run under the VMuser account.
    So I think that there cant be any problem with credentials, but there is.

    If I try to call the Windows Service on the second PC from my computer (connected), I get an error with network credentials....
    See more | Go to post

    Leave a comment:


  • Sakalicek
    replied to .NET Windows Service: Credentials
    in .NET
    Yes, that I thought, but isnt there some way how to solve it more "like programmer"?

    I thought something about channels or something like that....
    See more | Go to post

    Leave a comment:


  • Sakalicek
    started a topic .NET Windows Service: Credentials
    in .NET

    .NET Windows Service: Credentials

    Hello.

    I have problem with network credentials on my Windows service.

    I have 2 PCs.
    On the first PC I create controller which calls windows service on the other PC.
    Always I got InvalidCredenti alException when I try to call service.

    Coud you please help me to fix it?
    I have read something about it and also tried something, but it doesnt help much.

    One solution of this...
    See more | Go to post

  • Sakalicek
    replied to Datagrid Header Formatting
    in .NET
    Yeah it will change i know.
    But I need to set another font or size or underline, you know?
    To make the DataGrid Header looks like other grids without sorting....
    See more | Go to post

    Leave a comment:


  • Sakalicek
    replied to Datagrid Header Formatting
    in .NET
    Its strange probably because of sorting.
    If i disable sorting, header text doesnt depend on parameters in CssClass yet.
    Quite strange.
    See more | Go to post

    Leave a comment:


  • Sakalicek
    started a topic Datagrid Header Formatting
    in .NET

    Datagrid Header Formatting

    Hi all.
    I have Datagrid in my aspx page and with simple Header.
    The sorting is enable.

    I have problem with column's headers formatting.
    I specified the CssClass for Header not to have the text underlined.
    Or to have text in specific color and font.

    But it doesnt work. Text is still in other font and color and underlined, no matter what there is in CssClass.



    ...
    See more | Go to post

  • Sakalicek
    replied to Bind Data To Checkboxlist In Gridview
    in .NET
    Was it helpfull or not?
    See more | Go to post

    Leave a comment:


  • Sakalicek
    replied to Bind Data To Checkboxlist In Gridview
    in .NET
    And maybe this wount help.
    Try to join this on some DataGrid method like OnItemCommand.
    Or to TextBox method OnTextChanged or something.
    There should be param DataGridCommand EventArgs e.
    Then you can use something similiar.

    Code:
    ImageButton linkButtonDelete = (ImageButton)e.Item.Cells[3].FindControl("deleteButton");
    
            LinkButton linkbuttonYes = (LinkButton)e.Item.Cells[4].FindControl("deleteYes");
    ...
    See more | Go to post

    Leave a comment:


  • Sakalicek
    replied to Bind Data To Checkboxlist In Gridview
    in .NET
    So if I understand it well, you would like to set checkboxes texts depending on values in textboxes?

    Well you can use something like this:

    // HTML

    ....
    <asp:CheckBox ID="chBox" .... >
    <asp:TextBox ID="txtBox" ... >
    .....

    // end HTML

    DataGrid grid;
    CheckBox checkBox;
    TextBox textBox;

    foreach (GridViewRow...
    See more | Go to post

    Leave a comment:


  • Was it helpfull or what?
    Do you have some other questions? :D
    See more | Go to post

    Leave a comment:


  • Do you perform DataBind() after that?...
    See more | Go to post

    Leave a comment:


  • Well I dont know many abouot DataGrid in Windows forms, but it could be simillar, yes?
    So there would be probably some method to catch doubleClisk on DataGrid row.
    So you may catch some DataGridEvents event.

    Try something like this:

    Item item = (Item) event.Items.Fin dControl("someI D");

    For example if you have TextBox there and want to work with it:

    TextBox tBox =...
    See more | Go to post

    Leave a comment:


  • Well, I have batch file and when I am installing service on other machine, I at first copy all dll and exe for service and als config files to the specified location.
    Than I edit this batch file and run it.
    Its clear now?...
    See more | Go to post

    Leave a comment:


  • Sakalicek
    replied to i need help
    I have also severous windows services with logging.
    For that purpose I am using library log4net.
    I created simple ApplicationEven tHandler service which listens and log events fetched from everywhere in my codes.
    Well, try to find out something about log4net.

    Enjoy.
    See more | Go to post

    Leave a comment:


  • You can try if the file eis opened in exclusive mode.
    Something like this:

    Code:
    try
                            {
                                using (FileStream oStream = File.Open
                                    (
                                    fileName,
                                    FileMode.Open,
                                    FileAccess.Write,
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...