
flann
Avatar/Signature-
Posts
33 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by flann
-
Now i'm trying to put the values of the arrays into different arrays for the second call. All the arrays are getting zero'd out after the function. Dim BalanceArrayPlus() As Double = BalanceArray Dim MinMoArrayPlus() As Double = MinMoArray Dim PctArrayPlus() As Double = PctArray Dim PriorityArrayPlus() As Double = PriorityArray lblQualify.Text = CalADPSPayOffDate(CreditorNameArray, BalanceArray, MinMoArray, PctArray, PriorityArray, numRecs, accMargin, totalIncome) lblQualify.Text = Format(lblQualify.Text, "fixed") lblPlusQualify.Text = CalADPSPlusPayOffDate(CreditorNameArray, BalanceArrayPlus, MinMoArrayPlus, PctArrayPlus, PriorityArrayPlus, numRecs, curADPSPlusAccMargin, totalIncome) lblPlusQualify.Text = Format(lblPlusQualify.Text, "fixed")
-
That's it, it changed the values. Thank you
-
Yes the second one always returns 0, and yes I'm passing it the correct parameters. Function CalADPSPlusPayOffDate(ByVal CreditorName() As String, ByVal Balances() As Double, ByVal MinPymt() As Double, ByVal Pct() As Double, ByVal Priority() As Double, ByVal NumRecs As Integer, ByVal StartAccMargin As Double, ByVal curCombIncome As Double) As String This is the same for both of them.
-
I added a watch to the two calls, and this is what they both say. Argument not specified for parameter 'CreditorName' of 'Public Funtion CalADPSPayOffDate...... What does this mean?
-
When I debug I don't get any errors, and the first call has a value, the second call is 0. That is what happens no matter which one comes first, its always the first one to get the value and the second doesn't. I'm stumped :(
-
I'm trying to use functions, I'm still pretty new to this. I have two function calls going to two different functions. No matter which one I call first, only the first one will work, not the second. I've switched them around and its always which ever one I put first that works. Any thoughts? lblQualify.Text = CalADPSPayOffDate(CreditorNameArray, BalanceArray, MinMoArray, PctArray, PriorityArray, numRecs, accMargin, totalIncome) lblQualify.Text = Format(lblQualify.Text, "fixed") lblPlusQualify.Text = CalADPSPlusPayOffDate(CreditorNameArray, BalanceArray, MinMoArray, PctArray, PriorityArray, numRecs, curADPSPlusAccMargin, totalIncome) lblPlusQualify.Text = Format(lblPlusQualify.Text, "fixed")
-
I'm trying to create a dynamic dropdownlist, not in a datagrid, that populates the list based off of the current month, and then the previous 11 months. I've got it working to the point that it does populate the ddl, but then it is refilling it. Does anybody know of a good resource that shows how to do this?
-
I got it, I need to get rid of the .tostring() part. Thanks anyway ;)
-
I'm trying to use the Request.UrlReferrer.ToString() to get the referrer. It works but if you go straight to the page, meaning Request.UrlReferrer.ToString() is nothing, I get an Object instance not set to an instance of an object error. I tried.. If Not IsPostBack Then If Not Request.UrlReferrer.ToString() Is Nothing Then referrer = Request.UrlReferrer.ToString() End If End If I still got the same error. Any ideas?
-
What do you mean? I use the same type of update statement on other forms, and they work fine.
-
I'm trying to update a sql database field with a string value. I'm getting a wierd error saying "Invalid column name 'NO'". The field that I'm trying to update is just simply the value out of a dropdownlist, and the two values are 'yes' and 'no'. Here is my update statement. Dim sqlcommand As New SqlCommand Dim judgement As String = ddlLegal.SelectedValue sqlcommand.Connection = connPayables sqlcommand.CommandText = "UPDATE ClientInfo SET OutJudgements = " & judgement & " WHERE LeadID = " & intLeadid connPayables.Open() sqlcommand.ExecuteNonQuery() connPayables.Close() I know that the variable "judgement" is holding the correct value, what could be causeing my error?
-
I'm trying to bind a ddl with a database field that is a Yes or No field. I can't seem to figure out how to make it work. In design view, I selected the field from the databindings, and then in code view put the normal... Me.SqlDataAdapter1.SelectCommand.Parameters("@LeadID").Value() = intLeadid Me.SqlDataAdapter1.Fill(DsLegal1.ClientInfo) Me.DataBind() My dropdownlist isn't showing me anything, shouldn't it automatically populate the dropdownlist?
-
I have my datagrid working now, but I'm trying to add a dropdownlist with just a few items in it to my editable datagrid. I've searched online, and what I found seems very involved, is there an easy way?
-
<asp:datagrid id=DataGrid1 runat="server" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" BackColor="White" CellPadding="3" GridLines="Vertical" DataSource="<%# DsNegotiable1 %>" AutoGenerateColumns="False" DataMember="UnsecuredDebts"> <SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#008A8C"></SelectedItemStyle> <AlternatingItemStyle BackColor="Gainsboro"></AlternatingItemStyle> <ItemStyle ForeColor="Black" BackColor="#EEEEEE"></ItemStyle> <HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#000084"></HeaderStyle> <FooterStyle ForeColor="Black" BackColor="#CCCCCC"></FooterStyle> <Columns> <asp:BoundColumn DataField="CreditorName" SortExpression="CreditorName"></asp:BoundColumn> <asp:BoundColumn DataField="Code" SortExpression="Code" HeaderText="Code"></asp:BoundColumn> <asp:BoundColumn DataField="UnsecuredBalOwed" SortExpression="UnsecuredBalOwed" HeaderText="UnsecuredBalOwed"></asp:BoundColumn> <asp:BoundColumn DataField="UnsecuredPctRate" SortExpression="UnsecuredPctRate" HeaderText="UnsecuredPctRate"></asp:BoundColumn> <asp:BoundColumn DataField="UnsecuredLastPymtDate" SortExpression="UnsecuredLastPymtDate" HeaderText="UnsecuredLastPymtDate"></asp:BoundColumn> <asp:BoundColumn DataField="UnsecuredMinMoPymt" SortExpression="UnsecuredMinMoPymt" HeaderText="UnsecuredMinMoPymt"></asp:BoundColumn> <asp:ButtonColumn Text="Delete" ButtonType="PushButton" CommandName="Delete"></asp:ButtonColumn> <asp:EditCommandColumn ButtonType="PushButton" UpdateText="Update" CancelText="Cancel" EditText="Edit"></asp:EditCommandColumn> </Columns> <PagerStyle HorizontalAlign="Center" ForeColor="Black" BackColor="#999999" Mode="NumericPages"></PagerStyle> </asp:datagrid>
-
I have tried the If not ispostback then do my page load stuff. It doesn't reload my datagrid on the second trip. I debug by walking through every step that the program is taking for that page, it is never getting to the update or cancel events.
-
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load SqlDataAdapter1.SelectCommand.Parameters("@LeadID").Value = intLeadid SqlDataAdapter1.Fill(DsNegotiable1) DataGrid1.DataBind() End Sub Private Sub DataGrid1_EditCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles DataGrid1.EditCommand DataGrid1.EditItemIndex = e.Item.ItemIndex DataGrid1.DataBind() End Sub Private Sub DataGrid1_UpdateCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles DataGrid1.UpdateCommand SqlDataAdapter1.Update(DsNegotiable1) DsNegotiable1.Clear() DataGrid1.DataBind() End Sub
-
yeah, I have all that. What is happening now is that when I click on edit, it goes to the edit event just fine. The problem is when I hit the update button, it goes through my page_load event, then my edit event, but not my update event. Any ideas?
-
How? I'm sorry I'm pretty new to this, and the books I have don't mention any "wiring up".
-
I have a datagrid and I'm trying to put in the edit command. The edit event works, it opens up the current record to edit, but when I click on the update button or cancel button, those events don't fire. Is there a step that I'm missing that would make these fire?
-
I've known people that use anti virus software, and those who don't. I've seen more problems with the people that use the software. I think you're right, the anit-virus companies are most likely making some of the viruses, because they stand the most to gain.
-
I'm trying to update an sql database using a datagrid and asp.net. sqlconnection1.open sqldataadpter1.update(dataset1, "ClientInfo") sqldataadapter.executenonquery() sqlconnection1.close Can anybody lend a hand?
-
I switched to firefox because of the tabbed browsing. I almost always have at least 4 tabs open, and I like to open most links in a new tab. When I used IE, I had to have multiple instances of it open, and it took up most of my task bar. I am excited to see what IE v7 will bring, I hear it is going to have tabbed browsing.
-
this worked. Dim x As Integer For Each x In ListView1.SelectedIndices Dim oProcess As System.Diagnostics.Process oProcess.Start(strFiles(x)) Next