exactly Paul. and that's what i am trying to do in asp.net. But struggling big time with this.
Thanx in Advance
exactly Paul. and that's what i am trying to do in asp.net. But struggling big time with this.
Thanx in Advance
yes Paul it means 100,000 Well i had seen this working in my current asp application and i m trying to replicate the same in .net but struggling with it. i can tell u how it is working in asp application. below is the code of how it is implemented in asp response.buffer = false ' Sub DisplayRecords() sql = "spPatientSelectList " set oRs = oConn.execute(sql) if (oRs.eof) then response.write "No record found" & vbCrLf end if do while not oRs.eof response.write "" response.write "" & oRs("vchMedRecNum") & "" response.write "" & oRs("vchPatientFirstName") & "" response.write "" & oRs("vchPatientLastName") & "" response.write "" & oRs("dtPatientDateOfBirth") & "" response.write "" & oRs("vchPatientContactNumber") & "" response.write "" & oRs("vchPatientSSN") & "" response.write "" & vbCrLf oRs.moveNext loop oRs.close U see the key in the above code is response.buffer=false. but implementing the same in dotnet doesn't seems to help.
Thanx in Advance
thanks for the quick reply Paul. I guess what u r saying is get 100 records and display them and then again get another set 100 records and append them to the previous. I guess this will do wht i want but this will make me call db 100 times if i have 1 lakh records. What i want is to request 1 lakhs record in one call to db and as soon as i get any no of records i should be displying it.
Thanx in Advance
hi My requirement is below. Let's say i am getting 1 lakh records from DB.(using xmlhttp). now as soon as i get 100 records i need to display them, then again as soon as i get next set of records i should be displaying it. Means to say that the user should not wait for long time to view all the records, he should be getting records as soon as it comes. THanks in advance
Thanx in Advance
Can i raise any event using Required field validator without posting it back to the server
Thanx in Advance
well you can keep a counter in global.asax in session _Start event Enjoy Coding
Leaders are not born. They are made. They are made just like anything else. . . through hard work. That's the price we have to pay to achieve that goal or any goal. People who let events and circumstances dictate their lives are living reactively. That means that they don't act on life, they only react to it. To teach is to touch a life forever We cannot hold a torch to light another's path without brightening our own. Your key to freedom lies in your power to control your thoughts change your attitude. Don't complain. If you don't like something, change it. If you can't change it,change your attitude.Don't complain. Every day do your best. God will do the rest When God calls you to do something, he enables you to do it. Faith is daring the soul to go beyond what the eyes can see No God, No Peace. Know God, Know Peace Nearly all men can stand adversity, but if you want to test a man's character, give him power. Even though you may want to move forward in your life, you may have one foot on the brakes. In order to be free, we must learn how to let go. Release the hurt. Release the fear. Refuse to entertain your old pain. The energy it takes to hang onto the past is holding you back from a new life. What is it you would let go of today? "If you don't like something change it. If you can't change it, change your attitude. Don't complain." "The great use of life is to spend it on something that will outlast it." Bottom of Form "The greatest sweetener of human life is Friendship. "It is easier to fight for one's principles than to live up to them." "Often the test of courage is not to die but to live." "Some pray to marry the man they love, my prayer will somewhat vary: I humbly pray to heaven above that I love the man I marry." "Even in the common affairs of life, in love, friendship, and marriage, how little security have we when we trust our happiness in the hands of others!" "To be capable of steady friendship or lasting love, are the two greatest proofs, not only of goodness of heart, but of strength of mind." "Friendship is certainly the finest balm for the pangs of disappointed love." "May no gift be too small to give, nor too simple to receive, which is wrapped in thoughtfulness, and tied with love." "A woman knows the face of the man she loves like a sailor knows the open sea." sdf
Thanx for your interest in my query but what i want to know is why have u done OracleDataReader ordr1 = new OracleCommand(query_txt,oracleConnection1).ExecuteReader(); instead why u did not do this OracleDataReader ordr1 = new OracleDataReader(); // that is why we do not use new keyword with darareader Thanxs in Advance
Can any one plz tell me why we do not use new keyword in oracledataReader that is why this gives error OracleDataReader objectDR=new OracleDataReader(); Thanks In advance
how to get the culture of system in window application or what is the equivalent of request.userlanguages[] in window application sdf
How to get Culture of the system in web application and window application Thanks in advance
thanks mate it worked thanks
I am having problems in attaching my assemble this is the code for the same which is giving me error Al.exe/t:lib/embed: MyResource.resources,MyApplication.MyResource.resources /culture:en-GB/out:MyApplication.resources.dll the error is 'lib/embed: MyResource.resources,MyApplication.MyResource.resources /culture:en-GB/out:MyApplication.resources.dll' is not a valid setting for option 't' plz help me thanks in advance
WELL MY DEAR IF THE ONE CHAP YOU INTERVIEWED IS NOT GOOD THAT DOES NOT MEAN ALL INDIAN DEVELOPERS ARE BAD COME TO MY PLACE AND I'LL SHOW YOU WHAT AN INDAIN CAN DO, YOU DAMM SUCKER sdf
why don't you try if(!Page.ISPostBack) { -- code goes here }
Hi All, I am doing a project in which i am using iframe now when a page is called in a iframe the url does not get changed, now i want to change the url plz suggest something thanxs in Advance Bye Take care
Well you cannot access clients data from client's machine directly because of the access right now in these kind of situations what you have to do is . first you upload you pick the csv file name that resides on the client's machine pick it and upload it on the server then access it and then delete that file after accessing if you want to keep the file then you can keep it also. the cod for doing all this is below: # region "Method to import CSV File" private DataSet GetWorkSheet() { DataSet ds = new DataSet(); try { string temperory_Folder=Environment.GetEnvironmentVariable("TEMP").ToString()+"\\"; FileName_ErrorLog = System.IO.Path.GetFileNametbFileImport.PostedFile.FileName) ; int t=FileName_ErrorLog.LastIndexOf("."); string get_File_Name=FileName_ErrorLog.Substring(0,t); this.Session["FileName_ErrorLog"]=get_File_Name; FileName_WithOut_Extension ="Temp_csv"+this.Session.SessionID+".csv"; string SaveLocation =temperory_Folder; tbFileImport.PostedFile.SaveAs(SaveLocation+FileName_WithOut_Extension) ; int i=SaveLocation.Length; int j=SaveLocation.LastIndexOf(@"\")+1; pathName=SaveLocation.Substring(0,SaveLocation.LastIndexOf(@"\")); OleDbConnection con = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+pathName+";Extended Properties='text;HDR=Yes;FMT=Delimited'"); string strSql="SELECT * FROM "+FileName_WithOut_Extension + " where 1=2" ; OleDbDataAdapter da = new OleDbDataAdapter(strSql,con); da.Fill(ds); ds.Tables[0].Columns[4].DataType =Type.GetType("System.String"); strSql="SELECT * FROM "+FileName_WithOut_Extension ; leDbDataAdapter da1 = new OleDbDataAdapter(strSql,con); da1.Fill(ds.Tables[0]); con.Close(); File.Delete(SaveLocation+FileName_WithOut_Extension); return ds; } catch(Exception ex) { return ds; } } # endregion What the above mwthod will do is that it will use a html file input control to pick up a csv file and then gets the data in a data set and return's it I am sure this will help you bye take care sdf
Well for this first you have to download oracleclient.dll and then add this to your project and use this with ado.net include the following namespace using System.Data.OracleClient; then for connection use; public OracleConnection con=new OracleConnection(ConfigurationSettings.AppSettings["strCON"]); and command use: OracleCommand cmd=new OracleCommand(); Hope this will help
use http://10.1.1.10(give the computer id or the computer name where the page is stored)/test/WebForm1.aspx it will work Cheat to win
Hi All, Could anyone plz tell me how i can implement Css in my asp.net project at runtime. That is i have 2 different css with me, now what i want to do is I have a form named LOGIN.aspx now when i open this page from address bar i want Css1.css to be used at that time and when i open this login.aspx from any other page i want css2.css to be used. Plz suggested something Thanks in advance If you are not cheating then you are not trying