1.how to encrpt query string in asp.net?
2.there are 10000 records then i wnat display 5000 records
one gridview and 5000 records another grid view
what is the process?

Answers were Sorted based on User's Feedback



1.how to encrpt query string in asp.net? 2.there are 10000 records then i wnat display 5000 records..

Answer / don

if there are 10000 records , break the records into two
half using sql quries and then by using ado.net
connectivity we can do this,

1st 5000 records: string s1=select top 5000 * from emp

2nd 5000 records: string s2=select top 5000 * from emp
order by empid desc

sqldataAdapter d1 = new sqldatAadapter(s1);
sqldataAdapter d2 = new sqldatAadapter(s2);

dataset ds = new dataset();

d1.fill(ds,"e1");
d1.fill(ds,"e2");

grid1.datasource = ds.tables["e1"];
grid1.datasource = ds.tables["e2"];

Is This Answer Correct ?    9 Yes 2 No

1.how to encrpt query string in asp.net? 2.there are 10000 records then i wnat display 5000 records..

Answer / paban

If the connection source is one then use limit command in
both the sql commands.

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More ASP.NET Interview Questions

Why is catch(Exception) almost always a bad idea?

4 Answers  


what is asp.net

4 Answers  


Which validator control you use if you need to make sure the values in two different controls matched?

0 Answers  


What are the media types of http requests and response?

0 Answers  


when we write the html code with runat = server it works like a server control than why we use the server control?

1 Answers  






write a sample code make use of xmltext writer

1 Answers   GCI,


I have a webform in asp.net.In that webform there is 2 division class(DIV).in one of the div class there is a text box for enter the id & a button for to check id with database value.My doubt is that how can i appear the 2nd Div contents only when the id is true with database value.if wrong do not display the div . i Want code in c#.

2 Answers  


What are cookies in asp.net?

0 Answers  


What is AutoEventWireup attribute for ?

0 Answers  


what is the advantage of data reader?

2 Answers  


Distinguish between Server-side and Client-side code?

0 Answers   Siebel,


what are the events raised in asp.net page life cycle?in which stage view state can be loaded?

0 Answers   EDS,


Categories