Click here to Skip to main content
15,923,142 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Question regarding major decline in data retrieval efficiency Pin
N a v a n e e t h3-Jan-10 4:46
N a v a n e e t h3-Jan-10 4:46 
GeneralRe: Question regarding major decline in data retrieval efficiency Pin
James Shao3-Jan-10 12:27
James Shao3-Jan-10 12:27 
QuestionUnit testing is a must learn technology for an asp.net programmer? Pin
popchecker2-Jan-10 19:49
popchecker2-Jan-10 19:49 
AnswerRe: Unit testing is a must learn technology for an asp.net programmer? Pin
N a v a n e e t h3-Jan-10 4:57
N a v a n e e t h3-Jan-10 4:57 
GeneralRe: Unit testing is a must learn technology for an asp.net programmer? Pin
popchecker3-Jan-10 17:16
popchecker3-Jan-10 17:16 
GeneralRe: Unit testing is a must learn technology for an asp.net programmer? Pin
N a v a n e e t h3-Jan-10 21:39
N a v a n e e t h3-Jan-10 21:39 
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 

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.