Hi every body. i want to have a query in sql server 2000 which loads the sets of number less than 100. what should i do? SELECT ? [WHERE]? Thanks Rastgar
m rastgar
Posts
-
less than 100 query -
what should i do with this ole behavior?i use crystalreport10 in my site. i want to show a html file content with ole component in my rpt file. but it does not show that. or i make a word document from the html file. and then insert it to my crystal report as ole component. but just the first page of the word file will be shown. i want the whole of the file to be shown. what should i do. please describe me step by step if its possible. Thanks Rastgar
-
how to force file download?how about with javascript? Thanks Rastgar
-
how to force file download?i have a static html page. i have a link in it to download a pdf file. i want to force download the file, not to open it, when user click on it. but if user had installed acrobotreader in his/her pc, my link open the file directly. but i dont want to act so. i want file to be downloaded. thanks rastgar
-
Scrollbar position on a panel web server controlyourpanleid.scrollTop, yourpanelid.scrollLeft. for your panel id, refer your page html which is rendered. note, these two methods are client side methods. you can save them in a hidden field. i save them in a hidden textbox by scrollchange() method. and set them by changescroll() method: function scrollchange() { document.getElementById("txtScroll").value=document.body.scrollTop; document.getElementById("txtScroll").value+=";"+document.body.scrollLeft; } function changescroll() { if(document.getElementById("txtScroll").value != "") { parts = document.getElementById("txtScroll").value.split(";"); document.body.scrollTop = parseInt(parts[0]); document.body.scrollLeft = parseInt(parts[1]); } } Thanks Rastgar
-
nobody knows my question: How can I show my error page in new page and old page should steel shows old data?I want to show my error page in new page. Old page should still shows old data. I write in applicationerror event in global, this: response.write("window.open('errorpage.aspx')"); But there is a problem with it. The old page shows aspx error message displaying my code and exception. If I set custom error in config, my old page will be redirected to errorpage which is set in custom error tag. If I use Server.ClearError() method, the old page will be cleared entirely and shows blank page. I WANT MY OLD PAGE TO SHOW THE OLD DATA WITH USER CHANGES WHICH CAUSING ERROR AND THE NEW PAGE, SHOWS MY ERRORPAGE LIKE ERROR MESSAGE IN WINDOWS APPLICATION. I don't want to handle my all errors by try catch. I want to handle all of them in allication error. Because I can find my latest exception by Server.GetLastError() method. Please instruct me what to do. Thanks Rastgar
-
nobody knows my question: How can I show my error page in new page and old page should steel shows old data?i'm sure. nobody knows. Thanks Rastgar
-
Can anybody help me to use combobox from Javascript function [modified]var elSel = document.getElementById('selectX'); if (elSel.selectedIndex >= 0) { var elOptNew = document.createElement('option'); elOptNew.text = 'Insert' + num; elOptNew.value = 'insert' + num; var elOptOld = elSel.options[elSel.selectedIndex]; try { elSel.add(elOptNew, elOptOld); // standards compliant; doesn't work in IE } catch(ex) { elSel.add(elOptNew, elSel.selectedIndex); // IE only } Thanks Rastgar
-
DownLoad Using JavaScriptwindow.open(your site url and the file like:"http://www.mysite.com/file/music.mp3"); Thanks Rastgar
-
nobody knows my question: How can I show my error page in new page and old page should steel shows old data?I want to show my error page in new page. Old page should still shows old data. I write in applicationerror event in global, this: response.write("window.open('errorpage.aspx')"); But there is a problem with it. The old page shows aspx error message displaying my code and exception. If I set custom error in config, my old page will be redirected to errorpage which is set in custom error tag. If I use Server.ClearError() method, the old page will be cleared entirely and shows blank page. I WANT MY OLD PAGE TO SHOW THE OLD DATA WITH USER CHANGES WHICH CAUSING ERROR AND THE NEW PAGE, SHOWS MY ERRORPAGE LIKE ERROR MESSAGE IN WINDOWS APPLICATION. I don't want to handle my all errors by try catch. I want to handle all of them in allication error. Because I can find my latest exception by Server.GetLastError() method. Please instruct me what to do. Thanks Rastgar
-
Can I access any Server control in Javascript function in .Net1-.net id generator usually change your components id when it is rendering your component to client. it concats some prefix to the component original id. it is usually "ctl00_ContentPlaceHolder1_". so your component id in client mode will be converted to "ctl00_ContentPlaceHolder1_tbCmpName". so your code should be this: alter(document.getElementById('ctl00_ContentPlaceHolder1_tbCmpName').id); 2-string variable and its length: var b = 'Hello World'; window.alert(b.length); Thanks Rastgar
-
How can I show my error page in new page and old page should steel shows old data?As I mentioned in subject, I want to show my error page in new page. Old page should steel shows old data. I write in applicationerror event in global, this: response.write("window.open('errorpage.aspx')"); But there is a problem with it. The old page shows aspx error message displaying my code and exception. If I set custom error in config, my old page will be redirected to errorpage which is set in custom error tag. If I use Server.ClearError() method, the old page will be clear entirely and shows blank page. I WANT MY OLD PAGE TO SHOW MY OLD PAGE WITH USER CHANGES WHICH CAUSING ERROR AND THE NEW PAGE, SHOWS MY ERRORPAGE LIKE ERROR MESSAGE IN WINDOWS APPLICATION. I don't want to handle my all errors by try catch. I want to handle all of them in allication error. Because I can find my latest exception by Server.GetLastError() method. Please instruct me what to do. Thanks Rastgar
-
How can I handle my error class whenever any exception is raised.As I mentioned, if I set this tag off, the asp.net shows the error in old page. But I want the old page still be shown. If you get confused, plz read my first and second message again to find out my question correctly. I should clear asp default error and show my old page. But how? Server.clearerro() method just clear the asp error but my old page never be recovered. thanks rastgar
-
How can I handle my error class whenever any exception is raised.I know application error event. But there is a problem with it. I should just redirect to another page in this event else, the page which error is raised, will be redirected to error page. But I’d like my old page is still shown. And I show the error in another page. I know that I should write in this event: Response.Write("window.open('errorpage.aspx')"); But the page that error raises from that will be still redirected to error page or ASP.Net default errorpage. What should I do to prevent from this redirection? Thanks Rastgar
-
How can I handle my error class whenever any exception is raised.I have an error class in my asp.net with c# project. It is responsible for handling errors. Could I handle it, when any exception raises, my class method raise? If yes, tell me how? Thanks Rastgar
-
How can i make my page, not to show error?could i have a class when any exception raises, my class method raise> if yes, tell me how? Thanks Rastgar
-
How can i make my page, not to show error?Hi. In my webapplication, i never handle errors by try catch (my code language is c#). But I handle all errors in PageError and Applicationerror events. But after handling them, I want to show my message in another page. I do that on this way: Response.Write("window.open('errorpage.aspx')"); But I have a problem. On this way, the first page shows the exception and the code which error was raised. But I want to show the original page, because I show my message in another page. Please offer my method to do the way which I want to handle my errors. Thanks Rastgar
-
what should i do with crystal report export error?How can I set full access for this folder? Please explain it step by step if it is possible:-D. Thanks Rastgar
-
what should i do with crystal report export error?I use crystal report to export pdf file in my web application. My crystal report file name is testreport. I user these commands to export: testreport report = new testreport(); report.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, "aaa.pdf"); But when I run it I have error: "Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: Error in File C:\DOCUME~1\EHSAN-~1\ASPNET\LOCALS~1\Temp\temp_5a2db3c1-f7ea-455d-a5c1-c37a91b5f8a9.rpt: Access to report file denied. Another program may be using it." I never use this file:"C:\DOCUME~1\EHSAN-~1\ASPNET\LOCALS~1\Temp\temp_5a2db3c1-f7ea-455d-a5c1-c37a91b5f8a9.rpt" But the error is that file is in use. Please help me. I develop with visual studio 2003, my language C#.net. Thanks Rastgar
-
In which event i can force user to save its dataThanks for your help. Your code works very well. But when i use it, after alert 'pls save', I have another alert: "Are you sure you want to navigate away from this page? false Press ok to continue, or cancel to stay on the current page." it happens after code: "window.event.returnValue = false;" I don't want this alert to be shown. What should I do? Thanks Rastgar