I am not sure if this is the correct place to post this question. If not, please forgive and point me.
In the application I work on people add items, then build forms to accept attributes. We have developed a set of custom controls that they can use as well as a environment where they can add "conditions" (that create JavaScript) and "elements" (that generate
html). The problem is that we end up supporting this "development environment" that we have developed as well as the conditions to JavaScript mappings.
If it helps, every element they build on that page (textbox, textarea, checkbox, select, hidden) ends up in our db in a attribute form that simply stores the input as key/value pairs with the element id as the key, and the value as the value.
I am thinking there must be a beter way to do this.
Maybe develop web services that each form submits to and leave the form building and scripting up to standard tools. But to do this we would need to be able to make custom controls (or custom properties in common controls) available. For example, we have
dropdown lists that use sql to get the keys and values for the options. A more elaborate example, we have user lookup dialogs, region lookup dialogs, site lookup dialogs, etc.
At this point I am looking for suggestions regarding architectures.
I have a gridview in an updatepanel with sorting enabled and an event handler as follows:
protected void MyGridSort(object sender, GridViewSortEventArgs e) { var TheDirection = (e.SortDirection).ToString(); var TheColumn = (e.SortExpression).ToString();
I put a breakpoint just after these lines. Every time I press the column header, my variable TheDirection is always showing Ascending. Why is it not toggling from ascending to descending and back?
I am not able to change the direction of popups/Alerts in Arabic culture which should be RTL direction.Rest of my application is changed in above culture, only problem is with popups and alerts.
i want to add a google map in my asp.net page. i have multiple location. now i want to get the driving direction for this multiple location. Its similar like getdirection in google map.
This is more of a general question about which direction would be a better investment for the company.
Our company's core business application is written in Visual FoxPro and is about 9+ years old. The database is huge 15+ gigs and the core logic is complex and to make matters worse the data model is terrible. The two guys that built it and have maintained it all these years are at least in their 50's, so needless to say retirement or possibly death could come within the next decade or so.
This VFP app drives all our core business functions and requires terminal services and citrix to access it from the outside world. Our web apps have to interface with it via ODBC and we are always having performance issues with it. The servers that run this system are also very old, like Win 2000 server and are falling apart.
Recently we have been having meetings about upgrading the systems that run this core app as well as other services like email and file storage. The biggest expense however is buying new server hardware, OS licensing, Terminal Services licensing, Citrix licensing etc to solve some performance and outside access issues we are currently having as well as just generally bringing us to date on our systems.
The price tag is going to be in the $55K to $65K price range. So as a web developer my point of view is that this is a huge waste of money! My solution would be to invest that money in rewriting the core system to run on the web based .Net platform. This would eliminate the need for Terminal Server and Citrix licensing along with the pricey hardware and configuration management to run it on. I don't see the point in investing this kind of money in an antiquated system that should be on it's way out anyways.
I am looking to get some convincing arguments as to why this is a waste of money. Hopefully there is someone here that has faced this type of situation before that can give me some points of view. The hardware upgrade seems to be the easiest road to take because they will just have a consultant come in and do it all. A software development project would take longer, require more resources and possibly cost a little more money.
i have a dropdown list and what happens is that when i click on the dropdown button the list appears under other controls and it pops upwards. If it pops downwards and is non transparent then it would be visible .how is this achievable ?
how to convert the direction from rtl to slider extender the code below shows slider extender from left to right I want to change direction from right to left? could you please to explain?
i have some link buttons that On click direct to some page iwant to add some if statement that if the user is online direct to same page and if not direct to other page?
I have a page which is LTR direction, and now I would like the page to work also with RTL direction. I care the most about the content in the middle of the page, that it would look nice.
My Gridview sorting only works only one way means it works only desc order not by asc order.
below is my code:
Public Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not Page.IsPostBack Then Gridview1.Visible = False End If End Sub Protected Sub Submit_Click(sender As Object, e As System.EventArgs) Handles Submit.Click Gridview1.DataSourceID = Nothing
I used pagination for datalist and pagination look like below:
Last Previous ... 4 3 2 1 Next First
it is work correctly I want right to left pagination but problem is that here in below code:
private void PopulatePager(int recordCount, int currentPage) { double dblPageCount = (double)((decimal)recordCount / (decimal)PageSize); int pageCount = (int)Math.Ceiling(dblPageCount); List<PagerPage> pages = new List<PagerPage>(); if (pageCount > 0) { pages.Add(new PagerPage("Last", pageCount.ToString(), currentPage < pageCount, "button"));
[Code] .....
when I changed "first" "Next" "previous" "Last" to persian character:"First='اولین'" "Next='بعدی'" "previous='قبلی'" "Last='آخرین'"
again page number direction changed to left to right:
1 2 3 4 ...
private void PopulatePager(int recordCount, int currentPage) { double dblPageCount = (double)((decimal)recordCount / (decimal)PageSize); int pageCount = (int)Math.Ceiling(dblPageCount); List<PagerPage> pages = new List<PagerPage>(); if (pageCount > 0) { pages.Add(new PagerPage("آخرین", pageCount.ToString(), currentPage < pageCount, "button"));
[Code] ....
why this happen? Above code worked correctly just when text be in english character when I change to persian or this character "<< < >> >" it changed number direction. what should I do?
I was given help in a previous topic located here: Accessing Gridview In Another Form In this topic I had gridview rows that are selectable and a search window that returned search results. We found a way for me to select a row in the parent window of the search one. My issue now is that when the parent windows gridview is sorted, the function no longer selects the correct row. I was wondering if there was any way to access the gridviews sort expression and direction, or some other way I can do this so it accounts for sorting. Relavent code is as follow: This is in my parent window
<script type = "text/javascript"> function selectRow(index) { //Retrieve a reference to the table that represents the GridView var gridView = document.getElementById('<%=gvSideList.ClientID%>'); if(gridView) { //If able to get a reference to the table representing the GridView... var doPostbackArgument='Select$'+index; __doPostBack('<%=gvSideList.ClientID%>',doPostbackArgument); } }
This is in the child window
<script type = "text/javascript" > function selecttherow(index) { window.opener.selectRow(index); } </script> protected void gvresults_SelectedIndexChanged(object sender, EventArgs e) { //declare variables GridViewRow row; int index; int id; //retrieve index, row, and id from gvresults index = gvresults.SelectedIndex; row = gvresults.Rows[index]; id = Convert.ToInt32(row.Cells[5].Text); //fill a datatable from general with id's for selection SqlCommand cmd = new SqlCommand("SELECT ID FROM General", csbg); cmd.Parameters.AddWithValue("@id", id); SqlDataAdapter da = new SqlDataAdapter(cmd); DataTable dt = new DataTable(); da.Fill(dt); //loop through the dt and find the index of the matching id from the search window for (int i = 0; i < dt.Rows.Count; i++) { if (dt.Rows[i]["ID"].Equals(id)) { //execute script to select the matching row in the dataentry page string script = ""; script += "selecttherow("; script += i; script += ");"; ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "selecting", script, true); break; } } }
Let me know if you need me to further clarify anything.
I want to position my menu control on the right side of the page based on our design requirements.As a result, I want to make the arrow that indicates a submenu appear on the left of the menuitem as well as make all submenus flyout to the left now as well.
I currently have a datagrid that has no columns, I generate a few column types on the fly using a column prefix. This enables a new dataset to generate a new datagrid, all is well, except...
1) Generating new datasets is beyond the skill of the admin, I could offer a set of options and dynamically create an SQL query/view to be saved in a datatable and retrieved by the querystring, but I'm not sure if there is a better way when I consider my next issue.
2) I want to be able to create an edit/detail page that is generated by a new query returning chosen fields, aliases for the field labels and field drop down options retrieved from the existing database and then positioning of the fields on the page set by the admin then stored as either field & coordinates or ? I'm hoping that there is a way to enable an admin to position the fields & controls either by selecing XY coordinates, then save it off as XML or similar to be reused as a template.
I'm trying not to re-invent the wheel and also keep my billable programming time to a minimum, but I'm willing to spend as much time researching & learning the techniques.
Like many organizations, our customer service department receives faxes and process them in many different ways. The faxes come in through a queue. The faxes are presented to the user through a windows interface.The user ties a customer number to the fax and is allowed to split the fax into several different pages if necessary. They then send these different pages to different people in the organization.Currently the windows application that process these faxes uses a product that use to be part of Windows called KODAK.
The hope is that the current windows tool could be converted into a web application that provides the same functionality that the windows application offers. a tool that could be utilized inside an ASP.Net web application that would allow the user to receive a fax and split it like KODAK does? This application needs to be built in-house because of the custom needs of our customers. Something imbedded in the ASP.Net application would work for us.
I have an insert that uses an object data source with out the direction property set and it works fine. I noticed the direction property though and wondered if I should use it.Should the direction property for the parameters of an object data source be used with a simple CRUD operations?