|
|
hi,
i tried with window.open
and if i use window.open the result will be another window opening, but i need to display my login window without menubar and maximize and minimize buttons.please suggest me better way to do this.
thanks and regards,
vishnu.
|
|
|
|
|
|
in my project i had a gridview and in the gridview ihad a templatefeild in which i had a file upload control and a button control. while clicking on button the fileupload control should read the filename. but we are getting the null value for filename.
any suggestions plz............
thanks in advance............
|
|
|
|
|
Are you doing it on the client side (using JavaScript) or on the server side (doing a postback on button click)?
Can you give the code that you used, without which it would be difficult to identify the issue?
..Go Green..
|
|
|
|
|
vishnukamath wrote: while clicking on button the fileupload control should read the filename. but we are getting the null value for filename.
Where is your source code ? have you checked with FileUpload1.PostedFile.FileName ? And also make sure you are check the Postback option !
Let me know if the problem is still there.
Thanks !
|
|
|
|
|
hi,
My issue fixed and thank you for your suggestions.
Thanks & Regards,
Vishnu.
|
|
|
|
|
Hi All
I have byte arrry which is saved into the data base we converted text to byte array using Itextsharp dll but when i getting this byte array from the data base how to convert it into the text format
I have already tried the below following way.
System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding();
return enc.GetString(input);
also tried
System.IO.MemoryStream memo = new System.IO.MemoryStream(pdfByteArray);
System.IO.StreamReader reader = new System.IO.StreamReader(memo);
string text = reader.ReadToEnd();
can u guys suggest another way to do this.
Thanks
amit patel
|
|
|
|
|
Did you triede Convert.ToBase64String ?
|
|
|
|
|
Without knowing what method you called to go from text to byte[] there is no way to know for sure how to get it to go the other way. If the call you used actually turned the text into a PDF file and gave you the bytes of the pdf, then you need to use ITextSharp to parse the pdf to get the text back out. If you don't want to convert the text to a pdf before saving, then I would certainly recommend using standard .Net library calls rather than iTextSharp to convert to byte[] (e.g. enc.GetBytes(yourString)).
|
|
|
|
|
hello all,
i have a problem in source code .i am developing a multilingual website. Here i am using Global resource file for translation .It is working fine in local server but when i upload into online server the following error shows .Below shown bold part a label contains value that dynamically getting from code file .for working online why this value not getting any problem with java script or resource file accessing problem
Server Error in '/' Application.
--------------------------------------------------------------------------------
Cannot use a leading .. to exit above the top directory.
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: System.Web.HttpException: Cannot use a leading .. to exit above the top directory.
Source Error:
Line 384: mm_menu_0315125553_7.addMenuItem(" <%=lblPrecisionAdvertising.Text%>","location='http://KosmosPrecisionAdsTester.com/HPA_PresentationLayer\1_INTRODUCTION\701-...the-market-of-1.aspx'");
Line 385: mm_menu_0315125553_7.addMenuItem(" <%=lblMarketOf1.Text%>","location='http://KosmosPrecisionAdsTester.com/HPA_PresentationLayer\1_INTRODUCTION\701-...the-market-of-1.aspx'");
Line 386: mm_menu_0315125553_7.addMenuItem(" <%=lblUNIQUESystems.Text%>","location='http://KosmosPrecisionAdsTester.com/HPA_PresentationLayer\1_INTRODUCTION\702K-UniqueSystems.aspx'");
Line 387: mm_menu_0315125553_7.hideOnMouseOut=true;
Line 388: mm_menu_0315125553_7.bgColor='#0082AF';
Source File: c:\inetpub\wwwroot\KosmosClub.com\MasterPage.master Line: 386
Stack Trace:
[HttpException (0x80004005): Cannot use a leading .. to exit above the top directory.]
System.Web.Util.UrlPath.ReduceVirtualPath(String path) +11248521
System.Web.Util.UrlPath.Reduce(String path) +64
System.Web.UI.Control.ResolveClientUrl(String relativeUrl) +212
System.Web.UI.HtmlControls.HtmlLink.RenderAttributes(HtmlTextWriter writer) +85
System.Web.UI.HtmlControls.HtmlLink.Render(HtmlTextWriter writer) +57
ASP.masterpage_master.__Render__control2(HtmlTextWriter __w, Control parameterContainer) in c:\inetpub\wwwroot\KosmosClub.com\MasterPage.master:386
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
System.Web.UI.HtmlControls.HtmlHead.RenderChildren(HtmlTextWriter writer) +23
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +42
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
System.Web.UI.Page.Render(HtmlTextWriter writer) +38
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4240
|
|
|
|
|
I think the name of the configurable aspx website is the problem '701-...the-market-of-1.aspx'.
The function System.Web.Util.UrlPath.ReduceVirtualPath(String path) tries to reduce the paths '..'-value to the
upper directory. Your path is an absolute path. Now the function has the problem to find the upper directory of the full root directory. This directory doesn't exist and thats why it spits this exception.
Greetings
Covean
|
|
|
|
|
The first thing I would suggest is don't mix and match / and \ in URLs. Use / since it is the proper character for URLs and it also has the other benefit of not being an escape character.
|
|
|
|
|
Hi all!
I have problem : Myform submit have a value hidden . Usser can save as code and view this value . Now , i want hide this value . Plase help me. And a problem . When user save as code html on his PC . He can open this file and still submit to my serrver. Plase help me how to disables this work (Im using ASP Classsic)
Hello
|
|
|
|
|
haibec wrote: Usser can save as code and view this value . Now , i want hide this value
haibec wrote: Im using ASP Classsic
I think you can store the value in a session, but I am not sure if it is a feasible solution.
The other option I can think of is, you need to save an encrypted value in the hidden field. While retrieving, decrypt it.
It would have been an easy task if you were using ASP.NET.
..Go Green..
|
|
|
|
|
Describe the difference between a Thread and a Process?
|
|
|
|
|
|
Are you studying for a class or an interview?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Please don't flood forums with so many basic questions. This just frustrates everyone.
Try to search(Google) first and then if you are unable to find anything post it. If you follow the rules of posting then members will be more happy to respond back and help you.
You can try posting here[^] before you move on to other forums.
|
|
|
|
|
what is boxing?
modified on Friday, August 27, 2010 1:48 AM
|
|
|
|
|
Boxing - converting Value type variable to reference type variable
Visit following forum if you have queries...
General India Topics
|
|
|
|
|
what is button in asp.net?
|
|
|
|
|
|
|
give me money
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|