13,153 Topics

Member Avatar for
Member Avatar for crazydevelopervish

Is it possible to set two DataKeyField in DataList........... If yes then pls help me out...................

Member Avatar for AleMonteiro
0
204
Member Avatar for adrian.mcguinness

I have a gridview which totals up the quantity of items the buyer has added to basket. I have added a delete button and this button is meant to reduce the quantity by one when clicked. removing the latest record from the database. I keep getting a the following: > …

Member Avatar for adrian.mcguinness
0
1K
Member Avatar for ku.heng.7

I wan to tranfer the value barcode from abc.aspx to cde.aspx and display in other page this is the code from abc.aspx <asp:HyperLink ID="hlBarcode" runat="server" NavigateUrl='<%# "~/SearchStock.aspx?BC=" + Eval("Barcode")%>' > this is the code from cde.aspx.cs protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["Barcode"] != null) txtBarcode.Text = Request.QueryString["Barcode"]; …

Member Avatar for manuindia
0
262
Member Avatar for while(!success)

Hi guys, I'm still new to .NET and your answers to my questions have been so helpful. I have another question yet again, however. This time my question has to do with sql server and handling it with code behind. I am creating a stored procedure which is supposed to …

Member Avatar for while(!success)
0
2K
Member Avatar for hackit

Hello guys.. i am developing a "College" website for my college project. I want to use validator as are in www.techrepublic.com on the input fields. please help me by providing guidelines.

Member Avatar for AleMonteiro
0
140
Member Avatar for crazydevelopervish

I have one datalist which retrives record from database based of Customer_ID <asp:DataList ID="DataList1" runat="server" DataKeyField="Customer_ID" DataSourceID="SqlDataSource1" onupdatecommand="DataList1_UpdateCommand" oneditcommand="DataList1_EditCommand1" ondeletecommand="DataList1_DeleteCommand" oncancelcommand="DataList1_CancelCommand1"> <HeaderTemplate> <table> <tr> <th style="width: 250px"> </th> <th style="width: 400px"> Item Description </th> <th style="width: 100px"> Price </th> <th style="width: 100px"> Qty </th> </tr> </HeaderTemplate> <ItemTemplate> <tr> <td> <asp:Image …

Member Avatar for JorgeM
0
123
Member Avatar for coder91

I have various database tables, one that holds the options within a drop down list - each selection has a value assigned to it. One of the options is "other" which has the value -1 assigned to it. The other table takes the data from a form that the user …

Member Avatar for crazydevelopervish
0
105
Member Avatar for user2412

hi, i made this code to pick date but it didn't work, the date was unable to select/pick. this is my code. hope anyone can help me //this is my asp code <table> <td class="style40"> Date sampling</td> <td class="style41"> <asp:TextBox ID="txtDate" runat="server" Width="78px"></asp:TextBox> &nbsp;<div id="divCalendar" style="DISPLAY: none; POSITION: absolute" > …

Member Avatar for JorgeM
0
195
Member Avatar for n3xtgen

