User Profile

Collapse

Profile Sidebar

Collapse
pisgasys
pisgasys
Last Activity: Oct 8 '09, 05:34 AM
Joined: May 26 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How to send xml file as a parameter to SQL stored procedure from Access VBA form?

    Hi,

    I need to send xml file as a parameter to SQL stored procedure from Access VBA form..

    I wrote code that handle sending parameters from a textbox input.. but if I need to send xml file, what I have to do?
    To add OpenFileDialog in order to choose the xml file, then parse it and make it as one string then pass it to the sp (The SQL stored procedure gets "XML" parameter and not a varchar(max)). Or is...
    See more | Go to post

  • pisgasys
    replied to Dynamic web controls
    in .NET
    Soluation

    That's what I did, and it works:

    Code:
    protected void Page_PreLoad(object sender, EventArgs e)
            {
                SqlConnection conn = null;
                SqlCommand cmd = null;
                SqlDataReader rdr = null;
                int i = 0;
    
                conString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
    ...
    See more | Go to post

    Leave a comment:


  • pisgasys
    replied to Dynamic web controls
    in .NET
    Hi,
    The number of my controls is changing dynamically according to association mechanism (I'm taking part of developing of system that simulating XFactory if you know it) .
    Those controls can be TextBoxes or CheckBoxes or ComboBoxes .. according to a controlType field stored in the db.
    So what I'm trying to do is:

    1) Fill a form with new production order for a factory (Line, CatalogID,...)
    2) Retrieve the...
    See more | Go to post

    Leave a comment:


  • pisgasys
    replied to Dynamic web controls
    in .NET
    When I put my code of building dynamic controls inside page_load it worked fine, but I need to run that code from another function, so I tried:
    Code:
    public partial class PO_Insert : System.Web.UI.Page
        {
     
            public TextBox ctrl1 = null;
            public TableRow trRow = null;
            public TableCell tcCell = null;
    but still have a problem!
    See more | Go to post
    Last edited by Frinavale; May 27 '09, 01:02 PM. Reason: Added code tags. Please post code in [code] [/code] tags.

    Leave a comment:


  • pisgasys
    replied to Dynamic web controls
    in .NET
    Hi again,
    Well the problem is here:
    Code:
    TextBox txtCtl = (TextBox)UpdatePanel1.FindControl(String.format("tagCtrl{0}", i));
    string v1 = txtCtl.Text.ToString();
    The controls are created, but I'm not succeeding to get there values, If I'm trying to retrieve:
    Code:
     UpdatePanel1.FindControl(String.format("tagCtrl{0}", i)).ID
    I'm getting null!

    I tried declaring...
    See more | Go to post
    Last edited by Frinavale; May 27 '09, 01:02 PM. Reason: Added code tags. Please post code in [code] [/code] tags.

    Leave a comment:


  • pisgasys
    started a topic Dynamic web controls
    in .NET

    Dynamic web controls

    Hi,

    in my aspx page I have somting like that:
    Code:
    <asp:Content ID="Content1" ContentPlaceHolderID="Body" Runat="Server">
        <asp:UpdatePanel ID="UpdatePanel1" ChildrenAsTriggers="true" UpdateMode="Conditional" runat="server" >
            <ContentTemplate>
                <asp:Panel ID="Panel1" runat="server">
    ...
    See more | Go to post
    Last edited by PRR; May 26 '09, 10:00 AM. Reason: Code tags addded... Please post code in [code] [/code] tags.
No activity results to display
Show More
Working...