Click here to Skip to main content
15,914,070 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: why cant i access a session variable Pin
Meax14-May-08 3:06
Meax14-May-08 3:06 
QuestionProblem while Loading image from external site Pin
sreeraghavendra14-May-08 2:29
sreeraghavendra14-May-08 2:29 
AnswerRe: Problem while Loading image from external site Pin
Christian Graus14-May-08 2:39
protectorChristian Graus14-May-08 2:39 
Questionsearch result highlight Pin
Pankaj Garg14-May-08 2:27
Pankaj Garg14-May-08 2:27 
AnswerRe: search result highlight Pin
eyeseetee14-May-08 2:36
eyeseetee14-May-08 2:36 
QuestionAdd new record to database using C# [modified] Pin
Poonam Gandash14-May-08 2:07
Poonam Gandash14-May-08 2:07 
AnswerRe: Add new record to database using C# Pin
eyeseetee14-May-08 2:19
eyeseetee14-May-08 2:19 
GeneralRe: Add new record to database using C# Pin
Poonam Gandash14-May-08 2:28
Poonam Gandash14-May-08 2:28 
That I can use but I am confused with connections. I used to use command for setting connection in asp here I am using Access datasource. So how I will define connectionname to my query.

In add_subadmin.aspx I added 3 text boxes and onbutton click a function is called in default.aspx.cs file . Having this code.

DataSet dataSet1 = new DataSet();
DataRow newCustomersRow = dataSet1.Tables["subadmin"].NewRow();
newCustomersRow["name"] = subname.Text;
newCustomersRow["username"] = username.Text;
newCustomersRow["password"] = password.Text;
dataSet1.Tables["subadmin"].Rows.Add(newCustomersRow);
error says:

Compiler Error Message: CS0103: The name 'subname' does not exist in the current context

Source Error:



Line 22: DataRow newCustomersRow = dataSet1.Tables["subadmin"].NewRow();
Line 23: newCustomersRow["name"] = subname.Text;
Line 24: newCustomersRow["username"] = username.Text;
Line 25: newCustomersRow["password"] = password.Text;
GeneralRe: Add new record to database using C# Pin
eyeseetee14-May-08 2:36
eyeseetee14-May-08 2:36 
GeneralRe: Add new record to database using C# Pin
Poonam Gandash14-May-08 3:03
Poonam Gandash14-May-08 3:03 
GeneralRe: Add new record to database using C# Pin
eyeseetee14-May-08 3:11
eyeseetee14-May-08 3:11 
QuestionMenu controls-- Help Needed Pin
Jagadeesh Jupalli14-May-08 1:15
Jagadeesh Jupalli14-May-08 1:15 
AnswerRe: Menu controls-- Help Needed Pin
eyeseetee14-May-08 1:20
eyeseetee14-May-08 1:20 
GeneralRe: Menu controls-- Help Needed Pin
Jagadeesh Jupalli14-May-08 1:40
Jagadeesh Jupalli14-May-08 1:40 
QuestionHow to create DropDown Dynamically Pin
sandeep.x.gupta14-May-08 1:08
sandeep.x.gupta14-May-08 1:08 
AnswerRe: How to create DropDown Dynamically Pin
eyeseetee14-May-08 1:19
eyeseetee14-May-08 1:19 
GeneralRe: How to create DropDown Dynamically Pin
sandeep.x.gupta14-May-08 2:43
sandeep.x.gupta14-May-08 2:43 
Questionpassing control inside detaliview or gridview to javascript Pin
justintimberlake14-May-08 0:47
justintimberlake14-May-08 0:47 
AnswerRe: passing control inside detaliview or gridview to javascript Pin
TheWirelessGuy15-May-08 9:25
TheWirelessGuy15-May-08 9:25 
QuestionAvoid Back Button Click Pin
IamAmit14-May-08 0:28
IamAmit14-May-08 0:28 
AnswerRe: Avoid Back Button Click Pin
eyeseetee14-May-08 0:32
eyeseetee14-May-08 0:32 
GeneralRe: Avoid Back Button Click Pin
IamAmit14-May-08 0:45
IamAmit14-May-08 0:45 
General[Message Deleted] Pin
IamAmit14-May-08 1:14
IamAmit14-May-08 1:14 
GeneralRe: Avoid Back Button Click Pin
eyeseetee14-May-08 1:18
eyeseetee14-May-08 1:18 
GeneralRe: Avoid Back Button Click Pin
IamAmit14-May-08 1:21
IamAmit14-May-08 1:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.