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

ASP.NET

 
GeneralRe: Unit testing is a must learn technology for an asp.net programmer? Pin
popchecker3-Jan-10 22:43
popchecker3-Jan-10 22:43 
QuestionAjax modal pop up for dynamic control Pin
Hema Bairavan2-Jan-10 18:48
Hema Bairavan2-Jan-10 18:48 
Questionexecuting procedure, Pin
Hema Bairavan2-Jan-10 17:40
Hema Bairavan2-Jan-10 17:40 
AnswerRe: executing procedure, Pin
Brij2-Jan-10 23:04
mentorBrij2-Jan-10 23:04 
GeneralRe: executing procedure, Pin
Hema Bairavan3-Jan-10 2:06
Hema Bairavan3-Jan-10 2:06 
GeneralRe: executing procedure, Pin
Brij3-Jan-10 3:28
mentorBrij3-Jan-10 3:28 
AnswerRe: executing procedure, Pin
N a v a n e e t h3-Jan-10 5:38
N a v a n e e t h3-Jan-10 5:38 
GeneralRe: executing procedure, Pin
Hema Bairavan3-Jan-10 5:51
Hema Bairavan3-Jan-10 5:51 
thanks for your reply navneeth,
and i have give the same
..

my code is

SqlCommand Cmd = new SqlCommand();
_Dal.CreateCommand(ref Cmd, "dbo.fao_getpagedproducts");

Cmd.CommandType = CommandType.StoredProcedure;

SqlDataReader dr;


Cmd.Parameters.Add("@PageSize", SqlDbType.Int, 4).Value = pager1.PageSize;
Cmd.Parameters.Add("@CurrentPage", SqlDbType.Int, 4).Value = pager1.CurrentIndex;
Cmd.Parameters.Add("@Text", SqlDbType.Char, 50).Value = "%"+txtSearch.Text.Trim()+"%";
Cmd.Parameters.Add("@DDLCategory", SqlDbType.Int, 1).Value = Convert.ToInt32(RBCategory.SelectedValue.ToString().Trim()
== "" || RBCategory.SelectedValue.ToString().Trim() == "9" ? "0" : RBCategory.SelectedValue.ToString().Trim());
Cmd.Parameters.Add("@ItemCount", SqlDbType.Int).Direction = ParameterDirection.Output;

dr = Cmd.ExecuteReader();

rptProducts.DataSource = dr;
rptProducts.DataBind();

dr.Close();

here txtSearch is a text box for which i have search
and my procedure is

create PROCEDURE dbo.fao_getpagedproducts(
@Text INT,
)

select * from table where column like @Text

i have shown my simple code

here my text is not working fine..
can you get me wat i m asking for?
GeneralRe: executing procedure, Pin
N a v a n e e t h3-Jan-10 6:11
N a v a n e e t h3-Jan-10 6:11 
GeneralRe: executing procedure, Pin
Hema Bairavan3-Jan-10 6:18
Hema Bairavan3-Jan-10 6:18 
Questionasp:menu issue Pin
THE SK2-Jan-10 9:42
THE SK2-Jan-10 9:42 
AnswerRe: asp:menu issue Pin
Abhijit Jana2-Jan-10 10:19
professionalAbhijit Jana2-Jan-10 10:19 
GeneralRe: asp:menu issue Pin
THE SK2-Jan-10 10:30
THE SK2-Jan-10 10:30 
GeneralRe: asp:menu issue Pin
Abhishek Sur2-Jan-10 10:54
professionalAbhishek Sur2-Jan-10 10:54 
GeneralRe: asp:menu issue Pin
THE SK2-Jan-10 11:03
THE SK2-Jan-10 11:03 
GeneralRe: asp:menu issue Pin
Abhishek Sur3-Jan-10 2:30
professionalAbhishek Sur3-Jan-10 2:30 
QuestionClickOnce Deployment Issue!! Pin
Sr...Frank2-Jan-10 9:07
Sr...Frank2-Jan-10 9:07 
AnswerRe: ClickOnce Deployment Issue!! Pin
Abhijit Jana2-Jan-10 9:19
professionalAbhijit Jana2-Jan-10 9:19 
GeneralRe: ClickOnce Deployment Issue!! Pin
Sr...Frank2-Jan-10 9:35
Sr...Frank2-Jan-10 9:35 
QuestionMenu Links In Master Pages Pin
Brendan Vogt2-Jan-10 2:43
Brendan Vogt2-Jan-10 2:43 
AnswerRe: Menu Links In Master Pages Pin
Brij2-Jan-10 3:40
mentorBrij2-Jan-10 3:40 
GeneralRe: Menu Links In Master Pages Pin
Brendan Vogt4-Jan-10 5:24
Brendan Vogt4-Jan-10 5:24 
QuestionHow to Format Text in ASP.net ????????? Pin
THE SK2-Jan-10 1:31
THE SK2-Jan-10 1:31 
AnswerRe: How to Format Text in ASP.net ????????? Pin
Abhishek Sur2-Jan-10 9:14
professionalAbhishek Sur2-Jan-10 9:14 
Questionhow to add flash file in asp.net web page Pin
Amit Spadez1-Jan-10 20:53
professionalAmit Spadez1-Jan-10 20:53 

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.