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 =...
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...
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)...
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.
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.
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...
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"...
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...
...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 includes the link. How do i get just...
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""...
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
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...
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">...
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...
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"...
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.
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.