13,153 Topics
![]() | |
Hi to all, I'm using the WIA Aut. Library [url]http://www.microsoft.com/downloads/details.aspx?familyid=a332a77a-01b8-4de6-91c2-b7ea32537e29&displaylang=en[/url] , trying to capture photos from 5 digital cameras (Nikon D90) USB-connected to my pc. Now, I partially achieved my goal, what I do is: - loop through the attached devices, connecting to every camera; - fotocamera.ExecuteCommand (WIA.CommandID.wiaCommandTakePicture) ; - … | |
Is it possible to set two DataKeyField in DataList........... If yes then pls help me out................... | |
![]() | 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: > … ![]() |
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"]; … | |
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 … | |
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. | |
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 … | |
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 … | |
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> <div id="divCalendar" style="DISPLAY: none; POSITION: absolute" > … | |
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: … | |
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 … | |
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;"> … | |
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) … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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; … | |
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 | … | |
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 … | |
<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)", … | |
how to redirect paypal sandbox to localhost (asp.net's ) after successful transaction ? is it possible ? silly question but may be .................... | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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> … |
The End.