Can Capture Actual Address Bar URL
Sep 15, 2010How could I get the url from the address bar. Im using c# for this. for example: if I type [URL]in my address bar, then i would get "[URL]" caption.
View 2 RepliesHow could I get the url from the address bar. Im using c# for this. for example: if I type [URL]in my address bar, then i would get "[URL]" caption.
View 2 RepliesDoes any one know how to capture ip address using c# and when a person hits a button on my webpage
View 14 RepliesI have managed to expose the MEX endpoint of my WCF service and I can access it with the address like [URL] (example) and get the WDSL. So no problem there.
However, my WCF test page shows the address wrongly by using the server's name instead of the DNS name. And if I click on the link on the test page it won't work (can't get WSDL).
The WCF test page looks like this:
MyService Service
You have created a service.
To test this service, you will need to create a client and use it to call the service.
[URL]
The WCF service is hosted in IIS6. I would like to have a test page with the correct WSDL address so users can see the WSDL quickly in the browser just by clicking on the WSDL address.
In short: How can I change the MyServerName to inter.mycompany.com on the WCF test page? Can this be specified somewhere in the Web.config?
I am trying to pull entries from a database based on the current users IP Address. Here is what I have so far:
[Code]....
I am receiving the following error: Cannot find either column "Request" or the user-defined function or aggregate "Request.UserHostAddress.ToString", or the name is ambiguous.
Is it possible to do this? Should I try to access this information another way?
Is it possible to find out the clients IP and possibly MAC address from non IE browsers (i.e. without using ActiveX)? If so, how?
View 1 RepliesI need to set up routing in global.asax so that anybody going to a certain page with an actual tilde in the URL (due to a bug a tilde ended up in a shared link) is redirected to the proper place using routing. How can I set up a route for a URL with an ACTUAL tilde ("~") in it, e.g. www.example.com/~/something/somethingelse to go to the same place as www.example.com/something/somethingelse - it never seems to work!
View 2 RepliesWhen a create a web project ( ex webapplication) and when we publish it. We have Two folders created ( App_data and Bin) and have one file Default.aspx and web.config file.
My question.
1. Where is Default.aspx.cs file?
2. When a request will comes for example ( http://Mywebsite/default.aspx)
Does it goes to default.aspx page? or it goes to the webapplication.dll file which is under bin folder?
I would like to take my usercontrols that are loaded dynamically and stick them into a list that references the actual object that has been loaded. So I can go into the list and pull results from the usercontrol. I would like to use mycontrol.GetResult() and it will then reference the control and grab the results from the form that has been filled out, which the results will be returned as a string. I do not want it to initialize a new control of the same type because I will not be able to receive my results then.
View 3 RepliesNormally we have to use scriptmanager control on our page whenever there is a need for update panel and other ajax controls. I want to know about actual function of scriptmanager.
View 2 RepliesI have a basic webform (method="POST") which I would like to "hide" in codebehind by using <asp:LinkButton> and using the OnClick-value to generate the form in C# & doing the http-request. So basically the form looks like this:
[Code]....
Now what I want is to have something like this:
[Code]....
Now my problem is that if i use the normal <form> it displays correctly and works correctly but if I try using <asp:LinkButton> I can't see anything on the actual page.
any body have IPAddress and port for actual server that i can test my Client UDP?
i can't test it in local host
Our app uses session to keep track of users. We stuff their user id into session on logon. If the browser cache is cleared any refresh to the page is done then the user will see the log out sign - as the app cant get theuser id from session as the aspnet_session cookie wont be present in the request.Firefox works correctly but when I clear the cache on i.e. the session is maintained. The session ID's are the same for multiple requests.how I can debug the app to see what cookies its getting. How do I look at the actual cookie that is passed to .net?
View 2 RepliesI'm creating composite control, which has two other components that rely on each other.
In component A (image), I access component's B (input) UniqueID which equals
MyTextBox1$BoldTextBox
I use it in onclick JavaScript code...
But in rendered HTML input element has following id
MyTextBox1_BoldTextBox
So my javascript code , generated inside composite control has something like this:
onclick=$('#MyTextBox1$BoldTextBox').....
instead of:
onclick=$('#MyTextBox1_BoldTextBox').....
I have a website that hosts video files. Some are small around 5mb and some are up to 200mb. This site is not live yet, but when I try to do a test download, it doesnt show the total file size, it just shows how much it has downloaded and the speed.
I tried downloading a 5mb file and once it completed it had actually downloaded 15.2mb. The file worked fine but why was it so large when the actual file is not that size at all. The type of files that are donwloaded are FLV's and MOV's.
I have tested this on IE 6, IE 8, Chrome, Safari, and Firefox, all with the same results.
I am developing an ASP.NET web page with C#. I have a sitemap document but I want to hide certain nodes based on the user's credentials. However, I am having problems with my code removing the actual node. Visual Studio runs the program with no errors. However, the node is still there. Below is the code I have developed for this. The node changes text to "it worked" as I hope written. However, it will not remove itself. I can get the item to be disabled, change enablement, but I need to hide it completely from the viewers view - not the document.
[Code]....
I am trying to get a number returned from a webservice that executes a stored procedure and gets the record count from SQL. I then want to display an alert with the record count to the users, When they click on 'Check records' button. For now I am just using the alert to see if I could get a number back, here the code I am using:
$.ajax({
type: "POST",
url: "/WebserviceName.asmx/MethodName",[code]....
It just returns [object] rather than the actual data in the alert box in IE 7.0 however it works fine in Firefox and displays the valid record counts like 0, 10, 36 etc...So there some thing else I need to do to handle the JSON data in IE but
I have a situation where I need to display an actual error/exception that happened during processing after the OnFailure event of the AjaxOptions class fires. Is this possible? I know the OnFailure allows me to write a method that can display a custom error message. Instead of this error message, I'd like to display the actual exception.
Here is my code for the ajax form init.:
[Code]....
And then here is my Javascript method:
[Code]....
As you can see, I am currently displaying an errorMessageDiv which has the code:
[Code]....
I would love it though if I could show them the actual Exception message (which i have wrapped) so I can tell them the exact cause of error.
How do I obtain the IP address or MAC address or some Unique ID of a device within a mobile app, either client or server side?
We are developing a web application targeting iPhone, BlackBerry and Android, generally device independent, and we are looking for ways to uniquely identify a device for added authentication purpose. Is there a way to uniquely identify a mobile device, regardless of the make and model?
Is it possible to insert information into the gridview's pager, like "Showing 10 of 55 items (You are on page 3)" and bind that information accordingly to the actual PageCount and PageSize properties?
I can only think of doing it outside the pager, even outside the GridView.
I have more or less zero .asp knowledge but i'm hoping this will be quick and easy. Bots have been spamming our web form. I have a simple .php form that submits with an .asp script. The .asp checks for valid email address etc. but i need to check andilter the actual body content.
Body = Request("Body")
f Body = "" Then
I had a page page url www.abc.com/AboutColors.aspx. I did url routing and changed it into url www.abc.com/About Colors. If I want to get the page name AboutColors.aspx then how i will get it on the page load.
If I have changed the url www.abc.com/ColorGallery.aspx to www.abbc.com/Colors/Colors Gallery then how i will get it. I am using asp.net 4.0.
I have a variable element in which I am passing a div and replacing object {0} with the actual control string I am getting. Here is my code.
[Code]....
string.Format(element, entities.ThumbnailImage);
In entities.ThumbNailImage I get the following image control string which I am trying to pasre, here is the string.
<img src='http://edgesuite.net/image/media/150_SOAK594002518_3000.jpg' id='imgrichFx8483' alt='' class='productClass' runat='server'/>
But string.Format gives me error, Input string was not in a correct format.
I want to embed a silverlight app into a web page and have the height/width of the div that contains the silverlight control match the dimensions of the actual size of the silverlight control.
I essentially want the div to stretch to accommodate the size of the silverlight control. I do not know what size the silverlight control will be before it loads as it is pulling in data and adding controls dynamically. I want to avoid dueling scroll bars and use only the browser scroll bars.
I need this to work in both IE and Firefox.Is there a way to accomplish this?
The following link: [URL]javascript has a link on the right-hand-side to switch code from C# to VB, but the actual example text does not change when the selection is chosen. Can someone tell me if this tutorial is exclusively for C#, or can it be built in VB as well?
View 2 RepliesIf I were to specify a page for redirect using the ASP.NET Custom Errors feature, would my application still spit out the HTTP status code for that particular error?
For example if had a line in my web.config that had all Internal Server Errors redirect to Errors/500.aspx and then I encountered a 500 error, I would then be redirected to my custom Errors/500.aspx page. Will my application still respond with a HTTP 500 at any point in this exchange?