214 Topics

Member Avatar for
Member Avatar for TimTheCoder

Helllo guys am trying to build my first ASP.NET application here and I have a **Models** folder and **Controllers** folder. The models folder contains the class for an entity called customer whose properties are to be read from sqlite database. Thee is also a **Pages** folder that contains a folder …

Member Avatar for pritaeas
0
80
Member Avatar for Clif40RD

Hi I'm having a problem implementing a mini shopping cart drop down in the header to show the user all the products they have in their shopping cart. It seems the only solution for this is Ajax, and I've looked all over and can't find anything that I could possibly …

Member Avatar for Xavier_5
0
2K
Member Avatar for francopeapea

I'm trying to finish a work for a course and i have a problem for the last few days, with 2 model view controller. n°1: I have 3 tables one of them its 'Apartments' that has a FK with 'Cities.Id' and 'Cities' has a FK with 'States.Id', I want to …

Member Avatar for pritaeas
0
230
Member Avatar for devils_knot

I'm having trouble with my pagination using grid view if the datasource is in Page_Load event. But when I manually use the GridView -> choose datasource in its property, I don't have any problem with the pagination. I'm using the Page_Load event because there are some parameters. Please help and …

Member Avatar for JerrimePatient
0
291
Member Avatar for ken_6

Hello I trying to get the email address from the database and input it to the asp code or html. I was able to read the email address from the database but not able to store the value. How can I store the value? Response.Write bs("email_addr") its reading from the …

Member Avatar for hericles
0
140
Member Avatar for jasmine.koh.562

Imports System.Data.OleDb Imports System.Data Imports System.Web Imports System.Web.UI Partial Class _TakeSurvey Inherits System.Web.UI.Page Dim sid, query1, query2, query3, query4, query5, query6, qnos, currentQ, q_type, filledby, qid, status1 As String Dim dbcon As String = "Provider=Microsoft.Jet.OleDb.4.0;" & _ "Data Source=|DataDirectory|SurveyDatabase.mdb" Dim con, conn, conn1, conn2 As OleDbConnection Dim da, da1, da2, …

Member Avatar for xrjf
0
154
Member Avatar for HunainHafeez

i am using asp.net datalist to retrieve text from database field, when i put an integer value like 10 in where clause of select statement then it retrieves data from databse on next page but when i used variable (which is used to store value sent via query string) then …

Member Avatar for suman_4
0
853
Member Avatar for squeak24

I have been asked by my work to develop a CMS project in ASP or ASP.net. I have seen there are various open source projects taht will do that, but the server I have to work with isn't exactly new. I have found this page detailing various CMS projects: http://www.asp.net/mvc/open-source …

0
110
Member Avatar for haymen.roth.3

i am told t use old traditional way of SQL in MVC so created login register page but now problem is that i can't return data to VIEW from dataset. Model public ConnectionStatus Login_db(String email, String pwd, String conStr) { String hashedpwd_login = FormsAuthentication.HashPasswordForStoringInConfigFile(pwd, "SHA1"); using (SqlConnection sqlCon = new …

Member Avatar for khimmy2000
0
2K
Member Avatar for Paladine

This is sample code for a ASP.Net Login page (using Visual Basic.Net code behind) with OleDB connection to an Access Database using ADO.Net. The datebase used is the Access Northwind Database. With the connection string being placed in the [i]web.config[/i] file. [b]1. [u][i]Web Config[/i][/u] File code:[/b] [code] <?xml version="1.0" encoding="utf-8" …

Member Avatar for Anita_1
2
19K
Member Avatar for irfan1977

Hi, I want to create an excel file from classical ASP. My client is Win 7 / IE9, Server has Windows Server 2003 and Excel 2003 I tried HTML TABLES. Response.ContentType = "application/vnd.ms-excel; charset=utf-8" Response.AddHeader "Content-Disposition", "attachment; filename=abc.xls" Response.Write(sResponseString) AT first It worked but later on the file corrupted. While …

0
166
Member Avatar for umaima_121

Please can anyone cheack my work its not working with me ! Also if you have any simple Solution can I use, it will be better ! Protected Sub Button1_Click(sender As Object, e As System.EventArgs) Handles Button1.Click Dim conString As String = "Data Source=BUSH;Initial Catalog=HOTEL;Integrated Security=True" Dim sqlCom As SqlCommand …

Member Avatar for JorgeM
0
380
Member Avatar for kodingkarthik

Hi all, I am new to asp.net programming and i have to design a website which should accept values from the user and store it in the databse on a button click event. I am not able to do it In fact i have written a code for button click …

Member Avatar for ILA RANI
0
3K
Member Avatar for castajiz_2

Hi guys. for several weeks i can t make my mind whether to go and learn php or should i stick with my C# knowledge and learn ASP.net. I ve started to programming in C# 2 years ago, learned sql and databases and learned html css when i was still …

