I have a table in my database, in which a certain field holds the locations of text or doc files (the files are of a transcript for a chat session).
In the Gridview right now i able to show the link locations. But i want to have Hyperlink or Button in the links location in the Transcript Location fields.And on the click of which the txt or doc file opens up in notepad or microsoft word.
I need to check for two differect text to make the Edit button inactive. For example, I need to make the button inactive when the ActionTypeName field has value either Accepted date or Received date. I can do one check with Accepted date but not both.
I have a requirement where I need to generate a pdf doc.I am using itextlibrary for that condition.I am able to generate pdf doc but alignment is not correct.The table is getting divided in to two equal parts for two columns in pdf doc for what ever width I specify.For ex if I have set width as 650px its not taking that width in pdf doc instead it is taking full doc.How to set the table at desired location in pdf doc and set width of columns.I tried to set width of column in the html table but its not working.
StringBuilder strHTMLContent = new StringBuilder(); trHTMLContent.Append("<table style='font-family:Times New Roman; font-size:18px;'>".ToString()); strHTMLContent.Append("<tr><td width='100px'>column1</td><td width='300px'>column2</td></tr>"); strHTMLContent.Append("</table>");
Can someone tell me if there is a technique to make an entire Column within an gridview (for example digits) editable (instaed of a single row) and update this column after changing values by press an Update-button?
A commercial solution is also o.k. with me, but, of course, a method to do it ourselve would be nice.
I have three button on my web page,after clicking each button a popup is opened. Now i want open this popups just below the button and also stop the scrolling of popup with parent page.
i give one example: i just want to create a functionality just like [Edit Tags] below in this forums that is when i clicked on [Edit Tags]one popup is appear at desired location how could i opened my modelpopup just like [Edit Tags] click.
I'd like to add google maps to my web page. I am looking for a way that user will seach for desired location. In google's page [URL] .... there is a really nice search mechanism, by simple typing location in a text box. Is that mechanism available for sites or do i have to create mine..
I have a page where I have a tab container and four tabs. the problem is on the first tab "manage quote request" I have a Gridview with the quote request general informatin listed and have a template field created with a link button to databind to the formview quote details. the porblem comes in when after I click on the select linkbutton. the Formview loads right. Then Whe I try to click on the edit linkbuttin in the form view I have to click it twice to change the mode to edit.
what I would like to do is to only show the AuthorFirstName and AuthorLastName columns for the first row of each author. I am easily doing this with:
However the issue that I'm seeing now is the formatting what happens is that after the first row that the Author names are hidden but then the BookTitle and YearPublished become the new cell(0) and cell(1) respectively which means that book and year are displaying underneath the author names columns. so my goal is to do 2 things:
1 have BookTitle and YearPublished render under the correct headers and
2. For the second row and after I would like the cell to appear the same as the background, I dont want the user to be seeing what looks like an empty cell or textbox there.
I have implemented globalization in my website by using Global Resources. I thought of implementing it not only on controls but in database fields. So for some columns which would be single columns in normal conditions, I considered multiple columns for different culture. For example if there was a [Title] column, I replaced it with [Title-en-US], [Title-en-GB], [Title-es-ES] and etc.I have a web page with a GridView control that displays the content of that table. In a normal case (without globalizing), I would have a TemplateField in the GridView like this:
I have columns for each culture defined in the system so that based on the user's choice, I display that corresponding column content.My question is I have no idea what I should set the Text and SelectedValue properties in HTML code above.Something like this: Text='<%# Bind("myTable.[Title-" + TheSelectedCulture + "]") %>' !!!!!
I'm looking for a technique to edit a whole column (vertical) instead of a row (horizontal).Suppose i have 10 rows en 5 columns (like in Excel), and i want to edit all digits from different students (rows) for test number 3 (column).
I have a Data Grid View which display values from a SQL Query, and inside the data grid view I have two template fields one is Quantity and it is a text box and the other is Total Price and it is a label.
What I want to do is to insert a button called update and when I press this button the price Column should be multiplied by the quantity Column and the result should be displayed in the total Column.
In the example below I have set the control style to 'controlName' I want to use this class to define what my textbox looks like in edit mode. This works ok, so far so good. The Problem In a button event I add the class "validationError" to this textbox if the data is incorrect. When the grid gets rendered I expect to get 'controlName validationError as the class applied to the textbox. Unfortunately, it seems that the declarative statement overrides this and simply ends up as 'controlName' how I can intercept the application of the declarative class so that I get what I desire here?
In one of my Web Page, there is one Modal Pop up, in which I am using Gridview Edit, Update, CancelEdit, Delete functionality.Main functionality is : If while deleting any of the Gridview Row, if only 1 row remains in Gridview (that row can be any row), then that row should not get deleted.Rest of Edit, Update, CancelEdit functionally is working fine.
problem is: When any last row is left in Gridview, its Delete button is disables that time (as per requirement and functionality). But when user clicks on Gridview "Edit" button, update section opens, and at that time "Delete" button gets Enabled, so that time user can delete the last row of Gridview which should not be done.I had fixed this problem for "Cancel" and "Update" button of Gridview using below line:
Response.Redirect(Request.Url.AbsoluteUri); but unable to fix it for "Edit" button of Gridview. If Last row is left in Gridview , and user clicks on Gridview "Edit" button of that row, then at that time "Delete" button should not get "enabled" it should remain "disabled"
I have a progam that need to use button to edit and delete in GridView.i put the edit button to ItemTemplate, update and cancel button in EditTemplatebut i don't know how to bind the method in the button click.his following are my html code: