Ive been looking at possibly working with WCF instead of ASMX, anyone have a preference from personal experience?
not sure if this was for .net forum or webdev
not sure if this was for .net forum or webdev
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
Protected Sub gvSpread_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles gvSpread.RowDataBound
Select Case e.Row.RowType
Case DataControlRowType.DataRow
Dim txtTicker As TextBox = _
TryCast(e.Row.Cells(0).FindControl("TextBox1"), TextBox)
txtTicker.Attributes.Add("onblur", "validate();")
txtTicker.Attributes.Add("autocomplete", "off")
txtTickers.Add(txtTicker.UniqueID)
AddHandler txtTicker.TextChanged, AddressOf txtTicker_Changed
Dim txtValue As TextBox = TryCast(e.Row.Cells(1).FindControl("TextBox2"), TextBox)
txtValue.Text = FormatCurrency(txtValue.Text, 2)
txtValue.Attributes.Add("onKeyUp", "totalfields();")
AddHandler txtValue.TextChanged, AddressOf txtTicker_Changed
ValueTotal += Val(txtValue.Text)
function notifyDuplicates() {
var el = document.getElementsByTagName('input');
for (counter1 = 0; counter1 < el.length; counter1++) {
var firstEl = el[counter1];
if ((firstEl.type == 'text') && (firstEl.id.endsWith('TextBox1'))) {
for (counter2 = 0; counter2 < el.length; counter2++) {
var secondEl = el[counter2];
firstEl.style.background = ((firstEl.value == secondEl.value) && (counter1!=counter2))?'#FF8684':'#FFFFFF';
secondEl.style.background = ((firstEl.value == secondEl.value) && (counter2!=counter1))?'#FF8684':'#FFFFFF';
}
}
}
}
Column1 Column2
Value1 Value2
Value1 Value3
Dim dtTempSnapshot As DataTable = dsTempSnapshot.Tables(0)
Dim dsExisting As DataSet = UserInfo.Portfolios.Snapshot.Details(PortfolioID, SnapshotDate)
Dim dtExisiting As DataTable = dsExisting.Tables(0)
For Each dRow As DataRow In dtTempSnapshot.Rows
Dim drFound() As DataRow = dtExisiting.Select("Ticker='" & dRow("Ticker") & "'")
Next
function totalfields() {
var function totalfields() {
var total = 0;
var elements = document.getElementsByTagName("input"); // make a collection of all input elements
for (var i = 0; i < elements.length; i++)
if (elements[i].type == "text") {
var txtval = elements[i].value;
txtval = txtval.replace(/[^\d\.-]/g, '');
total += txtval;
}
alert(total);
}
<asp:DropDownList ID="_RiskTolerance" runat="server"
Width="150px"></asp:DropDownList>
Private Sub FillCombobox(ByVal ComboControl As DropDownList, ByVal dsCombo As DataSet)
Dim myItem As ListItem
For Each row As DataRow In dsCombo.Tables(0).Rows
myItem = New ListItem(row(1), row(0))
ComboControl.Items.Add(myItem)
Next
End Sub
<select name="ctl00$ContentPlaceHolder1$_RiskTolerance" id="ctl00_ContentPlaceHolder1__RiskTolerance" style="width: 150px;">
<option selected="selected" value="1">High Risk</option>
<option value="2">Average Risk</option>
<option value="3">Low Risk</option>
<option value="4">No Risk</option>
</select>
For Each att As objValue In SearchSet Step 2
Next
For Each att As objValue In SearchSet
Next
For Counter as Integer = lbound(searchset) to ubound(searchset) step 2
Next
<add name="SubscriptionsConnectionString"
connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Subscriptions.mdf;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>testtitle>
<script type="text/javascript" src="inc/yumjava.js"></script>
<script language="JavaScript" type="text/javascript">
alert(CurrentDateTime);
</script>
</head>
<body>
</body>
</html>
function CurrentDate(){
var currentTime = new Date();
var month = currentTime.getMonth() + 1;
var day = currentTime.getDate();
var year = currentTime.getFullYear();
var current = month + "/" + day + "/" + year;
return current;
}
function CurrentTime(){
var currentTime = new Date();
var hours = currentTime.getHours();
var minutes = currentTime.getMinutes();
if (minutes < 10){
minutes = "0" + minutes;}
var current = hours + ":" + minutes + " ";
if(hours > 11){
current = current + "PM";
} else {
current = current + "AM";
return current;
}
}
function CurrentDateTime(){
var current = CurrentDate;
current = current + CurrentTime;
return current;
}
Public Sub Listen()
Try
_Socket = New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
_Socket.Listen(1)
_Socket.BeginAccept(AddressOf ConnectionRequest, Nothing)
Catch ex As Exception
RaiseEvent SocketError(ex)
End Try
End Sub
Private Sub ConnectionRequest()
_Socket.Accept()
_Socket.BeginReceive(_Buffer, SocketFlags.None, AddressOf DataFromRemoteClient, Nothing)
End Sub
Private Sub DataFromRemoteClient()
_Socket.Receive(_Buffer)
RaiseEvent DataRecieved(_Buffer.ToString)
End Sub
Page created in 0.046 seconds with 14 queries.