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.
I want to change the content of popup according to the label value after clicking show PopUp Button
(I Means after geeting result from the server )
As the follwing
if (Label value == 0) PopUp value should be ( you must register From the follwing link Register Now)
if (Label value == 1) PopUp value should be (Congratulations You subscriped)
if (Label value == 2) PopUp value should be ( Already subscriped, Thank You)
I have a question about a C#.net web form 2010 application where I added new tables to two existing different linq to sql files (.dbml). I dragged these two tables from server explorer on to the 2 .dbml files. When I dragged these tables onto the designer, I was asked if I wanted to use a different data source and I said yes.
Everything works fine as long as I use the web.config file I used when I dragged the two tables onto the designers. However this web.config file is used for production. I want to use the web.config file that should really be used for development/testing. When I use the 'real' test/debug web.config file, the application breaks on a line of code saying I need a new instance of the object. The object that is being referred to is the new tables I dragged onto the designer form. Thus can you tell me what I need to do so I can use the 'test' web.config file?
Can anyone help me to understand just with an example which feature/functionality from ASP.Net MVC will help me acheive following.
1. I am planning to develop this generic search view which will show filtering criteria for different properties of a object passed to it. 2. I want this view to accept dynamically any entity object (edmx generated from my database model which has entities like Employee, Company, Department, EmployeeLeaves, EmployeeSalary,EmployeeTrainings etc this is bsically a HRMS domain project) and then to derive runtime from entity object what properties are available for searching/filtering 3. Also I want to show appropriate operators/options based on data type of properties that is my next hurdle I will try to take care of that. 4. Last but not least show results for specific entity/table based on filtering criteria. (I am guessing I may have to have generic search interface which will be implemented by these entity objects and I call specific implementation of it runtime)
My queries are 1. How can I pass different entity objects (in edmx) since I can only bind one single object as model and not multiple. If there is one base object can I use that as model and pass to it specific object runtime? 2. Also reading properties of objects that gets passed I want to show filtering options so should I be using reflection for that?
If no exmaple or no guidance, do direct me to any article that will help me study this.
Has anyone used the Izenda or Crystal ad-hoc reporting tools? I'm attempting to see which ad-hoc reporting tool is better and why. I've visited Izenda's blog, and they seem to be very good. Crystal has a nice blog as well. Who's is better and which should I go with? Small company and cost effective.
Hi,in vs. 2010 c# web site project I am using web modalanchor for new aspx page. when ı want to close modal web page,I must click twice time page closing (x)button.Why this is happening I cant understand.I am waitinfg for your ideas..
It is probably something like returning true or false from the client function that is being called. I'm not familiar with the code you are referring to (modalanchor), nor can I see your code, so an educated guess is all I can offer.