I can test the application locally and it works. But once I publish the application on my IIS6 web server the PDF does not generate or output. Is it a PDF Mime problem? What is causing the application not to output the pdf once it goes to production. My IIS6 has Adobe Reader and I added the PDF Mime.
I want to convert video as it is uploaded to H.264 or an alternate HQ video to play in a flash player. I would like to support as many file formats as possible.
EDIT: Need to be compatible on a Windows shared hosting account.
I have a web application and I need to convert DOCX files to PDF to generate some reports wtiten in Word 2007. First I used automation and I faced a DCOM problem and finally I discovered that Microsoft doesn't support automation of Word on the server side.Now I'm searching for other free tools as opposed to Word and etc isn't free, iTextSharp doesn't convert DOCX to PDF.
I'm really stuck tryign to figure this out. Converting XLS to CSV is no big deal or at least it seems that way. However, trying to go xlsx to csv seems to be more difficult. For grins, I grabbed some code that is supposed to read a sample xlsx file and convert that into a gridview called GridView1. I figure it can't be much different to turn that into CSV.
I have code to add a control to page in Init event. I hit error "The control collection cannot be changed during DataBind, Init, Load, PreRender and Unload phrase".
The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.
I have a static HTML page that has the basic design layout of a website that is fully functional. I need to display some data from database inside one of the div tags. I am using ASP .net 3.5 for the dynamic display of data.
So i want to convert this html page to master page and then add a content placeholder and display dynamic data from db using a gridview within this page.
Is there any way that i can convert or reference this html page as the master page in ASP .net ?
Im using vb.net 3.5, ajax, sql 2005, been programming a while but still consider myself a novice an need some advice. Im building a cms type tool for a knowledge base. And on one of the web forms i need to be able to allow the user to add a set of controls each time they click on a button, the controls they add will be fixed, a set of 3 textboxes. I then need to be able to run a for each loop to check that they have populated the textboxes before running an insert via the tableadapters insert method.
I need to post data from my asp.net page to a non-asp.net page that is offsite. How can I do that without redirecting to that page? IE: not using a button's PostBackUrl property.
Can i run all validators when page is loaded. I need to show * in all input text fields that are necessary. I have require field validators for that fields, can i run it by default when page is loaded?
I would like to programmatically access a div in a style sheet for my master page and change its height value depending on the content page loaded.
Can this be done using Javascript in the Master page or in the code behind for the respective page? What I would like is something such as this if possible
When this content page loads, change the height value of this div in the css file
I don't want to use separate Master pages as this seems to defeat the whole purpose of the Master page
I have an asp.net app that allows users to create personal pages which can be publicly accessed thru a "directory" page. The content of the pages is stored in sql server, so a given user's page is dynamically created thru the code that executes when the relevant link on the directory page is clicked.
I would like to take this a step further by allowing access to a given user's page directly thru the browser's address bar, something like www.thegreatestsite.com/jim (pretty much like You Tube, Facebook, etc.).
I could achieve this by manually creating a folder under the root, called "jim" and putting a default.aspx page in it which would have code in it's load event that would dynamically create jim's page.
However, I would like this "additional feature" to be created automatically, as part of the sign up process of the user.
Given a gridview has 10 pages comprising of 10 records/page, how do I programmtically select a particular page in the code behind ? For instance, I'd like to set page 5 as the current page of the gridview during databind. I do not have any codes at this stage but this is what I'd like to achieve.
I am using session timeout in IIS 8 for about 60 minutes :<sessionState timeout="60" /> now lets suppose 58 minutes have passed , and it showed user a message that your session will be expired after 2 minutes , Click here [BUTTON] to refresh the session timeout , without page refreshing, clicking on the button , i want to reset the session timeout .... when user clicks on button at 58th minute , his session would be reset to 60 minute without page refresh ....
This was originally posted, in error, to another forum. Not sure how that happened. Anyways, here goes... I have a web app that uses javascript functions to make rounded corners. One of the functions requires two colors as parameters. I cannot change this function definition. My web app is in asp.net 4.0 and uses master pages and themes. To facilitate programmatic access, I moved all javascript declaration into the code behind file of the master page. It gets generated in the load event: I declare it there as a big string (using StringBuilder) and then put it into the page with Page.
ClientScript.RegisterClientScriptBlock(... Now that I have introduced themes into my application, I have discovered a serious problem. These themes each utilize their own CSS and skin files to paint the various elements of the app's web pages in different colors (of course). But remember, as parameters, one of my javascript functions requires two colors. And now that I have themes I can no longer manually code these colors into the javascript declaration... Now I have to discover a way to extract the background color and one other color from the current theme's CSS file. Then I can feed that into the javascript declarations in the master page's PageLoad event in the master page's code behind file. This would allow the javascript function to be called on the page load and to use the current theme's colors as parameters.
I need to be able to programmatically determine the doctype of the current page (.aspx), whether its set directly within the page itself, or via a master page.The reason is so I can output correctly formatted html from custom controls or components based on whether the doctype is plain html, xhtml, xml
I need a way to change the ActiveViewIndex of a multiview control based on some query results. Right now I test to see if I have rows returned from my linq query. If so, set a certain view active. If no rows are returned, I would like to set a different view active. I would like to do this on Page_Load if possible.
Right now I get the fatal "Object reference not set to an instance of an object" error on page load with it bombing at line 12. My count is given a value at runtime so that is not the issue. Can anybody tell me why this is and how to get around it. Code is attached.
I also tried this both the pre render and Page_Init event but both yielded the same behavior with the Object reference not set to an instance of an object error. I can do this just fine in an onclick event for a button, but now I need a way to run a test and set the default view when the page loads. Seecode below
protected void Page_Load(object sender, EventArgs e) { eCrystalPSGDBDataContext psgDB = new eCrystalPSGDBDataContext(); int count = (from st in psgDB.studyTbls where st.patientid_i == Convert.ToInt32(Request.QueryString["PatientId"]) && st.studystatusid_i == 1 select st).Count();if (count == 0)else if (count == 0) { StudyInfoMultiView.ActiveViewIndex = 1; } else { StudyInfoMultiView.ActiveViewIndex = 2; } }
I would like to convert/print my asp.net pages have MS Chart and Gridview to PDF file. When I googled about this subject, I saw many 3rd party applications that do this job. My question is
Is it possible to convert/print asp.net webpages to PDF without using 3rd party application.