I have an asp.net webform which has a div element named 'contents', and a textbox on it. The div is loaded with some html, which I've retrieved into a string in the codebehind file. Inside this html, I need to be able to mark up various bits of text so that when a user clicks them, it sends a message back to the server, which then populates the text box (which is on the same form) with some other data.
The problem I'm having is how best to communicat back to the server- so in the code below,
1) What should the line alert("You clicked " + x); be, so that it uses ajax to call back to the server, sending the parameter 'hello'
2) What method would be invoked on the server? Would it be Page_Load again?
3) After having called the server, what code would I need to popluate the text box without sending back the whole page again (i.e. still using ajax)? The problem is not retrieving the text on the server, let's just say I receive 'hello' as a parameter on the server, and want to send back 'goodbye' to the text box, again using ajax
I need to bind this data to a gridview with Templatefield with dropdownlist as ItemTemplate for columns such as Name and Sex and with textbox as ItemTemplate, so that I would be capable of editing the records in the gridview.
i have 3 dropdown list box 3rd dropdown populate depending on 2nd drop down and 2nd drop down populate depnding on 1st value of drop down in asp .NET C# and the value should be fetched through database.
We have created a new Webservice , in this service we are using exterenal webservice in this webservice wsdl namespce tage () is empty and getting this error : "Schema item 'import' from namespace ''. The namespace attribute cannot have empty string as its value.could you please assit me
I am not using any tool to create proxy. I am expecting the proxy to get autogenerated when i do webreference from our project.
what namespace i have to mention in this tag "" currently which is present as empty in the WSDL we go from external service. For this whether I ave to work anything from our side or I ave to ask the external service guys only to solve this.
Error 1 Unable to import binding '*****' from namespace '******'. App_WebReferences/****/
Error 2 Schema item 'import' from namespace '****'. The namespace attribute cannot have empty string as its value. App_WebReferences/*****/
SALAM all. im doing a RESTful web service with ASP.net, and i have a problem when invoking few of web service that i've created. here is the architechture of my solution: BLL ==> i put in it my functions like this:
publicstatic List<transaction> getTransaction(string ID)
var query = from v in SMARTDBEntities.Instance.transactions
where v.compteID == ID
if (query.Count() == 0)
DAL ==> I used generation item to create model.edmx Entity ==> i used POCO generation code to generate entitys from data base.
and in my service.cs classe i put on it my web services like this:
and to make the response object serializable i add in the poco.context.cs Constructors
this.ContextOptions.ProxyCreationEnabled = false;
Now when i want to call my web service from my browser, an intermittent error appear. sometimes it work and displays for me the list of transaction and sometimes (most of time) it doesn't work, and displays to my an error:
Error324 (net :: ERR_EMPTY_RESPONSE): The server terminated the connection without sending data.
I'm working with vista pack1
have you any idea for the way to fix this problem. thank youuuuu
I've got a problem to manipulate a button outside of a updatepanel. I will try to clarify my problem as good as possible.
I've got an aspx page, with an usercontrol in it. In the usercontrol there's an updatepanel.
Now, there's a button in the ascx and when the button is clicked, I want to enable a other button on the aspx. So, the button that should be enabled is outside the ascx and the updatepanel. I'm able to call the method in C# to enable the button, but nothings happens. I thank because there's an updatepanel?
the button that should be enabled is outside the ascx and the updatepanel.
Put this button in another update panel. Have a async trigger defined in it for previous button click. This would complete the design. Now, whenever the button1 is clicked, this update panel will be invoked and refreshed.