Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
1
2 Commented Posts
0 Endorsements
~12.1K People Reached
Favorite Tags

44 Posted Topics

Member Avatar for jellybeannn

Can someone please help me with why this button is not working, I've tried putting it in <for id="" runat="server">, but then I get the error: A page can have only one server-side Form tag. When the button is clicked nothing happens. [code] <%@ Page Language="C#" MasterPageFile="~/train.master" AutoEventWireup="true" validateRequest="false" CodeFile="TrainStationTutorial.aspx.cs" …

Member Avatar for Hamza Bukhari
0
2K
Member Avatar for jellybeannn

Hi I'm trying to use the Microsoft.VisualBasic IRR function, but to no success. [code] double[] values = new double[73]; for (int j = 1; j <= 73; j++) { values[j] = C158_Calc; } B162_Calc = Financial.IRR(values, 0.1) * 12; [/code] I'm having trouble in this line: [code] B162_Calc = Financial.IRR(values, …

Member Avatar for nick.crane
0
557
Member Avatar for jellybeannn

I'm trying to insert a record from a DataGridView into a database, but I receive this error: [COLOR="red"]Parameterized Query '(@i1 int,@i2 varchar(50),@i3 varchar(50),@i4 varchar(50),@i5 var' expects parameter @i1, which was not supplied.[/COLOR] I have tested with a BreakPoint that c_id is not null, it does have a value. *Note c_id …

Member Avatar for crishjeny
0
126
Member Avatar for jellybeannn

Hi everyone, I am trying to populate a gridview. this is my table structure: Modules - M_ID, M_title (this is where the module info is stored) Module_course_link - MC_ID, M_ID, C_ID (this table links the Modules and Courses table) Courses - C_ID, C_title (this is where the course info is …

Member Avatar for rohand
0
101
Member Avatar for jellybeannn

Hi, I've got a door_order table which I export to excel, now I have to make it so that underneath each door_order the products are listed from door_product table, please not that this can be more than one product for that order. This is my code so far public DataTable …

0
63
Member Avatar for jellybeannn

hallo, I want to create a print preview for an invoice. What I'm having problems with is, most of the content in the print preview is pulled from a database and not the form, I am not sure how to implement this into the code, plus how would I change …

Member Avatar for PierlucSS
0
133
Member Avatar for jellybeannn

I'm creating a Content Management System. Users must be able to delete content from a database. This does not delete or give an error message, it just does nothing. [code] protected void deleteBut_Click(object sender, EventArgs e) { string A_ID = Request.QueryString["A_ID"]; string sel = "DELETE FROM acomodation WHERE A_ID=" + …

Member Avatar for Lusiphur
0
176
Member Avatar for jellybeannn

I've got a DropDown which I populate from a database. When an item is selected I want to redirect to another page with the selected id, but the problem is it passes "1" no matter what was selected. [code] protected void Page_Load(object sender, EventArgs e) { Populate(); } public void …

Member Avatar for jellybeannn
0
112
Member Avatar for jellybeannn

I got this code off a site, with a really nice layout and style, I've never worked with input field, so I'm stuck how can I save this to a database. I tried changing everything to a <asp:Label> and <asp:TextBox> but then I do not get the same layout. [code] …

Member Avatar for jellybeannn
-1
2K
Member Avatar for jellybeannn

Can someone please help me to create a circular reference I need to add a to b and b to a. I've been looking everywhere can this be accomplished with enum or structs? Please help me

Member Avatar for dnanetwork
0
102
Member Avatar for jellybeannn

Hi I'm coding in c# and I'm usiing the IIR function of Microsoft.VisualBasic. I need values for 6 years that's 72months [code] if (i <= 72) { values[i] += C158_Calc; } B162_Calc = Financial.IRR(ref values, 0.1) * 12; row9["Month1"] = String.Format("{0:#,###,###,###.##}", B162_Calc); [/code] this gives me this error: Arguments are …

0
90
Member Avatar for jellybeannn

Hi, I've got a DropDown list which is populated here. with the use of a break in the code there is a value of 4 for shippingInfo.ShippingID.ToString() [code] if (addressOK) //&& cardOK { int shippingRegionId = int.Parse(Profile.ShippingRegion); List<ShippingInfo> shippingInfoData = CommerceLibAccess.GetShippingInfo(shippingRegionId); foreach (ShippingInfo shippingInfo in shippingInfoData) { shippingSelection.Items.Add( new ListItem(shippingInfo.ShippingType, …

Member Avatar for jellybeannn
0
162
Member Avatar for jellybeannn

Hi, I'm making a CMS, and I have a description TextBox which I would like to include html tags, to save to a database, but I get an error "A potentially dangerous Request.Form value was detected from the client (ctl00$adminPlaceHolder$grid$ctl02$descriptionTextBox="<b>Model No.:</b><br..."). "

Member Avatar for jellybeannn
0
990
Member Avatar for jellybeannn

I want to export evrything in a page to excel, it's just the graph that does not export. I used ChartControl graph which I downloaded. [code] protected void excel_Click(object sender, EventArgs e) { excel.Visible = false; Response.ContentType = "application/ms-excel"; Response.AddHeader("content-disposition", "attachment; filename=CashFlow.xls"); } [/code]

0
83
Member Avatar for jellybeannn

Can someone please help me in creating an array, I've got a DataTable with 270months columns so I've used a forloop for that. My array has to be the same as C158_Calc but only for 73months. At the moment the array is returnig each element as 0. C158_Calc values are …

Member Avatar for Teme64
0
100
Member Avatar for jellybeannn

Hallo, can someone please help. I've got 2 calculations, and they need each other for the calculation, I've declared both global, because H44_Out is first 0 is used as H42_Out and therefore giving a wrong value to H42_Out, is their a way to do this? [code] H44_Out = (G123_Calc + …

Member Avatar for dnanetwork
0
106
Member Avatar for jellybeannn

The DataTable's Rows show likw this, how do I fix it. [B]Month1[/B] [B]Month2[/B] [B]Month3[/B] 1 2 3 1 2 3 1 2 3 [code] double C146_Calc = 0.0; protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { // create the table DataSet ds = GetTable(); outputView.DataSource = ds; outputView.DataBind(); …

Member Avatar for jellybeannn
0
131
Member Avatar for jellybeannn

When values are entered into 2 TextBox's(textbox1 & textbox2) they are multiplied with one another and the answer is displayd in a Label(label1), I need to add all the labels and display it in another label, this has to be don without buttons. When the TextBox's change this function is …

Member Avatar for jellybeannn
0
82
Member Avatar for jellybeannn

Hi, I've got a input sheet where start and end dates are saved to a access database, I do have the access database dates field as Date/Time with a short date format. On my output page the start date's month and day are swapped but only if the actual day …

Member Avatar for jellybeannn
0
1K
Member Avatar for jellybeannn

Hello, I get this error: System.IndexOutOfRangeException: 2000 I've got a table this table in excel: Month 2000 2001 2002 2003 1 180.4 194.3 209.0 236.4 2 181.1 195.2 212.2 237.9 3 182.4 196.3 213.1 238.7 4 184.1 197.4 216.5 240.1 5 185.4 198.6 219.4 240.2 6 186.1 199.0 220.7 240.7 …

Member Avatar for jellybeannn
0
384
Member Avatar for jellybeannn

Hi I've got the JavaScript that calculates the amount of two TextBox's(rate_## and area_##) and displayes it in a label(amount_##), what I'm trying to do is to add up all of the amounts and display it in another label(estimatedCost), I've tried this with the first function but the estimatedCost label …

Member Avatar for fxm
0
112
Member Avatar for jellybeannn

Hi I'm trying to pass data from one page to another, but it does not display anything, Page 1: [code] protected void submit_Click(object sender, EventArgs e) { addData(); Session["value"] = space_01.Text; } public void addData() { string tenderDate = start_txt.Text; string cost = totalCost.Text; string companyName = name_txt.Text; string scon …

Member Avatar for finito
0
159
Member Avatar for jellybeannn

[code] protected override void OnInit(EventArgs e) { this.currency_txt.TextChanged += new EventHandler(currency_txt_TextChanged); base.OnInit(e); } protected void currency_txt_TextChanged(object sender, EventArgs e) { rateSymbol.Text = currency_txt.Text; amountSymbol.Text = currency_txt.Text; } [/code] i'm trying to write a textbox text to a label, the above code doesn't change anything or give any errors. My textbox …

Member Avatar for finito
0
150
Member Avatar for jellybeannn

I've got this code that creates a Table and a graph, the values have to be int for the graph. But in the table I want t display the values as... 1,000,000 How can I do this?? [code] public partial class output : System.Web.UI.Page { int max = 0; int …

Member Avatar for finito
-1
110
Member Avatar for jellybeannn

I've got a DataSet that shows a table through Gridview, and the same DataSet also creates a graph. But my problem is that e.g. Date format is different for both, so I was wondering can you change format in a GridView populated by a DataSet? For the graph date has …

Member Avatar for rohand
0
108
Member Avatar for jellybeannn

[code] protected void currency_txt_TextChanged(object sender, EventArgs e) { amountSymbol.Text = currency_txt.Text; } [/code] I'm trying to change a label according to a TextBox, without a button that has to be pressed?

Member Avatar for jellybeannn
0
112
Member Avatar for jellybeannn

I'm trying to make a graph with WebChart Control which I downloaded, But i receive this error. System.Application:Error while saving the file: ---> System.OverflowException: Overflow error. at WebChart.ChartEngine.GenerateBitmap() at WebChart.ChartEngine.SaveToFile(String filename, ImageFormat format) --- End of inner exception stack trace --- at WebChart.ChartEngine.SaveToFile(String filename, ImageFormat format)

Member Avatar for kvprajapati
0
100
Member Avatar for jellybeannn
Member Avatar for kvprajapati
0
76
Member Avatar for jellybeannn

Does anyone know of an easy way to make a line graph from a datatable, I've looked everywhere, and downloaded a bunch of code which doesn't make sense to me. Please it's urgent!!!

Member Avatar for kvprajapati
0
68
Member Avatar for jellybeannn

[code] public List<DateTime> GetDates(DateTime startDate, DateTime endDate, int valuationDay) { TimeSpan span; span = endDate - startDate; List<DateTime> result = new List<DateTime>(); DateTime dateToParse = DateTime.MinValue + span; int yearMonths = 0; if (dateToParse.Year > 0) { yearMonths = (dateToParse.Year - 1) * 12; } int monthCount = (yearMonths + …

Member Avatar for jellybeannn
0
137
Member Avatar for jellybeannn

[code] System.TimeSpan sp_start = validation.Subtract(start); double t1 = sp_start.TotalDays; int days = 0; for (int i = 0; i < 13; i++) { if (validation.Month == 12 || validation.Month == 01) { days += 14; } t1 =- days; } [/code] This loop only takes effect on Dec and Jan …

Member Avatar for jellybeannn
0
65
Member Avatar for jellybeannn

My problem is that the array does not seem to return the correct value, the same value is returned for each data row, but when I display using Response.Write in foreach in Calculation, the correct values are returned. The array values has to be used in a calculation I've got …

Member Avatar for jellybeannn
0
63
Member Avatar for jellybeannn

Hallo can someone please help me, I've got this table: Valuation Date Construction 30/03/2009 30,625.26 30/04/2009 269,825.04 30/05/2009 850,056.45 30/06/2009 1,922,475.06 30/07/2009 3,500,852.19 30/08/2009 5,757,055.16 30/09/2009 8,699,041.1 30/10/2009 12,232,330.17 30/11/2009 16,612,763.46 30/12/2009 19,166,542.19 30/01/2010 22,098,191.54 28/02/2010 33,539,289.47 30/03/2010 40,518,025 30/04/2010 48,372,377.98 30/05/2010 56,543,248.62 30/06/2010 65,507,314.28 30/07/2010 74,607,415.4 30/08/2010 84,352,063.34 30/09/2010 …

Member Avatar for jellybeannn
0
64
Member Avatar for jellybeannn

Hi, I've got a date range between a start and end date, which has to be each month on the valuation day, but if end date(2010/07/20) is before the valuation date(2010/07/31), the valuation month for that month must be displayed. if (endDate.Day < validDay) is true, then it works perfect. …

Member Avatar for kvprajapati
0
122
Member Avatar for jellybeannn

hallo can someone please help me my Access Database ConnectionString does not work on the server [code] string strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|calculator.mdb"; [/code]

Member Avatar for Gospp
0
100
Member Avatar for jellybeannn

I'm creating a cash flow calculator, start and end date is entered, and then dates according to months in between are displayed. If the month is Dec or Jan t1 should change accordingly, [code] if (validation.Month == 12) t1 = t1 - 14; if (validation.Month == 01) t1 = t1 …

0
53
Member Avatar for jellybeannn

Hallo everyone. I want to set the day to the validDay. e.g if valid day is 25 then the day must be 25 on DateTime. [CODE]string validDay_str = reader["validation"].ToString(); int validDay = Int32.Parse(validDay_str); string start_str = reader["start"].ToString(); DateTime start = DateTime.Parse(start_str); start.Day = validDay;[/CODE] with this code I get an …

Member Avatar for jellybeannn
0
122
Member Avatar for jellybeannn

Hi can anyone please help me, I've got a gridview populated from a database, when the download button is pressed this is exported to excel, what I would like to do is to hide the gridview, it must not show on the aspx page but the database must still export …

Member Avatar for kvprajapati
0
99
Member Avatar for jellybeannn

Hi on my localhost the website works fine, but when I transfer it onto the web I get this error, please someone help. [CODE] Server Error in '/' Application. Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details …

Member Avatar for Ramesh S
0
336
Member Avatar for jellybeannn

Hi, I've got a DropDownList with a list of colours, when one is selected and the "Add to ShoppingCart" button is pressed, all the colours in the DropDownList are duplicated. Can somebody please help. [CODE] // fill the control with data private void PopulateControls(ProductDetails pd) { // display product recommendations …

Member Avatar for bhavu4u
0
120
Member Avatar for jellybeannn

Hi everyone, I've got a shopping cart with a total amount label, this works perfect with the products, if a product quantity is changed the label also changes. I have a shipping type drop down list determined by which region the user is, I would like the total amount label …

Member Avatar for vuyiswamb
0
106
Member Avatar for jellybeannn

Hi everyone, I've got a DepartmenstList and CategoriesList user controls, which works with stored procedures, when the a department is selected, only then is that departments categories listed. What I need help with is, when a department is selected I want the categories to display as a submenu to the …

0
63
Member Avatar for jellybeannn

Hi everyone, I've got a DropDownList in Product.aspx when the add to cart button is pressed the value selected is passed onto a stored procedure. What I need help with is in ShoppingCart.aspx I want the selected value on the previous page to be the index on this pages DropDownList. …

Member Avatar for Ramesh S
0
119
Member Avatar for jellybeannn

I'm working on the book "Beginning Aspnet E-Commerce with C#", but I have encountered a problem. The tutorial includes a Pager Control, this works fine for all of the products it is just when the a department is selected the pager does not work, only after a Category is selected …

0
64

The End.