Dear all, In my application i have first Datecontrol(using javascript) next followed by 2 dropdowns and finally uploader control from CuteWebUI.AjaxUploader.dll(its works like user control) I am CuteWebUI.AjaxUploader.dll for uploader control which will show progress bar + time elapse while uploading a file it is showing postback In IE it is working .(First i need to select date from Datecontrol followed by 2 dropdowns then need to select uploader button (like browse) and save finally) But if the same page if i executed in Mozilla i am unable to open Datecontrol.But here i am facing one problem after selecting a file through uploader button showing postback then if i click datecontrol again now it is opening datecontrol.I am having doubt y datecontrol is not opening for first time. Can any one help on these?Here is code for your reference. uploadDocumentPopUp.aspx ------------------------ <%@ Register Assembly="CuteWebUI.AjaxUploader" Namespace="CuteWebUI" TagPrefix="cc2" %> uploadDocumentPopUp.aspx.cs --------------------------- protected void Uploader_FileUploaded(object sender, UploaderEventArgs args) { Uploader uploader = (Uploader)sender; fileName = args.FileName; string fileNameWithOutExt = Path.GetFileNameWithoutExtension(fileName); string fileExtension = Path.GetExtension(fileName); fileNameWithOutExt += DateTime.Now + fileExtension; fileNameWithOutExt = fileNameWithOutExt.Replace("/", ""); fileNameWithOutExt = fileNameWithOutExt.Replace(":", ""); fileNameWithOutExt = fileNameWithOutExt.Replace(" ", ""); ViewState["fileName"]=fileNameWithOutExt; args.CopyTo(Server.MapPath(@"..\Documents\" + fileNameWithOutExt)); //alertMessage.Alert.Show("Document got uploaded please click upload button"); Response.Write("alert('Document got uploaded successfully please click upload button!');"); } thanks in advance, Subbu.
attalurisubbu
Posts
-
Javascript calendar control for first time not openning in Mozilla -
Show Progress Bar % with estimated time while uploading a fileHi all, I need to show a progress bar with % of loading while uploading a file. Can any one help on this i am using VS2005. Thanks in advance, Balu.
-
Date formate changing in Italian settingsHi all, I am facing problem in displaying the Date formate in Excel . From Database i am displaying the Date lets say the Formate "dd/mm/yy" e.g 03/05/10. nothing but (3rd May 2010) The above formate is displaying in correctly in English settings but when the client generating the excel, there it is displaying as "05/03/10" i mean day and month are interchanging. (Because they are using Italian settings due to this reason date is displaying like 05/03/10) Can any body help on this?Date formate should not interchange Thanks in advance, Balu.
-
Convert decimal number into Italian formate while export to excel.Thanks alot as per you suggestion i did its working fine. Regards, Subbu.
-
Convert decimal number into Italian formate while export to excel.Hi all, As per the requirement my machine language settings are set to Italian language. while generating reports in my application i am facing a problem that i have a column called timespent lets say eg: 1.5 units We are showing the report in excel formate. Note:- In Italian formate "1.5" should be display as "1,5" ------ I am applying following style to out put record set of "TIME_SPENT" but i am getting the out put '1.5 but required Output is "1,5" sbrHTML.Append(".timespend { mso-number-format:@;} .premium { mso-number-format:$\\#\\,\\#\\#0\\.00;} .ogDate {mso-ignore:padding;mso-generic-font-family:auto;mso-font-charset:0;mso-number-format:yyyy-MM-dd;mso-background-source:auto;mso-pattern:auto;} "); sbrHTML.Append("" + sqlDatareader["TIME_SPENT"].ToString() + ""); out put:'1.5 Please can any can help on this. Thanks in advance, subbu.
-
Need to display the page number as "2" from second page Onwards. [modified]Hi all, I am generating word document using iTextdotnet.dll.As per my requirement i need to display the page number as "2" from second page Onwards. And also is it possible to decrease font size of header from second page onwards???? So i need to hide page number "1" for first page. i calling the following the following method in layers. public com.lowagie.text.HeaderFooter HeaderForReport() { string emptypath = string.Empty; int colspan0 = 0; int colspan1 = 1; int colspan2 = 2; int colspan3 = 3; int colspan4 = 4; int colspan5 = 5; com.lowagie.text.Font ReportHeaderFont1 = new com.lowagie.text.Font(FontFactory.getFont(FontFactory.HELVETICA_BOLD, 24, com.lowagie.text.Font.BOLD, GDI.Color.Black)); com.lowagie.text.Font fontNormal = new com.lowagie.text.Font(FontFactory.getFont(com.lowagie.text.FontFactory.HELVETICA, 10, com.lowagie.text.Font.NORMAL, GDI.Color.Black)); com.lowagie.text.Chunk cktext = new com.lowagie.text.Chunk("\nStudio BOLTON e Associati S.r.l.", com.lowagie.text.FontFactory.getFont(FontFactory.TIMES_BOLD, 24, com.lowagie.text.Font.BOLD | com.lowagie.text.Font.UNDERLINE, GDI.Color.FromArgb(128, 128, 192))); com.lowagie.text.Chunk ck = new com.lowagie.text.Chunk("\n\nSpecialist Adjusters / Perizie Assicurative - Rischi Speciali", com.lowagie.text.FontFactory.getFont(FontFactory.TIMES_BOLD , 10, com.lowagie.text.Font.ITALIC , GDI.Color.Black)); com.lowagie.text.Phrase p2 = new Phrase(); p2.add(cktext); p2.add(ck); p2.add(Space(5)); HeaderFooter header = new HeaderFooter(p2, true); header.setAlignment(100); header.setAlignment(ElementConst.ALIGN_LEFT); header.setBorder(com.lowagie.text.Rectangle.NO_BORDER); return header; } Output --------- Studio BOLTON e Associati S.r.l. -------------------------------------------------- Specialist Adjusters / Perizie Assicurative - Rischi Speciali 1 This is first page header. Studio BOLTON e Associati S.r.l. ----------------------------------------------------- Specialist Adjusters / Perizie Assicurative - Rischi Speciali 2 This is the second page header ================================================== But i need the result as follows. Studio BOLTON e Associati S.r.l. ----------------------------------------------------- Specialist Adjusters / Perizie Assicurative - Rischi Speciali (First page page number 1 should not display) The second page header should be like below . Stud
-
How to disable calender control in firefoxHi all, I am using HTML image for calendar control in my application.As per the requirement i have to disable the calender control.In IE it is working fine but in Mozilla FireFox is not working. Ex:-In code behind i disabled the control to avoid to open calender like the following. ImgInceptionDate.Disabled = true;--->This line is working in IE The same is not working in firefox-->Here i can able to open calender.
Can any one help on this??? thanks in advance, Eswar.
-
How to restrict to open a uploaded file?Hi all, My application is an asp.net web application which deals with different user logins(user types like Gatekeeper and Pde users). Here only i am facing one peculiar problem that In Gatekeeper (login) uploaded one txt document in the application.After uploading QA team taking the copy of URL of uploaded document. Let say URL be like :http://localhost/cms/UI/Documents/BoltonCMS11102009112303PM.txt Now QA team they are login as Pde user and trying to paste the above URL in Home page,at this moment the uploaded document that is the txt file is opening which is a bug we need to restrict to open that uploaded document . Could any one help on this? thanks in advance, Eswar.
-
How to disable address barHi all, As i am using asp.net web application with c#.Net, as i need to disable address bar for my entire web application. I visited alot of sites for this but all of them are dealing with opening one window setting only but i need to disable entire application. Can any body help on these. thanks in advance, eswar.
-
Need date formate like yyyy-MM-dd with time like "2008-07-08 20:24:14" in ExcelHi all, As per my requirement, while displaying date (i.e audit column) in datagrid is coming fine but same column while displaying in excel formate it is displaying as "2008-07-08" unable to get this (2008-07-08 20:24:14) formate i am using the following code sbrHTML.Append(";.premium { mso-number-format:$\\#\\,\\#\\#0\\.00;} .ogDate {mso-ignore:padding;mso-generic-font-family:auto;mso-font-charset:0;mso-number-format:yyyy-MM-dd;mso-background-source:auto;mso-pattern:auto;} ;"); then i am applying style for audit like the following sbrHTML.Append(";" + (sqlDatareader.IsDBNull(columnIndex) ? "" : sqlDatareader["AUDIT_DATE"].ToString() + ";")); ogDate For the above stmt i am able to get only this formate "2008-07-08" but i need to include time also. Could any one help me in mso-number-formate: to get date formate like "2008-07-08 20:24:14" thanks, eswar.
-
[Message Deleted]ya u r right its not related to asp.net programming i need to post this in general articles. thanks, eswar
-
[Message Deleted][Message Deleted]
-
code for HTTP COMPRESSION for asp.net1.1Thanks in Advance. I need the code for HTTP COMPRESSION for asp.net1.1 Version With Regards Senthilkumar.T
-
Browser TimeOuti have loading 1005 usercontrols ,each usercontrols haves 11 controls. When i click submit button, i get browser timeout problem, i can't able to debug also.. After clicking button, empty browser is displayed. Thanks in Advance Regards Senthilkumar.T
-
SQL Server does not exist or access denied. +ConnectionOpen (Connect()).While Reading 1005 records from Excel2000 through asp.net,c# application. inside the application two sp are called for 1005 times. I get the following errors "SQL Server does not exist or access denied ,ConnectionOpen (Connect()).". While reading 850 records from excel 2000 it's working fine and two sp are called 850 times. Thanks in Advance Senthilkumar.T
-
Turn Off IE Header and footer while printing the page.Dear all, As per the requirement in my application, through coding how can i Turn Off IE header and Footer while printing the page? Can any body help on this,.. thanks in advance, Devi.
-
An error has occurred while establishing a connection to the serverHi, Follwing error : -"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) " Version what we are using is Asp.net2.0 + sqlserver2000 Thanks in advance With regards Senthilkumar.T
-
Performance issueHi, In local environment my ASP.NET web application is fast, same code is moved to production environment it is very slow. In production we have implemented https. and load balancing servers. How to rectify. thanks in Advance Senthilkumar.T
-
IE execution Time out error.Hi, Reading the values from excel sheet , using those values i will generate usercontrol dynamically. usercontrol will have nearly 50 controls which is done in server side. problem occurs if we have more than 50 records in Excel file. It's working fine in http , but https is a problem. In HTTP it takes only 5 to 7 minutest to load 100 dynamic usercontrol in a page. If i go for 100 records in Excel, At that time in IE takes long time and finally displays empty page. like Page cannot be found,. it seems to be executionTimeout problem. For that i had increased the executionTimeout =1200 and debug ="false" in web config, but still the problem occurs. If anybody have any idea please reply me. Thanks in advance. Eswar.
-
Adding row from datagrid to another datagrid in asp.net using C#.NetHi all, I have one datagrid, i am binding the datagrid with records from DB.My need is if i click one of the binded record that particular record should be added to the another datagrid. It should be on serverside only. Can any body give idea to do this. Thanks in advance, eswar.