Hello, I want to set javascript variable value to session variable in javascript. I am able to get Session Variable value to javascript variable as, <%string str="s2345";Session["Resolution"]=str;%> var Id=('<%=Session["Resolution"]%>'); But I want to set javascript variable value say screen.width to my Session Variable. Please let me know if someone knows the way Swapnil Bhavsar
swapnilbhavsar
Posts
-
How to set javascript variable value to Session Variable -
What is maximum Session Timeout Value in Web.configHello I am developing an Web Applcation. What is the maximum timeout for sessionState in web.config so that my Session variables doesn't get destroy. Swapnil Bhavsar
-
How to handle multiple browsers in ASP.NETHi I am developing an web site in ASP.NET using c#. Site run fine when number of users are limited say 9 to 10. When we open 3 browser from 4 to 5 pc for testing purpose then in some browser it some css files or js doesn't get downloaded.Also it gives Time Error for Session means get Session get killed. If there is any setting IIS or in Web.config file to increase connection pooling,please reply. Swapnil Bhavsar
-
Session Management in ASP.NETHello I am developing an application in asp.net using c#. Here first user enters through login. and after doing his/her work,user clicks on Sign Out Link. In that,I Clear & Kill all sessions. But When I open more than one browser and use my application. If I login through One session and then make sign out,other's browser's Session also get killed. Please let me know if any knows the solution Swapnil Bhavsar
-
How to pass words which contains special character (as Réservation) in javascript in ASP.NETHi I am developing an application in ASP.NET USING c#. In that , I am using javascript for on mouse-over on my icon and showing some message.But these messages are in french like Réservation. So here is special character as `. So it gives me error in javascript as UnTerminated String. Please let me know if any body knows solution. Swapnil Bhavsar
-
Go to Page Number of PDF using iTextSharpHello I am developing an application in asp.net using c#. When user open PDF file,it should go to the specific Page Number. e.g When if I am passing Page No. 7 ,then file should open at Page Number 7. I tried this using iTextSharp.But this can be done at the time of creating file through 'PdfAction.gotoLocalPage'. But I want this to be apply on existing pdf.I don't want create it again and again because I want this process several times. Please let me know if someone knows. Swapnil Bhavsar
-
How to buffer Media Player in asp.netHi I am developing an application in asp.net.I used Media Player Embed Object. It get buffer when user click on 'Play' Button.But I want to pre-buffer it. In short I want Auto-Buffer that Media Player. Please let me know if any body know the solution. Swapnil Bhavsar
-
How to cast HTTTPpostedFile in asp.netHello, I am developing Web Application in that I am storing HTTPPostedFile in Datatable.But after that I am not able to fetch that File in HTTPPostedFile object. I had written code as, HttpPostedFile obj_Posted; sobj_Posted =((HttpPostedFile)dt.Rows[0]["HttpPostedFile"]).FileName; But here error comes as invalid type cast swapnil Bhavsar
-
How to apply validator for nested datagrid [modified]I am developing ASP.NET application . I used nested datagrid.In this,I need to apply validator for each row. But each validator of each row should not be applicable for other row. Swapnil Bhavsar -- modified at 7:34 Friday 30th March, 2007
-
How to apply filter to Input file type control in asp.net [modified]Hello, I am developing application which upload the mp3 files using input control of file type in ASP.NET 1.1 framework. In that I want to apply filter on that so that user can only select mp3 files. Please let me know if any have solution. Swapnil Bhavsar -- modified at 9:00 Tuesday 20th March, 2007
-
Error in Switching Between HTTP and HTTPS AutomaticallyHi I downloaded the code of 'Switching Between HTTP and HTTPS Automatically ' from code project and trying to run it but it is giving me error as File or assembly name WebPageSecurity, or one of its dependencies, was not found. in in web.config If it is require a change in code,please let me know. Swapnil Bhavsar
-
How to Replace only whole word in ASP.net using c#Here I want to replace string. e.g My string is "Add new message in newthing" here I want to replace "new".But when I used string.replace then it replaces "newthing" also.In short I want to replace whole word. Swapnil Bhavsar
-
How to access the dynamically created check boxes and text boxesHello I am developing application which creates text-box and check box at run time in asp.net using c#.I am adding checkbox n textbox to panel. as Checkbox chk=new Checkbox(); this.mypanel.controls.add(chk); and text box as Textbox txt=new Textbox(); this.mypanel.controls.add(txt); by this check box get added successfully. but when i am going to get the value of that check box n text box it by Find control then it give me error as "undefined". So I want to access textboxes n checkboxes which r created runtime. Swapnil Bhavsar
-
How to get Text from audio File [modified]I am developing an application in asp.net using c#. In that ,I have audio file and i want to identify the words from that audio and I have to write it down. Plz,Let me know if anybody have its answer. Swapnil Bhavsar S/W Developer,Pune -- modified at 5:09 Thursday 31st August, 2006
-
How to make First Letter of word Capital in crystal reportHello I am developing one vb.net application. In that,by using Toword() function I convert number to text as 150---one hundred fifty. But I want this o/p as One Hundred Fifty that means all first characters are in capital letter. Swapnil Bhavsar
-
How to convert amount into words in crystal reportHello, I am developing application in vb.net.In that,I used the crystal report. In that I want to convert amount like 140 to "One Hunderd fourty" how to convert that into crystal report? Swapnil Bhavsar
-
ASp.Net DataGridHi u can solve this problem by adding one javascript function in the textbox. In that,u just send the id of each text boxes and in that javascript function, u have check the length of that text box by finding text box as getelementbyid. Swapnil Bhavsar
-
Avoid mulitple login for same userHello I am developing on web-application in asp.net using c#. In that I want to avoid mulitple login for same user. That means one user can login only at a time. So I want without Database hitting. I tried this by taking Application varible,if user properly make sign out then it is working. But when user closes brower in another way,then my coding is not working. I want to it using Application varible or Session or any method but without hitting the database. Bye Swapnil Bhavsar
-
Can't get the asp.net control through AJAXI build one application in ASP.NET using c#. In that I use AJAX to call the server side function to bind the data to repeater. All things are going very well but problem is that,when I am going to bind the data to repeater then,it grives me error as "Object reference not set to an Instance". That means it don't identify the control which is already taken on page. Also if I am going to invisible to the ASP Button then it gives the same error. Swapnil Bhavsar
-
How to get the position of mouse click in text BoxHi I am creating one application in ASP.NET using the c#. In my application I use the Text Box with multi line,on that I create the Context menu to select the text in that text box. I am able to cut the selected word from that text box but i want to Undo that cutted word by selecting the option in the context menu. So I want to know how I can capture the position of mouse click of the context menu in my text. In short I want to make the functionality as "Cut" And "Undo Cut" in the normal notepad. Swapnil Bhavsar