C# - Run Method On Server Without Refreshing?
Sep 8, 2010
I know how to use UpdatePanels and so on but I would like to know if its possible to run method on the server (after clicking a button) which doesnt change anything in controls on the site but for example updates database.
I know that I can use WebService but is there any way to use simple code behind methods ?
View 5 Replies
Similar Messages:
Mar 4, 2010
I have a requirement where a user logs on to a server where exists a website. The user bring up the site on a browser on that server and loads a power point presentation slide. At that time, users using their laptop clicks on the link to that site and sees that particular PPT slide loaded on the server. Then the operator/user on the server clicks on the second slide and the laptop would now see the second slide. Is this possible to do? If yes, then what technology to use? DHTML? or something else.
View 4 Replies
Jan 15, 2010
I'm trying to show some data in the update panel refreshing every second using page method. Everything works fine until I introduce Session. As soon as I save some data into the session my Ajax Page method is not called every second. Here is the complete code
Test.aspx
[Code]....
Test.aspx.cs
[Code]....
why after clicking "Enable Session" button refresh stops working?
View 2 Replies
Jan 20, 2010
I have a large DataTable cached in my web app that is the result of a complex query that returns a large data set. Whilst this data table is cached the query that runs to "refresh" this cache still takes a long time, largely due to the sheer amount of data being returned. In order to speed this up I am considering implementing a timestamp type approach to my tables in order to limit my query to only return rows which have changed.
I then intend to merge this smaller dataset with my cached datatable. Has anyone done anything similar to this, or is there anything out there that handles this already? I feel this could be a re-inventing the wheel situation if I dive straight in.
View 1 Replies
Jul 27, 2010
I have jQuery plugin - progress bar. How to invoke server side method on success? The code is below:
(Everything works fine)
[Code]....
View 1 Replies
Dec 30, 2010
I am using a dropdown, a devexpress grid view and a button on my page.
My gropdown contains the months in the format MM/YYYY, and on dropdown's selection change the data binds in the grid view.
the functionality of button is to go on previous page as same as back button of browser.
Now, my prob is that if i select any month and then select another month, the data changes.
but now when i click on back button having onclick ="history.go(-1)", changes the data on the grid view but the month in the dropdown remains the same.
For example:
Suppose, first i have month selected as 02/2010. At this time the data in grid view is for exapmle 01234
now when i select month 03/2010 the data in grid changes to 56789
now when i click on back button, then data in grid changes to 01234 but the month in dropdown remains to 03/2010.
View 2 Replies
Dec 10, 2010
Code below is ready to test: MVC3 Problem is when I enable e.preventDefault(); than individual errors not popping up infront of each control generated by ValidationMessageFor and showing up when e.preventDefault(); is enabled. All the errors are working properly but once code processed and Successful message returning from server side make the whole page POSTBACK/REFRESH How I stop the whole page from Refresh/Postback if e.preventDefault(); is enable and get SUCCESS message from server?
[Code]....
View 3 Replies
Jan 21, 2010
how can i use the refreshing a part of the web-page without all the web-page am using c#.net, it will be great if there is an example to how you can do that also i need to know how can i use the iframe to do that, or a good way to do that
View 5 Replies
Nov 8, 2010
Locally I have the cascading dropdown which loads countries in a cascading dropdown working.
But as soon as I place the code on the hosting server, Firebug shows me an:
500 Internal Server Error - [URL]
The cascading dropdown just shows "[Method error 500]"
REMEMBER: IT WORKS ON MY LOCAL SERVER!!!
local configuration:
Windows 7
IIS7.5
ASP.NET4
server configuration:
Windows Server 2008
IIS7.5
ASP.NET4
So it almost MUST be something on my hosting server! :s I dont know what to configure though...
[code]....
View 5 Replies
Apr 13, 2010
I am creating an Asp.net web site which will support dynamic data. When I am creating a dynamic web site from Scratch (from template in VS) all is working fine. But when I am trying to add dynamic entity (.edmx) file and running the application I am getting following error
"The method 'Skip' is only supported for sorted input in LINQ to Entities. The method 'OrderBy' must be called before the method 'Skip'. "
View 2 Replies
May 17, 2010
I am creating custom server control. I have two classes in project. One is main class that render control and another will be used to render content based on condition.I just want to know how to render content from other classes in main class.For example. This isjust an example.My main class code
[Code]....
My TopLeftPane class
[Code]....
My page code on page load event
[Code]....
When I run the page, Header title always getting null. This is a just sample code. I will have more than 20 classes so I dont want to write a code in main class to render whole control.I hope all of you understand my problem.
View 3 Replies
Mar 17, 2010
I installed demo activeX on my web application which at the end try to upload file on server using PUT method. I'm using Windows 7.
There I get an error 404 File Not Found.
know what I should fix to make this working.
View 1 Replies
Aug 28, 2010
I always use SqlConnection() To open a connection then use the connection to interact database. But I have heard somewhere that opening SQLconnection() take a time. and if on different pages of projects I repeatedly Connect database then It will take long access time always. So I want to know that if there is any other methods which don't use the SQLConnection to interact database and increase the response time of database.
View 1 Replies
Jan 24, 2011
I am not sure how to explain this but I will give this a try. Before, we had an app running on windows XP and all the reports were working fine. Now, the app is moved to windows 2008 server. There is one report in this app that uses Microsoft Interop.Excel which is used by component one. Apparently, interop.excel is not supported in windows 2008 with 64 bit running. After doing bunch of research, we have two options - either write this report again or execute this report from XP.
I want to try the second one. The interop.excel works fine in XP. A copy of this app is on this server. What would be the best way to execute this report from windows server 2008? It looks like i would have to connect to the XP server, get access to the app and finally the function that executes the report. Is this possible?
View 6 Replies
Mar 23, 2010
I'am with problem in CascadingDropList, I develop in my pc and work perfectly, but when put on server show error method 500?
View 2 Replies
Feb 15, 2013
How to call server side method from. js?
View 2 Replies
Jan 12, 2011
auton=createsid(num)
INSERT INTO Store_Information (sid,store_name, Sales, Date)
SELECT store_name, Sales, Date
FROM Sales_Information
in the baove i need to add the SID which is a no obtained from incrmenated function, how do i add itautono will contain the incremnet value which i need to add to sid column
View 18 Replies
Apr 3, 2010
How to call a method on a server side from JSON. Below is the code I am using
SERVER SIDE:
[Code]....
Now I want that on button click, I would call the function at the client side [JSON], which pass the textbox value to the function.
View 2 Replies
May 3, 2010
I need to call a c# server method through the javascript. I have a gridview in which i have a column with dropdown list. When i change the dropdown's value i need to call a server side method through javascript and change the value of another text box in the gridview.
I am able to do this on the selected index change. but i am slightly worried about the performance.
i am using asp.net c#.
View 2 Replies
Jul 8, 2010
I currently facing a cascading drop down list problem. When I develop my website at local pc, everything work just fine. However I deploy it to server, I get Method Error 500.
View 4 Replies
Jul 19, 2010
I have a Solution in which i m using Gridview which stores image inside it. Every time when user uploads images and clicked on button, image get inserted into Gridview.
But every time user hits on button page get postback,so to avoid this i used web method which is get called when user hits on button (html button). But when i m trying to bind gridview in this method.It is not get accessed .
how i access this gridview inside web method? Why Web methods are always static?Is there any other way to do this?
View 2 Replies
Aug 3, 2010
I am implementing web service into my web application, i added web reference to my application of required web methods from my asmx file.
i am able to create object of this weservice and able to see all the web methods available from the reference object. In debug mode(working environment), i could invoke and get result from the webmethod and working fine as expect. i created test page for testing this.
But, when i deploy same in my beta i am getting below error.(my both test page and asmx file available in my beta server where i deployed)
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 138.108.18.207:80
Description:
An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 138.108.18.207:80
Source Error:
[Code]....
View 2 Replies
Mar 9, 2011
I have a tricky problem. I am in a situation where I need to use a method defined in a .cs file from a javascript function. The problem is we are using .NET 1.1 and AJAX cannot be used for the application.
Also, I will need to pass a string from the javascript to the server side method. The page where I am implementing the javascript is a .as
I have tried doing a post back and creating a RaisePostBack event handler method (both in the .aspx page and the .ascx user control) but no luck.
The javascript is called from a span's onclick event. The javascript function's input parameter would be a string which I will need to use to instantiate an Attachment.
I created a method which instantiates an Attachment using a string and calls the corresponding Delete() method for the Attachment object.
Now, I will need to pass the string from javascript function to the method I have created. I cannot use PageMethods.
The Javascript function is like:
[code]....
View 3 Replies
Feb 14, 2011
i have a simple questions. I am programming in Visual studio using vb.net. As Database i am using mysql with the .Net connector and using the membership provider. Do i need to install microsoft sql server 200X too ? (although i will not use it)
View 1 Replies
Feb 1, 2011
I have my local Dev environment VS2K8 (ASP.NET) and our Dev server with no Dev tools. I have an app that runs just fine locally, but once I move to the Dev server I get an error. Another part of the problem is that I am moving the compiled dll for the website so I am not even getting the .cs line in the event log so it is very difficult to debug on the Dev server.
View 1 Replies