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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by raphael232

  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...

Part and Inventory Search

Back
Top