Click here to Skip to main content
       

ASP.NET

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
AnswerRe: how to split a page using framesetmemberjkirkerx4 Nov '12 - 7:58 
That how it works. The page has to send a request to the server to get new HTML that represents the current data stored.
 
The update panel just puts round trips to the server into a smaller container, so your still doing a postback, but just a partial page postback. The update panels works fine in developement, but in production mode, as you get farther away from the server in distance (4K miles away), the speed slows down, and the page gets jerky and stutters. The update panels is sensitive to data changes, with the exception of the textbox and dropdown box selected values, in which it has security features that do not accept changes. So if the server sent one thing, and another posted back, a security exception will be thrown.
 
You would have to use Javascript and a webservice, in which the client keeps polling for cart data, and the javascript updates the cart container, or have some type of trigger that fires off the process.
 
Or just change the user experience, by sending them to a confirmation page, and then send then back to the origin page. When they come back, everything is updated.
QuestionHow do I call a remote Web Service from an Asp.net application?memberNada Adel31 Oct '12 - 23:28 
Hi,
I'm trying to connect to this Remote Web Service
http://217.52.114.3/kannelsending/service.asmx?op=SendSMS[^]
 
When I try it manually, it works, I have a username and password.
 
But it displays this error:
The remote server returned an error: (500) Internal Server Error.
 
...at this line.
HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse();
 

Do I need to encrypt the parameters or what? I'm kinda new to webservices...
Am I missing something..can someone post an example to try out?
Thanks.
AnswerRe: How do I call a remote Web Service from an Asp.net application?mentorKeith Barrow1 Nov '12 - 5:54 
Normally, you'd generate a set of service proxy classes to handle the communication to the server. Working at the Http level/rolling your own messages is normally tiresome and needless, thankfully there is a wsdl defining the service you want to use.
 
I'd suggest running wsdl.exe against http://217.52.114.3/kannelsending/service.asmx?WSDL[^], this will generate a set of proxy classes you can consume in your code.
 
You can also add a reference to the web service by right-clicking the project --> add service reference and using http://217.52.114.3/kannelsending/service.asmx as the service address. Don't know how well it works with external IPs, and if anything changes with the external service, it could break your code.
 
Refs here:
 
http://msdn.microsoft.com/en-us/library/ms155134.aspx[^]

AnswerRe: How do I call a remote Web Service from an Asp.net application?memberMathlab2 Nov '12 - 6:22 
What version of .NET framework are you using? If you are using v4.0 you can add a service reference which would make it simple or you can search the .ServiceModel for easy tools.
AnswerRe: How do I call a remote Web Service from an Asp.net application? [modified]memberjkirkerx2 Nov '12 - 18:41 
[Edit]
 
I went to your link, and the typical methods for accessing the web service came up.
The last example is probably what your looking for.
 
You'll probably have to debug the web service to see if the query strings are taken first, and make adjustments. Just load the web service file, and press F9 to mark a spot to stop at and press F5.
 

HTTP POST
 
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
 
POST /kannelsending/service.asmx/SendSMS HTTP/1.1
Host: 217.52.114.3
Content-Type: application/x-www-form-urlencoded
Content-Length: length
 
service.asmx?UserName=string&Password=string&SMSText=string&SMSLang=string&SMSSender=string&SMSReceiver=string
 
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
 

int

modified 4 Nov '12 - 1:30.

Generalasp.netmemberrifayee31 Oct '12 - 22:50 
actually i am developing a web application ..in that web application i have lot of label controls ,buttons and textbox placed in the top of the page.in the bottom of the page i placed a gridview control..when i click the view button the top of the controls like textbox and labels will be disabled and gridview is placed at the top of the page..but for the gridview is displayed bottom page only...can anyone help me how to view the gridview control in the top of the page....thanks in advance
GeneralRe: asp.netmemberThink On1 Nov '12 - 4:39 
Do you want to hide the controls and show the grid view.
Or You want to show the grid view as the popup window.
GeneralRe: asp.netmemberrifayee1 Nov '12 - 19:13 
i have a lot of controls in a webpage like buttons labels and textbox,,,and in the bottom page i kept one grid view..while in run time i kept hide the gridview during the page load,if the button view is clicked,i want to disable the textboxes and labels and buttons which i kept in the top page,and replace that in gridview controls..i did it but gridview is displayed in bottom page only,,it will appear in the top of the page..can u pls help
GeneralRe: asp.netmembermark merrens1 Nov '12 - 13:16 
Wrap all of the controls at the top in one div and the grid in another. Use a bit of javascript to hide the top div and move the lower up to the top is one way to do it.
 
You could also use an asp:Panel to surround each and set the visibility of the top one to false on PostBack.
 
I'm sure there are other ways to do this but these should get you going.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
 
me, me, me

GeneralRe: asp.netmemberThink On1 Nov '12 - 20:29 
You can place the grid into one div tag
and specify the position: absolute and specify the location where do you want to display the grid.
 
and make the div visible true false on the basis of the requirement

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 23 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid