I have a form with auto postback set for custom validation on several text fields. It also has a list view of items which acts as a record selector to populate the text fields from a database when selected. The problem is that if I edit a text field and then click on the list view, the code behind for the text field runs and the listview returns to the previous selection which means the user has to click twice on the listview to select a new record. I'm sure there is a way to determine which option on the listview was clicked on and run the code behind for the listview after the code behind for the text box but I can't seem to find it. Doese anyone have any ideas or preferably a solution that they have implemented?
so on post back the focus issetto textbox1. i want to be on button1.
In my small company, we used a contract shop that setup an C#.net web form 2010 application. In the future, I will be supporting the website.
Thus I am wondering what are the categories I should check on to view the 'health' of a website. Also with these health checks, what would be recommendations on how to fix problems when they occur.
For example, I know this contract shop did not 'conserve' on viewstate and they used linq to sql instead of using the entity framework when setting up the website. Thus can you tell me if these and other categories are areas I should be checking on?
I have a gif image of the United States. Based on data in a database I would like to dynamically place points of some type on the gif. Then associate these points with a hotspot(imagemap control). Is this possible?
I have a controller that returns a FileContentResult that shows a pdf file in the browser. It works correctly in my local system but after I upload my site and try to reach that page I get "The resource cannot be found(HTTP 404)error".
i want to call a asp.net function GetData() and FillAccountaValue() simultaneously.
I can't write a Serverside event directly for this controls, if i do this operation directly in serverside control, it will filter all the data and get the records from DB and it is very time consuming and i can't use AJAX controls here too, its not allowed here.
In my asp.net application I have grid view with some data.I need to pass those grid view's values to Details View and make some updation on that Details View.please give me simple example.
Thanks In Advance
I'm a complete novice in ASP.NET. My company is using 3.5. Here's my dilemma. I'm using VB
I'm using User.Identity.Name to pull in the user ID of the user on the Page_Load. I then want to take that User ID and bump it against a SQL Server view's column to see if it exists within the view (alongside other conditions). And there in lies my issue.