Click here to Skip to main content
15,910,130 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionedit ,cancel,delete datagrid Pin
saravanan0519-Aug-07 20:11
saravanan0519-Aug-07 20:11 
AnswerRe: edit ,cancel,delete datagrid Pin
Imran Khan Pathan19-Aug-07 20:30
Imran Khan Pathan19-Aug-07 20:30 
QuestionUsing namespaces in global.asax Pin
kbalias19-Aug-07 20:03
kbalias19-Aug-07 20:03 
QuestionPublishing my web site Pin
samerh19-Aug-07 19:30
samerh19-Aug-07 19:30 
AnswerRe: Publishing my web site Pin
Eduard Keilholz19-Aug-07 19:47
Eduard Keilholz19-Aug-07 19:47 
QuestionProblem with Global asax file [modified] Pin
ASPnoob19-Aug-07 19:18
ASPnoob19-Aug-07 19:18 
AnswerRe: Problem with Global asax file Pin
Christian Graus19-Aug-07 20:46
protectorChristian Graus19-Aug-07 20:46 
QuestionInserting into SQL problem ! Pin
mrkeivan19-Aug-07 19:07
mrkeivan19-Aug-07 19:07 
Hey guys, Ive got a registration Page. There I ve got some fields and I want to
insert some data into database ! I've got everything set !

	MyConn.ConnectionString = SqlDataSource1.ConnectionString.ToString();<br />
        MyConn.Open();<br />
        SqlCommand MyInsCmd = new SqlCommand();<br />
        MyInsCmd.Connection = MyConn;<br />
<br />
	MyInsCmd.CommandText = "INSERT INTO UserT (UserName, ...)VALUES   (@UserNameP, ...)";<br />
        SqlParameter UserNameP = new SqlParameter("@UserNameP", SqlDbType.NVarChar, 50);<br />
        UserNameP.Value = UserName_tb.Text;<br />
        MyInsCmd.ExecuteNonQuery();<br />
        MyConn.Close();


but I get this error !
Exception Details: System.Data.SqlClient.SqlException: Must declare the scalar variable "@UserNameP".
I have declared it !!! I dunno why I get this error !

please help me out !
AnswerRe: Inserting into SQL problem ! Pin
yuvachandra19-Aug-07 19:32
yuvachandra19-Aug-07 19:32 
GeneralRe: Inserting into SQL problem ! Pin
mrkeivan20-Aug-07 0:17
mrkeivan20-Aug-07 0:17 
AnswerRe: Inserting into SQL problem ! Pin
N a r e s h P a t e l19-Aug-07 19:59
N a r e s h P a t e l19-Aug-07 19:59 
QuestionCheck Box Pin
kaushik49019-Aug-07 18:42
kaushik49019-Aug-07 18:42 
Questionaccessing all controls of a page.. Pin
hkchauhan19-Aug-07 18:41
hkchauhan19-Aug-07 18:41 
AnswerRe: accessing all controls of a page.. Pin
mani_iips21-Aug-07 22:12
mani_iips21-Aug-07 22:12 
QuestionUsing Multiviews Pin
duo!@#19-Aug-07 17:03
duo!@#19-Aug-07 17:03 
QuestionCreate and Download CSV file in asp.net Pin
HatakeKaKaShi19-Aug-07 16:40
HatakeKaKaShi19-Aug-07 16:40 
AnswerRe: Create and Download CSV file in asp.net Pin
Christian Graus19-Aug-07 16:56
protectorChristian Graus19-Aug-07 16:56 
GeneralRe: Create and Download CSV file in asp.net Pin
HatakeKaKaShi19-Aug-07 17:18
HatakeKaKaShi19-Aug-07 17:18 
Questionneed help on Image control in the datalist Pin
hurrem19-Aug-07 15:25
hurrem19-Aug-07 15:25 
AnswerRe: need help on Image control in the datalist Pin
Rama Krishna Vavilala19-Aug-07 15:32
Rama Krishna Vavilala19-Aug-07 15:32 
GeneralRe: need help on Image control in the datalist Pin
hurrem19-Aug-07 15:56
hurrem19-Aug-07 15:56 
QuestionGoDaddy Email problem [modified] Pin
John Andrew19-Aug-07 13:31
John Andrew19-Aug-07 13:31 
GeneralCalling ClientSide Script 'after' handling server side [modified] Pin
Malcolm Smart19-Aug-07 11:58
Malcolm Smart19-Aug-07 11:58 
GeneralRe: Calling ClientSide Script 'after' handling server side Pin
Fred_Smith19-Aug-07 12:45
Fred_Smith19-Aug-07 12:45 
GeneralRe: Calling ClientSide Script 'after' handling server side Pin
Malcolm Smart19-Aug-07 13:31
Malcolm Smart19-Aug-07 13:31 

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.