Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. raphael232

    Payment provider example in php (needed in asp)

    Hi, a recent client has requested to use a payment provider i have not used before. I have checked their documentation but all their examples are in php. Here is the code in their example: $poststring = "<?xml version='1.0' encoding='UTF-8'?>...................."; $fp =...
  2. raphael232

    Problem getting 3 colum fluid layout to work in ie6, ie7 and ff

    Hi, i've always used http://webhost.bridgew.edu/etribou/layouts/skidoo_too/index.html as a template when making my sites. However i've always had the problem that the middle column border widths would get overlapped by the left and right columns. I've spent the last few hours trying to...
  3. raphael232

    Binding to DropDownList problems

    Hi, i'm having problems binding to the DropDownList control. Here's my code: <asp:DropDownList ID="lstCategoryID" SelectedValue='<%# Eval("CategoryID") %>' DataTextField="Text" DataValueField="Value" runat="server"> </asp:DropDownList> and here's my code behind (Page_Load event handler)...
  4. raphael232

    equivalent to php readfile?

    Hi, i've used: Set objXML = CreateObject("MSXML2.ServerXMLHTTP") objXML.open "GET", "http://someurl.com", false objXML.send strContent = objXML.responseText Set objXML = nothing to read the contents of a page into a variable. Hope this helps.
  5. raphael232

    Problem with null dates

    Hi problem solved. Nullable types was the answer.
  6. raphael232

    Problem with null dates

    I simplified the above bit of code but i actually pass the hour minute and second as strings from DropDownList controls aswell and then parse the date.
  7. raphael232

    Problem with null dates

    Hi, i'm having trouble dealing with null dates. For example first i pass my date as a string to my business layer. Then before i do my update i do the following to my date: If inputDate <> "" Then inputDate = DateTime.Parse(inputDate) Else inputDate = Nothing I was hoping if the string...
  8. raphael232

    Two Way DataBinding to DropDownList

    Hi i found a solution to the above problem by using the SelectedValue property but now when i run my page i get: Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control. Here the code: <asp:DropDownList ID="lstCategoryID"...
  9. raphael232

    Two Way DataBinding to DropDownList

    Hi i'm playing around with the formview control to call my insert method of my business object. I notice that you put <asp:TextBox ID="txtTitle" Text='<%# Bind("Title") %>' runat="server"></asp:TextBox> to get the Title from a TextBox control but what do i bind to other controls such as...
  10. raphael232

    Regular expression problem

    Hi cheers worked a treat.
  11. raphael232

    Regular expression problem

    Hi, how do you return the text between a link using a regular expression i tried: Set objRegExp = New RegExp objRegExp.IgnoreCase = True objRegExp.Global = True objRegExp.Pattern = "<a(.*?)>(.*?)</a>" Set objMatches = objRegExp.Execute(strContent) strText = objMatches(0).value but it also...
  12. raphael232

    Dynamically adding controls to form based on type

    A futher follow up to say i have solved the above problem by doing: Sub InstantiateIn(ByVal container As Control) _ Implements ITemplate.InstantiateIn Dim lc As New Literal() Dim txtControl As New TextBox() Dim lc2 As New Literal() lc.Text = "<tr><td colspan=""2""...
  13. raphael232

    Dynamically adding controls to form based on type

    Just discovered a further problem. Now i'm trying to add a textbox (as an example but could be anything depending on my attributetype) control within the literal. One small problem, where do i start to do this? Appreciate your help once more. Thanks
  14. raphael232

    Dynamically adding controls to form based on type

    Hi cheers i found the tutorial relatively easy to follow. One thing i did not like though was having to add the event handler to display the data from the dataset. Here's an example of what i did: Sub InstantiateIn(ByVal container As Control) _ Implements ITemplate.InstantiateIn Dim...
  15. raphael232

    Dynamically adding controls to form based on type

    Hi i am trying to create a dynamic web form which displays controls based on information stored in the database. I have a formview control on my page and a repeater within that: <asp:FormView ID="FormView1" runat="server" DataSourceID="ObjectDataSource1" DefaultMode="Insert">...
  16. raphael232

    Update control within formview insertitemtemplate

    Hi cheers i can get both methods working but i need to pass a variable called categoryID in the getCategoriesList above, ie: <%# Utilities.GetCategoriesList(Nothing, categoryID, "") %> but when i run this i get sectionID is not declared. How do i pass this variable to the function from my...
  17. raphael232

    Update control within formview insertitemtemplate

    Hi, i have the following formview: <asp:FormView ID="FormView1" runat="server" DataSourceID="ObjectDataSource1" DefaultMode="Insert"> <InsertItemTemplate> Title: <asp:TextBox ID="txtTitle" runat="server"></asp:TextBox> Category: <asp:DropDownList ID="lstCategoryID"...
  18. raphael232

    Change property by variable

    Hi cheers for replying but you've lost me a bit. I tried googling system.reflection but i don't understand it. Forgot to mention that i'm abit of newbie when it comes to asp.net.
  19. raphael232

    Change property by variable

    Hi, i want to change a property of an object by a variable name ie say i have: 'usual way of doing things document.title = "Document Title" document.description = "Description of document" and i have ' what i need to do Dim column As String = "keywords" document.column = "Keywords of...

Part and Inventory Search

Back
Top