I have a web form that is a Purchase Order. It requires the user to enter a few dates and their personal information as well as picking stock to add to the po. The problem is after the user has entered all their data then then goto add stock and they are taken to a stock listing page, when they return to their form all the data the previously entered (name, department etc) has gone and they have to re enter it. How can I ensure that onces the user has entered this data, it stays there until the form is submitted or reset?
I added requiredvalidator to validate the input field in hte detailviews control. the only probably problem is error message shows up when form popup. I only want to show the error message after I click on the submit button. here's my code.
What would be the best way to handle the following scenario? I have an application where depending on what type of proceeding is selected, only certain input fields should be visible.
There are 33 proceeding types and 14 input fields in total
First case, make one big form with all of the fields and have a dropdown with proceeding type which depending on what is selected, makes certain fields visible?
I'm new to ASP but not programming in general. What I'm trying to accomplish is to have an ASP page where an EU can make some selections and input some text into fields and, upon clicking a submit button, have that input transferred to an access (.Mdb) database's table. I'm not sure how to go about this though. I don't know if it would be an SQL line or a dump to a different file type and then to Access (.Mdb) or something I don't know about.
Probably simple question but it has been a long time since i work with UI,I have a textarea that the user can enter his input. I'm saving the input into sql server table.when i want to display the input all the breaks that the user entered are gone.I remember there was a way to replace char 13 with <br/> (did that with classic ASP)I wonder if there is any better way to over come this problem with asp.net,
Scenario: I have a form with 3 input fields (text1, text2, text3). Is there a method to capture these fields in the aspx file of a second webform? I think you have to use someting like <%= %> but I'm not sure.Idon't want to use the code behind file because the number of input fields is dynamic
I have developed a webservice. Locally it works fine. But as soon as I put it online, the button which I can click when testing locally is not shown...
See here:
ticketez .nl /scanticket.asmx?op=HelloWorld
My webservice: <WebMethod()> _ Public Function HelloWorld() As String Return "Hello World" End Function
I am looking for some adivce about the possbility of doing the following while working whith MVC. Firstly sorry if the subject line is not very descriptive. I have put something together in ASP WebForms where by I can put a few core fields on my page that identify an object, e.g. a Name and ID... and then I can add arbritrary fields to the aspx page that are now saved and retrieved with the "owning object". These extra fields are stored in a seperate table on the database to the primary object fields. A short explanation of how this works:
1. I have my own version of TextBox (and other input controls) called r3d:TextBox (etc.) and this text box has XmlParent and XmlElement tags, this is done by way of an interface.
2. I have a r3dBase page that all my forms inherit from and this page check for the existstance of any r3d:TextBox (and other input controls) that have the XmlParen and XmlElement tag defiened.
3. When an iheriting form is saved the controls with the Xml tags defined are also saved, but I don't have to change any code in the code behind pages. The framework I have put in place takes care of this for me. The data is saved
4. When an inheriting page is loaded all controls with the XmlParent and XmlElement tags are populated with any data that has previously been saved for them that belong to the main object being displayed on the page.
This provides for a nice easy way for me to extend my forms with non core data when clients request new fields. It also means that different clients can request different new fields and I don't have to make any modifications to the core objects. I have another mechanism that determins what fields are seen by which clients.
Anyway I am completely new to MVC (not written a single line of code) so I have no idea as to whether this paradigm will lend itself to the above described mechanisms or not. Does any one have anythoughts about this, approaches I might try to achive the above to of functionality or perhaps completely different suggestions that would achive a similar end that might work well with MVC
We have some error reporting code that, when an unhandled exception occurs, we send everything over in an email to our groups. This is great except if an unhandled exception occurs on a page with a password field then it's sent over as plain text.
Is there a way to iterate through Request.Form and figure out which item(s) are passwords? This is done at a low level so we can't look for specific controls.
Naturally, we could check to see what type the input box is but I'm not sure if that's the cleanest way. Advice?
I am upgrading part of a very old website. One of the pages that I own uses controls and dlls that I do not. There is one dll that puts a textbox (input field) on the page. This field is concepually a label but the person chose to use a textbox. Anyways, I can't change the dll.
Is there a way in my asp.net page that uses the dll to say all the textboxes on this page should have a transparent background?
This is the code I have access to. Any changes I make have to be made here.
I have a GridView, and I want Column1 to be equal to datatable data (filled by a SqlDataAdapter). Then I have two other fields by the SqlDataAdapter (first name, last name), and I want to have those two fields combined to form Column2. I have a TemplateField for my GridView that combines the first name and last name with Eval()'s, but the GridView places this combined field TemplateField and puts it as the first column.
How can I do this so that TemplateField can go in between fields that are databound?
If I am going to use the asp.net membership and roles, the asp.net database includes an aspnet_Users table that has the userid and email address. If I have custom fields is it best practice to maintain a separate usert table and link on user id or to add fields to the aspnet_Users table?
Similar to the "add more experience" functionality in [URL], I want to provide a "Add another location" link which should display an additional row of a set of 4 dropdowns (country, state, city, region). I'm actually using the CascadingDropDown jQuery Plugin for ASP.NET MVC [URL] for my location dropdown functionality, but I need to give the user the ability to add multiple locations. What would be the easiest way to handle this in ASP.NET MVC and jQuery?
I m using a dropdownlist from sqldatasource based on input from listbox like this-
[Code]....
It works very much fine when i select listitem from listbox first time. But when i select listitem from listbox second time, my dropdownlist shows items for second input as well as first input.dropdown should not show items based on first input when i populate it second time.
I've tried to override error message when input incorrect data type in input field on HTML form.For example I have the model like this.
public class Person { public string FirstName {get;set;} public int Age {get;set;} }
For view, I put text input for Age to get it value.When type some string in Age text box like 'test' and press submit button. I got this error message ,The value 'xxx' is not valid for AgeHowever, I want to change this message and try many way. There 's nothing effect this message value.
I have a repeater that has a delete button in it.When the delete button is clicked the panel updates and returns, then the row is deleted.So the deleted row stays in the repeater until i navigate away and then come back to the page. I commented out the update panel and all is good except i really want the update panel as the flicker is not pritt
when i sort the grid and it is display in sorted order and when i go to next page it will show data in default order. how to maintain sorting order duing paging
I have a sql data souce that returns several columns of data, and they are displayed in a DetailsView on a pretty simple vb.net page. I'm stuggling with one field though for the details view.
It's a template field, and if ClientType=1 (this value is determined else where on the page), then the label in the template field should have Text='<%# Bind("ClientName") %>', but if the ClientType = 0, then the label in the template field should have Text='<%# Bind("ClientTemporaryName") %>'
How do I tell the details view to set the text for ClientName to one or the other?