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
~11.5K People Reached
Favorite Tags
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
549
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
123
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
99
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
62
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
127
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
174
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
109
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
100
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
73
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
158
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
920
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
81
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
98
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
102
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
127
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
376
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
109
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
155
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
143
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
107
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
102
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
108
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
98
Member Avatar for jellybeannn
Member Avatar for kvprajapati
0
75
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
67
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
132