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

What are the options in ASP.NET to maintain state?

0 Answers   CDC,


please give a brief knowledge about these events ? page_render() page_prerender() page_unload page_loadcomplete page_preinit

1 Answers   Netsweeper,


Can more than one person use the same login?

0 Answers   MCN Solutions,


how can i deploy a asp.net webapplication.in a company so that all employees may access application on their different computers and share a single database. plz tell me the steps to do it..thanks.

1 Answers  


How can we prevent an aspx page get refreshed when any information fetch from the database ?

2 Answers   Minecode,


What is the used of "ispostback" property?

0 Answers  


Hey I am using asp.net mvc architecture. I creating one dropdownlist using <select id="State" name="State"></select> this is dynamic list.Its displaying properly. But in time of Edit.If i load a page dropdownlist is not displaying the item which is stored in table.

1 Answers  


What is custom events?

0 Answers  


what is loosely coupled solution? How it can be used?

0 Answers   Siebel,


Every Validation controls have same option ?

2 Answers   iGate,


i need code for insert,delete,update adn display records using stored procedure in C#

2 Answers  


What is asp.net used for?

0 Answers  


Categories