Member Avatar for JorgeM
0
136
Member Avatar for faranak

hi I'm a newbie to ASP.net development. I'm getting this error message "Procedure or function has too many arguments specified." when inserting data via the stored procedure into DB. Can anyone help me with this error? thanks my code: void InsertIntoVahed() { SqlConnection sn = new SqlConnection("Data Source=Server;Initial Catalog=ab;User ID=sa;Password=12345"); …

Member Avatar for BMXDad
1
2K
Member Avatar for dstoltz

I have a webpage in ASP, that scraps the content from another website using: Set http = Server.CreateObject("MSXML2.ServerXMLHTTP.3.0") http.open "GET", "http://www.thesite.com/thepage.aspx", true http.send getURL=http.responsetext I then examine the content of "getURL" for certain text.... The problem is, that website has changed from static HTML, to using jQuery - which probably …

Member Avatar for LastMitch
0
233
Member Avatar for Aishu Karthik

I have a gridview with information like Period, FromTime and ToTime. In each row, I have an Edit(linkbutton). On clicking Edit, I open a popup window. The popup has 2 dropdowns - FromTime and ToTime, 1 button. When I click the button, the times get added to the grid. I …

Member Avatar for Reverend Jim
0
150
Member Avatar for njleye

Dear Expert, Please find below coding as I have a problem in data update as there is no error found but when i update the table it update the table in right table and then it return some thing wrong while returning the records. Kindly help me in this matter. …

Member Avatar for Ketsuekiame
0
178
Member Avatar for cyberdaemon

Good day, I am having trouble with the excel file that i was uploaded.. after i uploaded the excel file i want to validate each header and each datatype of it. just to make sure that my dbase has integrity.let say i have 10 columns. Is there a way on …

Member Avatar for Nalestard
0
294
Member Avatar for Paladine

[url="http://../tutorials/tutorial6028.html"]Original thread [/url]- To see why this was Updated [i] Reason for new thread is to start with a clean slate and I will also be providing a tutorial for SQL and possibly Oracle DB connections to show how easy this code is to implement regardless of the DB you …

Member Avatar for maqbul
0
7K
Member Avatar for doraemon

I made c# asp.net web form application with visual studio 2008 with oracle 10g database using Oracle.DataAccess. When I start debugging or start withoutdebuggin from visual studio, it workd fine. (visual studio and oracle 10g server and client are installed in my pc). I publish the application and use ftp …

Member Avatar for doraemon
0
1K
Member Avatar for sharon.chapman7

Hi, I have an asp html page that allows the user to input data into a web page. When they click the submit button it calls a default.aspx.vb. The ISPostback is always false so it skips my sql add parameters. Here is the code: <%@ Page Language="VB" AutoEventWireup="false" CodeFile="default.aspx.vb" Inherits="_default" …

Member Avatar for nicz17
0
288
Member Avatar for maryam_89

Basically, I am wanting to get the last userID which is submitted when the user enters their details and clicks the submit button. I have searched the internet and have made changes but still don't understand where i'm going wrong. I used the MAX statement to show the last user …

Member Avatar for JorgeM
0
240
Member Avatar for jonnahealey

Hi All, Sorry if this isn't the appropriate place to put this question, but I'm new to the forums. My issue relates to ASP and a DSN-less connection. I have a website, which was built quite a while ago using DSN connections to an Access database, which ran on a …

Member Avatar for hielo
0
172
Member Avatar for HunainHafeez

i have a page (APPLYforJOB.aspx), now if an registered user ahs signed in and clicked on APPLY for job Button then he will be promoted to page to fill his info but if he is hasn't logged in then he will be redirected to LOGIN.aspx page, I did it successfully …

Member Avatar for JorgeM
0
207
Member Avatar for coder91

Hi, I have a stored procedure that will display an activity if the user enters the correct appref. This stored proceudre works fine on SQL management. However when i bind it to the gridview on my page it doesn't work on the internet, keep getting the error. Cannot open database …

Member Avatar for ronitmathurseo
0
254
Member Avatar for hollystyles

The aim of this tutorial is to save burgeoning self taught developers some of the early pitfalls that lurk on the road to programming enlightenment. It will attempt to do this by distilling the last 50 years of software engineering philosophy into a relatively short single tutorial, applying the concepts …

Member Avatar for buck1107
2
4K
Member Avatar for ROSS679

Hi Everyone, I am currently practicing through the NorthWind Example in ASP.NET, when i debug i am greeted with the message "Could not find output table 'ViewCustomer'. Despite linking to the form in the try statement, am i missing something here? I am using a OleDb connection rather than SQL. …

Member Avatar for bill_kearns
0
128
Member Avatar for owaithaka

hi am getting the following error when I try open my application. everything was ok and nothing has been installed. it just stopped working one day. Microsoft OLE DB Provider for ODBC Drivers error '80004005' [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified /ssi/login/profile.asp, line …

Member Avatar for PrakashIdnani
0
2K
Member Avatar for ROSS679

Hi All. I am currently at work on this program and have came accross this error when i debug the code in ASP via Internet Browser it displays the following message on top of the webform "Command text was not set for the command object" I am also having problems …

Member Avatar for Momerath
0
136
Member Avatar for phoenix_2000

Hello people, First of all, i'm not an experienced ASP coder at all, i usually do php/java so i'm still kinda puzzled by this language. For my current project, i need to update a piece of an intranet, written completely in ASP. since it can't be reached from my position, …

Member Avatar for phoenix_2000
0
189
Member Avatar for mrbarbarik

I want to make server page that can keep a parameter just like tracking ID. I want to pass that parameter from an asp page to another asp page when i clicked submit button. Can someone help me to solve this, i really need to finish this soon. So far …

0
94
Member Avatar for deeps2_daniweb

i have just started learning asp.net and webmatrix a week ago. i read these excellent tutorials http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/getting-started and i try to make a similar site that instead of movies have employee records. here is the code of web page which i made by modifying the given codes in thee tutorials. …

Member Avatar for deeps2_daniweb
0
326
Member Avatar for ocs2me

Below is my scripts: <% connstring ="Provider=MSDAORA;Data Source=(DESCRIPTION="&_ "(ADDRESS=(PROTOCOL=TCP)(HOST=cqcmdb1.corp.mot.com) (PORT=1521))"&_ "(CONNECT_DATA=(SID=CQPD2)));User ID=report_ccmpd_ro;Password=report" set con = server.CreateObject("ADODB.Connection") con.open connstring set conn = server.CreateObject("ADODB.Connection") conn.open connstring sqltest = "select T1.screen_failure, DBMS_LOB.SUBSTR(T1.ROOT_CAUSE_ANALYSIS,9000,1) AS RCATT from Submission_Record T1 where T1.dbid <> 0 and (T1.Headline like '%[O2O7]%')" set rs=server.createobject("adodb.recordset") rs.open sqltest ,con,1,3 sqltestonly = "select …

Member Avatar for gs98
0
115
Member Avatar for ravidaniweb

hi this is my connection string SqlConnection conn = new SqlConnection("Data Source=RAVI-PC\\SQLEXPRESS;Initial Catalog=personals;User ID=sa;password=sa;Integrated Security=True"); SqlDataAdapter da = new SqlDataAdapter(" select * from table_2", conn); DataSet ds = new DataSet(); da.Fill(ds, "table_1"); conn.Open(); Actually my doubt is how to insert(data entered in texbox) and delete and update view record from …

Member Avatar for nuevoenjava
0
227
Member Avatar for Paladine

This a just a basic webform setup of a listbox being populated with data from a database, in this case the Northwind Access database, and then populating textboxes with data related to the item the user selects. [u]1. WebForm [/u] -Create an ASP.NET webform page -Add a [b]listbox server control[/b] …

Member Avatar for HamplusTech
0
2K
Member Avatar for shivani.corp

I have created one form named newest_receipe.aspx in which i have various receipes name with respective date and time in a data list and receipe names are displayed using hyperlink. <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1" onselectedindexchanged="DataList1_SelectedIndexChanged"> <ItemTemplate> <asp:HyperLink ID="HyperLink20" runat="server" Font-Underline="True" ForeColor="#0000CC" onload="HyperLink20_Load"> <%# Eval("recipe_name") %> </asp:HyperLink> <asp:Label ID="datetimeLabel" runat="server" Text='<%# …

0
55
Member Avatar for gitopmax

Please i need help am newbie in asp, am trying to code a login page in which after user login all the user information will display in the success page i tried the following code but am not getting result. help me out pls member.asp <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <%option explicit%> <% …

0
68
Member Avatar for albright_family

Ok so I am using the default WebApplication in Visual Web Developer 2010, and applied Paladine's example of Simple ASP.Net Login page. And it is working, but only to some extent. I am sure I am just missing something INCREDIBLY simple, but after looking at this code for 2 days, …

Member Avatar for albright_family
0
406
Member Avatar for Rohan rawat

Inside a button link database with gridview . [CODE]protected void Button2_Click(object sender, EventArgs e) { string strSQLconnection = "Data Source=ABC-0D30299B90A;Initial Catalog=JAPIT;Integrated Security=True"; SqlConnection sqlConnection = new SqlConnection(strSQLconnection); SqlCommand sqlCommand = new SqlCommand("select * from Doe_detail", sqlConnection); sqlConnection.Open(); SqlDataReader reader = sqlCommand.ExecuteReader(); GridView1.DataSource = reader; GridView1.DataBind(); }[/CODE] For edit and update …

Member Avatar for vijay_myl
0
279
Member Avatar for Greg1982

Hi, Currently getting error below when I know the record exists in DB. Only happens on certain records, records in the DB before and after this work, I am puzzled. It is an Access DB ADODB.Field error '80020009' Either BOF or EOF is True, or the current record has been …

Member Avatar for vpgrmer
0
189
Member Avatar for suliya

Hi Morning all, here I've code how to insert data into multiple tables in Sql Server using asp.net C# form but the data unable to enter ang got error, may anyone help fix it form me? because i've tried so many times already but still cannot, there is the code …

Member Avatar for nakor77
0
3K
Member Avatar for gmonroyg

Hi guys, i'm trying to test my asp.net app. it works fine when in visual studio 2010 ide, connecting to Mysql database and running. but, when testing in IIS the published app get the message exception "no database selected". it's everything running local, windows xp, mysql 5.x, IIS 5.1 my …

Member Avatar for gmonroyg
0
1K
Member Avatar for jrb47

I generally do not work in asp however I am working on a project for a volunteer student org - they are working with pregnant teens. I have the following code and while I can get the names and address to pass I can not get the checkbox to pass …

0
71
Member Avatar for mdpepper

Hi guys! I am at the very end of a 3 month project and have encountered an issue right at the last hurdle. I am using my companies content management system to display a web page. The web page is information regarding a certain species of animal, and the content …

0
89
Member Avatar for MayaPawar

i have one html page. I want display data from database. i have created one asp file that display data from database also i have created html file which contains all design of web page. when i combine this two . it displays table from database but images are not …

Member Avatar for ArtistScope
0
306
Member Avatar for sraj44

[code] <%@Language=VBScript %> <!-- #include file = "connectOracle.asp" --> <%if trim(session("UserName"))<>"" then%> <% Response.Buffer = true SET con = server.CreateObject("adodb.connection") con.open "DSN=VTSDSN;UID=vtsplop;PWD=vts@123" set rs = server.CreateObject("adodb.recordset") set rsdest=server.CreateObject("adodb.recordset") rs.ActiveConnection = con Set ORACON = server.CreateObject("adodb.connection") ORACON.Open "Provider=MSDAORA.1;User ID=SAPVTS;password=VTSSAP;Data Source=prd;Persist Security Info=False" tdate = date() fdate = date()-1 VEHMOV=trim(request("VEHMOV")) trans_code = …

Member Avatar for Atul Dhiman
0
237
Member Avatar for and12

It is catching my exception error when I try to do a select student_id student_name from Student and put it in my dropdownlist. I already created the databases called college and tables Student, Course, and StudentCourse and put in fake data. I store my Connection String in the web.config file. …

Member Avatar for mlesniak
0
280
Member Avatar for davemac001

Hi guys, Im still relatively new to c# and asp.net. I have decided to create a web forum using asp.net and c# just to help myself get a better understanding of the languages. Some mates of mine informed me that there are some open source forum projects already out there. …

Member Avatar for shrnmlss6
0
291
Member Avatar for msaqib

[HTML][/HTML] [CODE][color=#0000ff]using[/color][color=#000000] System;[/color] [color=#0000ff]using[/color][color=#000000] System.Collections;[/color] [color=#0000ff]using[/color][color=#000000] System.ComponentModel;[/color] [color=#0000ff]using[/color][color=#000000] System.Data;[/color] [color=#0000ff]using[/color][color=#000000] System.Data.OleDb;[/color] [color=#0000ff]using[/color][color=#000000] System.Drawing;[/color] [color=#0000ff]using[/color][color=#000000] System.Web;[/color] [color=#0000ff]using[/color][color=#000000] System.Web.SessionState;[/color] [color=#0000ff]using[/color][color=#000000] System.Web.UI;[/color] [color=#0000ff]using[/color][color=#000000] System.Web.UI.WebControls;[/color] [color=#0000ff]using[/color][color=#000000] System.Web.UI.HtmlControls;[/color] [color=#0000ff]namespace[/color][color=#000000] lms[/color] { [color=#808080]///[/color][color=#808080]<summary> [/color][color=#808080]///[/color][color=#008000] Summary description for inc_search_books. [/color][color=#808080]///[/color][color=#808080]</summary> [/color][color=#0000ff]public[/color] [color=#0000ff]class[/color] inc_search_books : System.Web.UI.Page { [color=#0000ff]protected[/color] System.Web.UI.WebControls.TextBox Q; [color=#0000ff]protected[/color] System.Web.UI.WebControls.Button Button1; [color=#0000ff]protected[/color] System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1; [color=#0000ff]protected[/color] System.Web.UI.WebControls.Label …

Member Avatar for deepakjoy
0
2K

The End.