Click here to Skip to main content
15,913,487 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionLifetime of an object in ASP.NET Pin
www.Developerof.NET29-Jun-07 2:42
www.Developerof.NET29-Jun-07 2:42 
AnswerRe: Lifetime of an object in ASP.NET Pin
Sylvester george29-Jun-07 2:52
Sylvester george29-Jun-07 2:52 
GeneralRe: Lifetime of an object in ASP.NET Pin
www.Developerof.NET29-Jun-07 3:05
www.Developerof.NET29-Jun-07 3:05 
GeneralRe: Lifetime of an object in ASP.NET Pin
Not Active29-Jun-07 3:12
mentorNot Active29-Jun-07 3:12 
GeneralRe: Lifetime of an object in ASP.NET Pin
www.Developerof.NET29-Jun-07 3:35
www.Developerof.NET29-Jun-07 3:35 
QuestionBiztalk, pls, answer. pls. I have created a flatfile schema Pin
indian14329-Jun-07 2:27
indian14329-Jun-07 2:27 
AnswerRe: Biztalk, pls, answer. pls. I have created a flatfile schema Pin
Not Active29-Jun-07 2:36
mentorNot Active29-Jun-07 2:36 
Questionincorrect syntax error..., Pin
Member 387988129-Jun-07 2:20
Member 387988129-Jun-07 2:20 
in my button click event i am filling the datas from my stored procedure to datagrid...,
But i am getting error like...,
Incorrect syntax near ','
And its showing error place at

mysqldataadapter.fill(mydataset,"st") place...,
This is my code...,

mySqlDataAdapter = New SqlDataAdapter("Magview" & Val(ddEmpid.SelectedItem.Value) & "," & Val(ddlMonth.SelectedItem.Value) & "," & Val(ddlYears.SelectedItem.Value) & "", sqlconn)

myDataSet = New DataSet

mySqlDataAdapter.Fill(myDataSet, "st")
DataGrid1.DataSource = myDataSet
DataGrid1.DataBind()
mySqlDataAdapter.Dispose()
myDataSet.Dispose()
sqlconn.Close()


And this is my stored procedure:

CREATE PROCEDURE MagView
(
@EId as int,
@months as tinyint,
@years as smallint
)
As
begin

select hra as hra1,'hra' AS magc
from tblmonthsalary
where hra <> 0 and Eid=@Eid and Smonth=@months and SYear=@Years
UNION
select ca as hra1, 'Ca' AS magc
from tblmonthsalary
where ca <> 0 and Eid=@Eid and Smonth=@months and SYear=@Years
UNION
select ota as hra1, 'ota' AS magc
from tblmonthsalary
where ota <> 0 and Eid=@Eid and Smonth=@months and SYear=@Years
UNION
select sha as hra1, 'sha' AS magc
from tblmonthsalary
where sha <> 0 and Eid=@Eid and Smonth=@months and SYear=@Years
union
select al as hra1,'al' AS magc
from tblmonthsalary
where al <> 0 and Eid=@Eid and Smonth=@months and SYear=@Years
UNION
select alp as hra1, 'alp' AS magc
from tblmonthsalary
where alp <> 0 and Eid=@Eid and Smonth=@months and SYear=@Years

end
GO



Plz solve my probs...,








Regards,
Magi

AnswerRe: incorrect syntax error..., Pin
kubben29-Jun-07 2:25
kubben29-Jun-07 2:25 
GeneralRe: incorrect syntax error..., Pin
Member 387988129-Jun-07 2:28
Member 387988129-Jun-07 2:28 
GeneralRe: incorrect syntax error..., Pin
kubben29-Jun-07 2:31
kubben29-Jun-07 2:31 
GeneralRe: incorrect syntax error..., Pin
Member 387988129-Jun-07 2:37
Member 387988129-Jun-07 2:37 
AnswerRe: incorrect syntax error..., Pin
doWhileSomething29-Jun-07 14:53
doWhileSomething29-Jun-07 14:53 
QuestionIdentifier Expected Error Pin
vijay_8329-Jun-07 2:01
vijay_8329-Jun-07 2:01 
AnswerRe: Identifier Expected Error Pin
Vasudevan Deepak Kumar29-Jun-07 2:10
Vasudevan Deepak Kumar29-Jun-07 2:10 
NewsNAKRA final Pin
NAKRAINC29-Jun-07 1:46
NAKRAINC29-Jun-07 1:46 
GeneralRe: NAKRA final Pin
kubben29-Jun-07 1:50
kubben29-Jun-07 1:50 
GeneralRe: NAKRA final Pin
Vasudevan Deepak Kumar29-Jun-07 2:12
Vasudevan Deepak Kumar29-Jun-07 2:12 
GeneralRe: NAKRA final Pin
kubben29-Jun-07 2:23
kubben29-Jun-07 2:23 
Questionweb user control Pin
kvijayajyothy29-Jun-07 1:32
kvijayajyothy29-Jun-07 1:32 
AnswerRe: web user control Pin
kubben29-Jun-07 1:45
kubben29-Jun-07 1:45 
GeneralRe: web user control Pin
kvijayajyothy29-Jun-07 2:17
kvijayajyothy29-Jun-07 2:17 
GeneralRe: web user control Pin
kubben29-Jun-07 2:22
kubben29-Jun-07 2:22 
AnswerRe: web user control Pin
Vasudevan Deepak Kumar29-Jun-07 2:15
Vasudevan Deepak Kumar29-Jun-07 2:15 
QuestionWhat are Macros? Pin
vijay_8329-Jun-07 1:28
vijay_8329-Jun-07 1:28 

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.