13,153 Topics

Member Avatar for
Member Avatar for gahhon

**CSS** ul#menu { margin:0;} ul#menu li { padding: 0 0 0 0px; list-style: none; margin: 2px 0 0 0; display: inline; background: transparent;} ul#menu li a { float: left; font: bold 120% Arial, Helvetica, sans-serif; height: 24px; margin: 10px 0 0 20px; text-shadow: 0px -1px 0px #000; padding: 6px 20px …

Member Avatar for gahhon
0
468
Member Avatar for gahhon

protected double[] getValues(int ColumnCount) { double[] value = new double[ColumnCount]; SqlConnection conGetValue = new SqlConnection(ConfigurationManager.ConnectionStrings["connMSJ"].ConnectionString); SqlCommand cmdGetValue = new SqlCommand("(SELECT * FROM DailyBudget WHERE (Username=@username)) EXCEPT (SELECT Username FROM DailyBudget WHERE Username=@username)", conGetValue); cmdGetValue.Parameters.AddWithValue("@username", Master.getUsername); conGetValue.Open(); SqlDataReader dtrGetValue = cmdGetValue.ExecuteReader(); try { int i = 0; while (dtrGetValue.Read()) { value[i] …

Member Avatar for gahhon
0
234
Member Avatar for gahhon

protected void AddTransaction(object sender, EventArgs e) { SqlConnection conAddTransaction = new SqlConnection(ConfigurationManager.ConnectionStrings["connMSJ"].ConnectionString); SqlCommand cmdAddTransaction = new SqlCommand("UPDATE DailyBudget SET @category=@amount WHERE Username=@username", conAddTransaction); cmdAddTransaction.Parameters.AddWithValue("@category", "Foods"); cmdAddTransaction.Parameters.AddWithValue("@amount", Convert.ToDouble("200")); cmdAddTransaction.Parameters.AddWithValue("@username", "mhingshiang"); conAddTransaction.Open(); cmdAddTransaction.ExecuteNonQuery(); conAddTransaction.Close(); } The `Foods` is one of the column name in `DailyBudget` table. But it can't update to the …

Member Avatar for gahhon
0
157
Member Avatar for gahhon

protected void Page_Load(object sender, EventArgs e) { double totalUsage = 0; int rowCount = getRowCount(); int columnCount = getColumnCount(); string[] xValues = getColumnName(); double[] yValues = new double[columnCount]; SqlConnection conBudget = new SqlConnection(ConfigurationManager.ConnectionStrings["connMSJ"].ConnectionString); SqlCommand cmdBudget = new SqlCommand("SELECT Foods, Clothes, Drinks, Entertaiment FROM DailyBudget WHERE (Username=@username)", conBudget); conBudget.Open(); cmdBudget.Parameters.AddWithValue("@username", "gahhon"); …

Member Avatar for gahhon
0
1K
Member Avatar for gahhon

public partial class Member : System.Web.UI.MasterPage { protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["Username"] != null) lblUsername.Text = Request.QueryString["Username"]; } public string getUsername { get { return lblUsername.Text; } } } } This is when master page load will display Username to the `lblUsername` and it success to …

Member Avatar for gahhon
0
133
Member Avatar for gahhon

How can i able to update the textbox value once the radio button selected index change and without post back method? and tricks? thanks for advance.

Member Avatar for JorgeM
0
2K
Member Avatar for gahhon

SqlCommand cmdColumnName = new SqlCommand("SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME='DailyBudget' ORDER BY ORDINAL_POSITION", conBudget); // bla bla bla SqlDataReader dtrColumnName = cmdColumnName.ExecuteReader(); if (dtrColumnName.Read()) for (int i = 0, x = 1; i < count; i++,x++) categories[i] = dtrColumnName[x].ToString(); dtrColumnName.Close(); The problem said the index was out of bounded. As …

Member Avatar for JorgeM
0
130
Member Avatar for gahhon

<%@ Page Title="" Language="C#" MasterPageFile="~/Member/Member.Master" AutoEventWireup="true" CodeBehind="Budget.aspx.cs" Inherits="MSJ_Bank_Financial.Member.Budget" %> <%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %> <%@ MasterType VirtualPath="~/Member/Member.master" %> <asp:Content ID="Content1" ContentPlaceHolderID="CPHInformation" runat="server"> <div id="Chart" style="width: 600px"> <asp:Chart ID="pcBudget" runat="server" BackColor="Transparent" Height="600px" Width="600px"> <Titles> <asp:Title BackColor="Transparent" Text="Daily Budget" Alignment="MiddleCenter" Font="Estrangelo Edessa, 30pt"/> </Titles> <Series> <asp:Series Name="Series1" ChartType="Pie" …

Member Avatar for gahhon
0
192
Member Avatar for ss125

My friends I was working on the concept like a user can upload his image as a user avatar, and that should be shown in all his pages. I have two pages namely get.aspx and show.aspx get.aspx contains image file uploading and saving the records in database. show.aspx is to …

Member Avatar for ss125
0
260
Member Avatar for gahhon

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'. Source Error: An unhandled exception was generated during the execution …

Member Avatar for gahhon
0
982
Member Avatar for mohankumar554

hi, how can i get the system admin password and user id into my asp using vb.net program.i need the code for it... can u give me the idea....

Member Avatar for suks
0
709
Member Avatar for dlmagers

I playing around with this new software Visual Studio Express 2010 using C# and I have the source code files but what I am wanting to do is on this Greeting Card Maker. I would like to have some check boxes so the user can Select a Prefined Message to …

Member Avatar for dlmagers
0
131
Member Avatar for gahhon

protected Boolean loginMember() { SqlConnection conLogin = new SqlConnection(ConfigurationManager.ConnectionStrings["connMSJ"].ConnectionString); SqlCommand cmdLogin; conLogin.Open(); cmdLogin = new SqlCommand("SELECT Username, Password FROM Member WHERE (UserName=@ID AND Password=@Pass)", conLogin); cmdLogin.Parameters.AddWithValue("@ID", txtID.Text); cmdLogin.Parameters.AddWithValue("@Pass", txtPassword.Text); SqlDataReader myReader = cmdLogin.ExecuteReader(); if (myReader.Read()) return true; else return false; } When i execute the login button will fire this …

Member Avatar for gahhon
0
163
Member Avatar for gahhon

protected void RegistrationMember(object sender, WizardNavigationEventArgs e) { TextBox txtID = (TextBox)cuwRegistration.FindControl("UserName"); TextBox txtPass = (TextBox)cuwRegistration.FindControl("Password"); TextBox txtEmail = (TextBox)cuwRegistration.FindControl("Email"); TextBox txtQuestion = (TextBox)cuwRegistration.FindControl("Question"); TextBox txtAnswer = (TextBox)cuwRegistration.FindControl("Answer"); SqlConnection conRegister = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString); SqlCommand cmdRegister; conRegister.Open(); cmdRegister = new SqlCommand("INSERT INTO [Member](UserName, Password, Email, Question, Answer) VALUES (@ID, @Pass, @Email, @Ques, …

Member Avatar for gahhon
0
317
Member Avatar for gahhon

# Server Error in '/' Application. # # The resource cannot be found. # # Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that …

Member Avatar for gahhon
0
133
Member Avatar for gahhon

protected void SetDestinationURL(object sender, EventArgs e) { if (loginMember()) Response.Redirect("~/Member/Home.aspx"); else if (loginManager()) Response.Redirect("~/Manager/Home.aspx"); else Response.Write("<script language=javascript>alert('Unauthorized User Access')</script>"); } protected Boolean loginMember() { TextBox txtID = lgLogin.FindControl("UserName") as TextBox; TextBox txtPass = lgLogin.FindControl("Password") as TextBox; SqlConnection conLogin = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString); SqlCommand cmdLogin; cmdLogin = new SqlCommand("SELECT UserName, Password FROM …

Member Avatar for Swoetbel
0
324
Member Avatar for PatMcC

Hi Everyone I have been programming on Linux for about 8 years part time. I have learned many languages and I am not afraid of using them. However I have learned to fear build systems, operating systems and IDEs. I have been going around in circles for years with Gui …

Member Avatar for PatMcC
0
232
Member Avatar for maxpaine69

Hi all so i have this lauching the javascript to the page: Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "Alert", "confirm('Are you Sure You Want to Delete User??')", true); But now i remebered that i need an answer on the codebehinf(C#). So this way i can do the rest of the code, but im stuck with …

Member Avatar for BMXDad
0
186
Member Avatar for brenton_77

Hi All, I'm trying to read/pass a value from a dropdownlist on a ASP.NET page to a PHP page so I can excute the required SQL command in the background. Can anyone assist with this? Background: - jQuery autocomplete search box getting results from PHP page that connects to a …

Member Avatar for JorgeM
0
373
Member Avatar for choudhuryshouvi

Hello Folks, I have an ASP.Net 2.0 web application which was successfully debugged, published, uploaded and tested on IIS server. But the problem is, I can access this application on my localhost only but when I am trying to access this from some other machine which is also in the …

Member Avatar for choudhuryshouvi
0
230
Member Avatar for sudarsanan2k9
Member Avatar for M.Waqas Aslam

Dear All! I have an ASP.net page , and my page is supportted in two language , english and arabic . when user click on arabic , i want to make my all text right align. Regards

Member Avatar for M.Waqas Aslam
0
126
Member Avatar for Maideen

Hi I have problem in Report viewer. I am using the expression to filter the value. I explain my scenario. I want sum the amount for particular category. I have student database. I need the sum the paid amount for exam fee only. =SUM(Fields!Amount.Value, "DataSet1") . It sums all amount. …

Member Avatar for Begarray
-1
151
Member Avatar for Pankaj18

Hi, I want to disable resize of popup window. I am using following code but this is not working in any browser. [B]My Code::[/B] [I]window.open(url,'POPUP', "width=360,height=400,toolbar=no,directories=no,menubar=no,status=no,resizable=no,scrollbars=no");[/I] And when i m using <BODY Onload='noresize'>. This code working in only in IE not in mozilla. Please help me Thanks in advance Pankaj

Member Avatar for Dalbir_1
0
358
Member Avatar for japhta

public void kraGridView_RowDataBound(object sender, GridViewRowEventArgs e) int totalPercent = 0; if (e.Row.RowType == DataControlRowType.DataRow) { Label lblWeigh = (Label)e.Row.FindControl("lblWeigh"); // totalPercent += Convert.ToInt32(DataBinder.Eval(e.Row.DataItem, "lblWeigh")); int total = int.Parse(lblWeigh.Text); totalPercent += total; } else if (e.Row.RowType == DataControlRowType.Footer) { Label lblTotalPercentage = (Label)e.Row.FindControl("lblTotalPercentage"); // e.Row.Cells[5].Text = totalPercent.ToString(); lblTotalPercentage.Text = totalPercent.ToString(); } …

Member Avatar for japhta
0
754
Member Avatar for aalshamr

Hello to all am new programmer facing a problem in saving three checkboxs into database for example a b c all of the has a value in the database any one can heple from scratch I'll be greatfull regards,

Member Avatar for Begginnerdev
0
1K
Member Avatar for prashant9928

I am using a telerik radScheduler into my major project. and it is working fine on Local system. But on live it is not working fine. I can only view my scheduled activity, drag & drop activity, increase or decrease time span only. But when i try to create or …

Member Avatar for Jeffrey T.
0
508
Member Avatar for Maideen

Hi I have an issue in asp.net using vb code I am using Visual Studio 2012 with MSSQL 2005. I have problem in adding Report viewer, Version=11.0.0.0. I have an error "'ReportViewer' is ambiguous in the namespace ". Please anybody help me to solve this issue maideen

Member Avatar for Maideen
0
248
Member Avatar for kamilacbe

i have windows 2008 r2 server , and am trying to convert my videos from any type to mp4 format and everything is fine in local when am trying to do the same live webserver , Am able to upload the file and then when i try to convert the …

Member Avatar for kamilacbe
0
1K
Member Avatar for inheaven

I am creating a new ASP.NET MVC 4 application (actually my first MVC application) that is a part of my previous ASP.NET web forms application. I have never used ASP.NET inbuilt authentication methods in any of my project. This new MVC 4 app will be published on a sub-domain of …

Member Avatar for LastMitch
0
251

The End.