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'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'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...
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...
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, 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, 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 is an update on my original post, after a little research i have descovered that pass a variable number of parameters into a method/function you use ParamArray, ie:
Public Function UpdateDocument(ByVal title As String, ByVal documentID As Integer, ByVal ParamArray list As Object()) As...
Hi, currently on my site have multiple section areas which are pretty much the same. I'm currently in the process of upgrading from asp to asp.net and feel that i could save time by combining my section areas into a master table. To combat this problem i have come up with the following table...
Hi, for a long time now i've been creating a different table for each section on my site (eg one for news and one for events etc). However i feel this adds alot of repeated work. I'm currently in the prcoess of combining them into a documents table. Here's what i have come up with so far...
Hi, i'm making an attempt at the article at http://aspnet.4guysfromrolla.com/articles/052406-1.aspx. Everything works a treat except that instead of using the datakey (as done in the article) i wish to use a field bounded to the gridview. I have tried doing:
For i As Integer = 0 To...
Hi, can anyone see what is wrong with the following
Protected Sub ImagesList_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataListItemEventArgs) Handles ImagesList.ItemDataBound
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType =...
Hi, i'm trying to create a search page (searching files within a folder) that allows paging. So far i have 2 functions set up:
Public Function GetFiles(ByVal strFolderPath As String, ByVal strSearchBy As String, ByVal intPage As Integer, ByVal intMaximumRows As Integer) As DataTable
Dim...
Hi, i'm trying to create a drop down list of categories that has indenting based on how deep the category is. I have the following code:
Dim Items As New ListItemCollection
For Each Row In Categories
Dim Item As New ListItem
Item.Text = " " & Row.fldCategory
Item.Value =...
Hi, i'm using the GridView1_RowDataBound event handler to color rows under certain circumstances. I have the following code:
If e.Row.RowType = DataControlRowType.DataRow Then
Dim ReviewDate As DateTime = DataBinder.Eval(e.Row.DataItem, "ReviewDate")
...
End If
to get the the ReviewDate...
Hi, i used the objectdatasource to the bind the dropdownlist control to my table adapter successfull, for example:
<asp:DropDownList ID="lstCategoryID" runat="server" DataSourceID="ObjectDataSource1" DataTextField="ID" DataValueField="fldCategory">
</asp:DropDownList>
<asp:ObjectDataSource...
Hi, I want to show a layer within a td tag when you hover over the td tag and hide it when you move out of the td tag. So far I have the following:
<tr>
<td hideLayer('Navigation1');" onclick="showLayer('Navigation1');">Test 1 <div onmouseover="showLayer('Navigation1')" id="Navigation1"...
Hi, i am trying to do custom paging and sorting on my site for the grid view control. So far i have the following:
<asp:TextBox ID="txtSearch" Text="" runat="server"></asp:TextBox>
<asp:Button ID="btnSearch" runat="server" Text="Search" /><br />
<br />
<asp:GridView...
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.