I am trying to make a basic page in ASP.Net by inserting into a MSSQL database. When I run the page it does not insert anything and no error is produced :( The connection string name is right as well as the table name and fields. This is my code: …

Member Avatar for Momerath
0
221
Member Avatar for 4everct01

Hey there, Im doing for a typing platform project to test the typing speed of a user. I have a SQL database (para1) which store a list of words. I use datalist and linqdatasource to display the text in a textbox (paraBox). What should i do to match the word …

Member Avatar for AleMonteiro
0
149
Member Avatar for crazydevelopervish

I have one form having One DataList In which i have two table one having Header Template and other having Item Template....... Code Of aspx page is as follows..... <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1"> <HeaderTemplate> <div> <table> <tr> <td style="width:245px; text-align:center;"> Image</td> <td style="width:450px;text-align:center;"> Item Description</td> <td style="width:260px;text-align:center;"> Price</td> <td style="width:322px;text-align:center;"> …

Member Avatar for crazydevelopervish
0
132
Member Avatar for coder91

I have a page that allows a user to enter a reference then select the app that they want. The reference is stored as session and is used on other pages to show the user their recording against that reference. On this particular page (after they have chosen the app) …

Member Avatar for coder91
0
135
Member Avatar for coder91

I have a page that allows the user to select various options from drop down lists. Below this is a gridview recording the details that have been submitted previously. So when the user hits submit their data is stored in a database and the gridview is rebinded to display this …

Member Avatar for coder91
0
146
Member Avatar for harinisuresh

Download source code of Program : http://www66.zippyshare.com/v/96114261/file.html I got Error 'Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))' of using cross domain in webbroser iframe tag. Error Line : WebBrowser1.Document.Window.Frames(0).Document.GetElementsByTagName("input").Item(0).InnerText = "MyValue1" Please solve the program. Thanks.

Member Avatar for john.knapp
0
229
Member Avatar for coder91

I have an increment and decrement button to all users to record against 4 different options (how many times this option has been done) So they choose the options from a drop down menu and then the panel appears that the two buttons are sitting within. It starts with the …

Member Avatar for coder91
0
130
Member Avatar for gahhon

protected void btnOkay_Click(object sender, EventArgs e) { Boolean blBill = checkBill(); if (blBill == true) { SqlCommand cmdRegistrationID = new SqlCommand("SELECT RegistrationID FROM Registration WHERE RegistrationID = @id", conOOC); cmdRegistrationID.Parameters.AddWithValue("@id", txtRegistrationID.Text); conOOC.Open(); SqlDataReader dtrRegistrationID = cmdRegistrationID.ExecuteReader(); if (dtrRegistrationID.HasRows) { while (dtrRegistrationID.Read()) { Server.Transfer("Make Payment.aspx", true); } } else { Response.Write("<script>alert('Record …

Member Avatar for JorgeM
0
127
Member Avatar for MARKAND911

I am facing a problem for running my website. I have developed the website and when i hit F5 to view the results i am presented with this error **Description:** The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission …

Member Avatar for JorgeM
0
337
Member Avatar for arny1

Hi There, I am trying to export an image to Excel file from Asp.Net C# page. My code is working fine, and I can merge let say 6 columns in excel file and put the image on these cells. What I would like to know is how to Center this …

Member Avatar for gilesbradley
0
2K
Member Avatar for gahhon

private void getCount() { SqlCommand cmdCountPenalty = new SqlCommand("SELECT PenaltyID FROM Penalty", conOOC); SqlCommand cmdCountBill = new SqlCommand("SELECT BillID FROM Bill", conOOC); SqlCommand cmdCountPayment = new SqlCommand("SELECT PaymentID FROM Payment", conOOC); conOOC.Open(); SqlDataReader dtrCountPenalty = cmdCountPenalty.ExecuteReader(); while (dtrCountPenalty.Read()) { ++countPenalty; } dtrCountPenalty.Close(); SqlDataReader dtrCountBill = cmdCountBill.ExecuteReader(); while (dtrCountBill.Read()) { ++countBill; …

Member Avatar for gahhon
0
88
Member Avatar for while(!success)

Hi guys, I have created a gridview which is supposed to display 3 columns: | view | Name | Position | The gridview becomes visible based a a selection of a dropdownlist. When I load the gridview from the dropdownlist however, the grid view appears as such: | view | …

Member Avatar for while(!success)
0
2K
Member Avatar for TIM_M_91

OK so I have two classes in the first class is where the database is handled, in the second class is where I want the output from my database select statment in be displayed on a label. How do I get the result to a label on Invoice.aspx? DBdatabase.cs public …

Member Avatar for TIM_M_91
0
179
Member Avatar for gahhon

<The parameterized query '(@bid nvarchar(5),@rid nvarchar(4000),@total float,@duedate nvar' expects the parameter '@rid', which was not supplied. > The Error Was Occur when i doing this calling this function. private void setBill() { SqlCommand cmdBill = new SqlCommand("INSERT INTO Bill (BillID, RegistrationID, TotalFees, PaymentDueDate, Status) VALUES (@bid, @rid, @total, @duedate, @status)", …

Member Avatar for gahhon
0
114
Member Avatar for HunainHafeez

how to redirect paypal sandbox to localhost (asp.net's ) after successful transaction ? is it possible ? silly question but may be ....................

Member Avatar for kvprajapati
0
181
Member Avatar for TIM_M_91

Ok so I have a class called DBdatabase.cs which stored all my sql queryies, what I am trying to do is execute an update statement that updates the users password through the session however when I execute the statement nothing occurs what am I doing wrong? Also Please note that …

Member Avatar for TIM_M_91
0
96
Member Avatar for Galbatorix

Hi guys, I normally package a dotnet installer and my software installer for my client and he normally has to install each seperately. Is there a way i can add dotnet installer to my project installer... I do not want to use third party apps like install shield wizard... You …

Member Avatar for Galbatorix
0
281
Member Avatar for gahhon

protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { conOOC.Open(); SqlDataAdapter adptDDL = new SqlDataAdapter("SELECT ProgrammeCode, StaffID FROM Programme, Staff", conOOC); DataTable dtDDL = new DataTable(); adptDDL.Fill(dtDDL); ddlProgramme.DataSource = dtDDL; ddlProgramme.DataTextField = "ProgrammeCode"; ddlProgramme.DataValueField = "ProgrammeCode"; ddlProgramme.DataBind(); ddlStaff.DataSource = dtDDL; ddlStaff.DataTextField = "StaffID"; ddlStaff.DataValueField = "StaffID"; ddlStaff.DataBind(); conOOC.Close(); if …

Member Avatar for spectra
0
2K
Member Avatar for TIM_M_91

OK so what I want to do is filter my sql query for people from ages: 14-16,11-13,and 6-10. How do I do this? Also is it possible to be achieved from a dropdownlist or radiobutton

Member Avatar for urtrivedi
0
183
Member Avatar for HunainHafeez

i have an ajax Calender extender along with textbox in gridview, it works fine, when i select some date from calendar then it tranfers date to textbox and after clicking Update button in gridview , it sends date to database , Fine but when i don't select any thing from …

Member Avatar for JorgeM
1
267
Member Avatar for while(!success)

Hi guys, I'm defining my dropdownlist in my codebehind and it continues to crash when when I bind the dataset to the actual dropdownlist. here is the aspx file: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="_332_Final_Proj.WebForm1" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <%-- <link href="~/Content/StyleSheet1.css" rel="stylesheet" type="text/css" />--%> </head> …

Member Avatar for pritaeas
0
4K
Member Avatar for gahhon

{ conOOC.Open(); SqlCommand cmdDisplay = new SqlCommand("SELECT * FROM [Course] WHERE ([CourseID] = @id)", conOOC); cmdDisplay.Parameters.AddWithValue("@id", ddlCourseList.SelectedValue); SqlDataReader dtrDisplay = cmdDisplay.ExecuteReader(); while (dtrDisplay.Read()) { GridView1.DataSource = dtrDisplay; GridView1.DataBind(); } this one is depends on user select which items on the dropdownlist, once they have selected should display the gridview, but …

Member Avatar for k.d.m
0
83

The End.