Hi, I'm having a strange problem when I'm testing my custom web control. The problem is when I have entered a value in the textbox and pressed next on to another screen. If I then go back (history.back) then the textbox is blank rather than showing the value entered.
This only seems to happen in Firefox and Chrome though and it is fine in IE. The value is being saved to the database ok. My class in inheriting from WebControl.
public class AutoCompleteTextBox : WebControl
Does anybody have any idea how I can solve this please?
I'm developing a user control that is loaded dynamically into a page.
The user control has 4 dropdownlists(DDLs). Each is populated dynamically depending upon the values selected in the previous DDLs. Each DDL is in a separate updatepanel (not nested) and has the autopostback set true. Each has its trigger set as the SelectedIndexChanged event of the DDL before it.
The problem is, if the user selects a (non default) selection 'x' in the first DDL and tries to select something say 'p' in DDL2, on postback, SelectionChangedEvent for DDL1 is fired (as per normal page lifecycle) to select 'x' which reloads DDL2 before SelectionChangedEvent of DDL2 is fired. This causes the selected 'p' in DDL2 to be lost and the page comes back again with the default selection for DDL2. Similar is the case with other DDLs. Here's the logic of my code:
What this does is, when OnSelectedIndexChanged_DDL1() is fired on postback to select 'x' in DDL1, it reloads DDL2,DDL3,DDL4 and by the time OnSelectedIndexChanged_DDL2() is fired (because of the selection 'p' made by user) the statement 'DDL2.SelectedValue' inside it only returns the default DDL2 selection 'd' and not the user selection 'p'. Can I get the value selected by the user in Page_Load itself (say from Viewstate) instead of waiting for OnSelectedIndexChanged_DDL2() to fire?
I know it's really long and might seem confusing but I really need a solution to this and am losing my mind! Any help would be great. Thanks
hi all i tried creating a web service.it is being created successfully.
but there is no bin folder and no bin/webservice.dll I created web service as a new project.
and a new directory.Can any body give me some gud link or article which is self suffficeint
to understand web service.How we can deploy the web service on the net.also i am confused
about the diffrence in webservices created as a individual project(as mine) and one which
is created inside our our website.what is the diffrence.how to use the web service in our application.plz guide me.thanks...
I want to keep track of date/Time and IP address of client(end users) system. He is updating data through asp form. Datetime and ip address of the system it should be automatically update in database. Can any one pls help with this..
Hi, I created one web applicaiton which contains aspx and aspx.cs files. I want this application as exe file to give this to client. So i tried this by adding webseup project to solution and i created a msi/exe file for this project. Up to here every thing is fine.
But when i install this appliation it is creating a folder with all aspx and aspx.cs files. But i dont want to place .cs files at client place.
I tried by publishing website. Then its is giving dll's. But i can;t make it as exe at that time, bcz its giving error as "already precompiled".
what is the solution for my problem? how can i give exe file to client which doesn't contins code files once he installed in his machine.