Localization In XSLT File - Generating Dynamic Screens ?
Jan 13, 2010I am generating dynamic screens as user requests. Anybody having any idea on how would I try localizing text (localization) in xslt?
View 1 RepliesI am generating dynamic screens as user requests. Anybody having any idea on how would I try localizing text (localization) in xslt?
View 1 RepliesActually we need to generate multi-language resource files based on our default 'English' langauge resource file. The idea is if we can input this 'English' language resource file in that tool and it can generate another resource file for us in the required langauge.
View 4 Replieswhen generating local resources by using ( "Tools"->"Generate Local Resource" ) i noticed that some controls disappear in run time.
is good to take advantage of Visual Studio to automatically generate it? or is better to create resource files and add meta:resourcekey="..." to my page manually??
How do you create an XSLT file from an xml file with an existing XSD file
View 1 RepliesI wanted to find out if there is a way of getting a parameter or variable value out of an XSL file. For example, if I have the following:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:variable name="username" select ="usertest"/>
<xsl:variable name="password" select ="pass"/>
<!-- ... -->
</xsl:stylesheet>
I would like to read the username and password values from the XSL and use them for authentication. I am using ASP.Net and C# to perform the actual transform on an XML file.
share code with me that would allow me to read the XSL variables from ASP.NET/C#.
In javascript I have an image which I set the .src at runtime in javascript. The .src points to a asp.net page with a few values as querystring parameteres that I want t capture on the server. this page has empty content. In code behind in the page load I need to generate the smallest image possible and return it as the response. how do I generate a small image and return it in the response?
View 3 RepliesI am Getting following Error while generating Dynamic Ajaxtoolkit Tab Container. During First Time Page Loading, it Works fine. when any Postbacks Occurs it shows this Error
[Code]....
Server Error in '/' Application.
Specified argument was out of the range of valid values.Parameter
name: index Exception Details:
System.ArgumentOutOfRangeException: Specified argument was out of the range
of valid values.Parameter name: indexSource Error:
[Code]....
Stack Trace:
[Code]....
[ArgumentOutOfRangeException: Specified argument was out of the range of valid values.Parameter name: index] System.Web.UI.ControlCollection.get_Item(Int32 index) +8665582 AjaxControlToolkit.TabPanelCollection.get_Item(Int32 index) +81 AjaxControlToolkit.TabContainer.LoadClientState(String clientState) +339 AjaxControlToolkit.ScriptControlBase.LoadPostData(String postDataKey, NameValueCollection postCollection) +181 AjaxControlToolkit.TabContainer.LoadPostData(String postDataKey, NameValueCollection postCollection) +110 AjaxControlToolkit.ScriptControlBase.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +74 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +693 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1743
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.
[Code]....
I would like to make some changes to my EF4 edmx file without modifying the file itself, mainly so I don't loose all my changes if I regenerate the model from the database. I'm familiar with XSL and have seen references made to using it in conjunction with the edmx file. This sounds like a great solution, however I can't seem to find any documentation on how to actually set this up. Do you reference the style sheet from the edmx file or do you configure it to look at the template and then load the edmx file in somehow?
Clarification:
Specifically what I'm trying to do is modify the model so that several of the views act as tables with relations within the model, see here: http://blogs.msdn.com/b/alexj/archive/2009/09/01/tip-34-how-to-work-with-updatable-views.aspx
The issue I'll have in using that method is if I need to update the database and regenerate the model I'll have to go back and make all of those changes again, I was hoping there was a way to use xslt to make those changes to the views so they would not be removed when the model is regenerated.
Is there a way to retrieve the media-type value? e.g. like OutputSettings.OutputMethod used to get xsl:output method.
View 2 RepliesI would like to read some data from a .XSLT file to populate my dropdown, the outline is as follows
file name StaffDirectory.xslt
<xsl:stylesheet version="1.0" extension-element-prefixes="msxsl" exclude-result-prefixes="msxsl js dl" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:js="urn:custom-javascript" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:dl="urn:datalist">
[Code].....
So id like to retrieve all values for ="IDAKRS0J" and populate a dropdown with this, is this possible ?
I am using dynamic data entities linq to sql project. For my test project I have one table, with 10 columns and a single primary key for example. Almost all the columns are varchars.I can get the basic project up and running fine - update, delete, insert etc.ince it has no foreign keys, there are no search filters rendered. I was wondering if there was an easy way to generate a set of filters for the columns for this table. So a First name and last name search box. Is there a way to generate these filters for chosen columns and is there a way to generate these for all the columns
for example, above each of the columns in the grid there might be a text box ( I am not too fussed where the text boxes are rendered as such). Each of the text boxes will act as a filter for that column (doing a SQL 'like')
I want to mak a Dynamic Report Generator with the facility to create the report structure and change the report information.
whether I can use any crystal report generating tool or have to make my own report generator
I have a requirement like display message to all the users in Television screen. There may be more than two Screens in those screens messages may be various. How can we display message or reports in screens using asp.net with c#.
View 1 RepliesI am getting a problem
i am trying to generate the xml file and popup to save that file. on the button click i have applied two properties on the button server control
OnClientClick = javascript:this.disabled=true;
UseSubmitBehaviour=False;
the problem is when i am click on the button progreesbar is coming but after the completion of geterating the file (file Generated) but the button is still disabled and progressbar image is still showing.
for save to the xml file i am using this code after the xml write successfully.
Response.Redirect("~/Folder/frm_download_file.aspx?Filepath=" &
"XMLFile/" & EnrollmentNo &
".xml")
i want to display dynamic text like the News in Arabic and english Language should I create two fields in the database For arabic and english?and how to select the english News when the user select English? (Note:i know to display the static text like the menus in arabic and english)
View 2 RepliesI have set up my buddy class with validators. However I only want the validators to fire of the associated fields are used in that particular screen. When I split them across 2 screens I find my validation doesn't work. How do I fix this? I have had to remove the validation from some properties in order to get it to work on one screen;See the class here;#region "Buddy class" for validation
View 3 RepliesI am a .NET / C# back end guy. I am working on a app that will have about 200 different data entry screens. For me exposing DTO as a collection for CRUD (IUpdatable and IQueryable) is the easy part, I can do it in my sleep :-). What I am trying to decide is what type of front end technology will allow me to develop these data entry screens fast. They don't have to be fancy but they are not just plain grid either and on average they have about 15 form fields and some client side data validation (no db look up) Options I am looking at are
Use ExtJS on the front and REST / JSON on the back. ASP.NET RIA but I do not know SL (Well XAML) Plain ASP.NET / MVC One idea I had was the DTO will contain the meta data about the form (As Attributes) and the form can be dynamically generated, but I do not want to reinvent the wheel if there is an easier way. I have looked at RAD software but all of them look at the DB and generate screens. I'd rather want something that can look at my DTO and generate screens.
I have a file that I need to copy, run a command against the copy that specializes it for the person downloading it, and then provide that copy to a user to download. I'm using ASP.Net MVC2, and I've never done anything like this. I've searched around for the simplest way to do it, but I haven't found much, so I've come up with a plan.
I think what I'll do is generate a guid, which will become the name of a folder I'll generate at the same level of the source file that the copy is made from. I'll then copy the file to that folder, run my command against it, provide a link to the file, and I'll have some service that runs every now and then that deletes directories that are more than a day old.
My asp.net page dynamically displays 207 questions (I can't control this). Each question have 10 validators. When ASP renders the page it creates following three lines for each validator:
var qsnQuestionSet_adult_qcQuestion_1_vldMaxAnswersValidator = document.all ? document.all["qsnQuestionSet_adult_qcQuestion_1_vldMaxAnswersValidator"] : document.getElementById("qsnQuestionSet_adult_qcQuestion_1_vldMaxAnswersValidator");
qsnQuestionSet_adult_qcQuestion_1_vldMaxAnswersValidator.display = "Dynamic";
qsnQuestionSet_adult_qcQuestion_1_vldMaxAnswersValidator.evaluationfunction = "CustomValidatorEvaluateIsValid";
Althrough these three lines are just 4kb you can imagine that 4*10*207 is quite a lot. How can I mark all validators as dynamic and set evaluationfunction to same value without asp generating the line for me?
Are there any good PHP libraries for exporting data to Excel files (not CSV files)?
(An alternative would be creating an ASP.NET Web service that handles Excel file generation, but I would rather not send complex objects over a network in XML format, unless it were strictly necessary.)
I need to be able to generate a basic CSV file of the results returned from an SqlDataSource/GridView upon the user clicking a button, then allow them to save this file.
Is this simple to do?
I have a client that is looking for a photogallery in flash, they already have one in mind they found. Since the site will be maintained by them, i was wondering if there is a way to generate an XML file via a button click so when they are logged into the admin console, they can update the XML with a simple click and it updates the gallery.
I will be giving them the ability to upload images to the site as well as deleting and updating existing images, so once they have done all that, they can click a button and that takes all the new updated images in the directory and generates a new XML file for the flash file to use.
Or is there another gallery i can use to give them the same look? This is the gallery they found and like: [URL]
I'm generating PDF files from RDLC report programaticaly without a viewer (ASP.NET 2.0 C#).
I would like to find a way to send it directly via email without downloading the PDF file.
I currently have a page which displays a report of multiple tables with the data values in them based on two parameters selected in dropdowns.
Now, I need to generate the same report for each combination of the two parameters as a worksheet in an Excel workbook to be sent as an email attachment. This is to be automatically generated daily, and I'm using the Global.asax to do this task at 1 day intervals. So each sheet will display multiple tables, one below the next, just like they display on the web page where the user can go to view them on demand.
I've seen plenty of resources for exporting a gridview to Excel, where a user clicks and is prompted to download an Excel file, but this is different.