Get IP With Different Segment Or Gateway?

Jan 29, 2015

I'm trying to develop local website that records and save to sqlserver the private ip of person who will login to my website, Im using Windows Server r2 as my server, Now my problem is it only records the IP with same segment of my server which is segment zero like(192.168.0.83), if the IP of user is segment 1 or 2 the only the Default gateway of their IP are being saved, Correct me if I am wrong if it is defends on segment or gateway.

Code:
if (string.IsNullOrEmpty(HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"]))
{
Label2.Text = (Request.ServerVariables["REMOTE_ADDR"]);
}
else
{
Label2.Text = (Request.ServerVariables["HTTP_X_FORWARDED_FOR"]);
}

View 2 Replies


Similar Messages:

Security :: Difference Between WEB Payment Gateway And WAP Payment Gateway?

Feb 8, 2010

i want to use payment gateway in my asp.net site.so i want to know the difference between WEB payment gateway and WAP payment gateway.

Both are same or we have to buy them differently.....

i want the difference because i will also create wap site to run on mobile.

View 1 Replies

Segment C# Projects On Single Base?

Apr 4, 2011

I have a base project (with all its glory, dlls, resources etc) which is a CMS. I need to use this project as a base for othe custom bake projects. This base project is to be maintained and updated among all custom bake projects. I use subversion (Collabnet and Tortise SVN) I have two questions:

1 - Can I use subversion to share the base project among other projects What I mean here is can I "Checkout" the base project into another "Checked Out" project and have both update and commit seperatley. So, to paint a picture, let's say I am working on a custom project and I modify the core/base prject in some way (which I know will suit the others) can I then commit those changes and upon doing so when I update the base project in the other "Checked out" resources will it pull the changes? In short, I would like not to have to manually deploy updated core files whenever I make changes into each seperate project.

2 - If I create a custom file (let's say an webcontrol or aspx page etc) can I have it compile seperatley from the base project Another tricky one to explain. When I publish my web application it creates DLLs based on the namespaces of projects attached to it. So I may have a number of DLLs including the "Website's" namespace DLL, which could simply be website. I want to be able to make a seperate, custom, control which does not compile into those DLLs as the custom files should not rely on those DLLS to run. Is it as simple to set a seperate namespace for those files like CustomFiles.ProjectName for example? Think of the whole idea as adding modules to the .NET project, I don't want the module's code in any of the core DLLs but I do need for module to be able to access the core dlls.

(There is no need for the core project to access the module code as it should be one way only in theory, though I reckon it woould not be possible anyway without using JSON/SOAP or something like that, maybe I am wrong.) I want to create a pluggable environment much like that of Joomla/Wordpress as since PHP generally doesn't have to be compiled first I see this is the reason why all this is possible/easy. The idea is to allow pluggable themes, modules etc etc. (I haven't tried simply adding .NET themes after compile/publish but I am assuming this is possible anyway? OR does the compiler need to reference items in the files?) I posted a similar question with a little more detail for question 2 on Experts-Exchange. I don't want to post all that info here as it just will be too messy but it explains question 2 in greater detail.

View 2 Replies

C# - How To Store And Retrieve A Particular Segment From The Cache

Mar 8, 2011

It should store plain HTML fragments of a page like the standard Output cache in asp.net .The HTML may contain dynamic content from a database.When an object is updated in the database all the cached HTML fragment containing that particular object should be destroyed and re-cached next time it will be requested.

There is a separate admin tool to handle all data in the database so I can easy store the Id's in a cachetable when an object is invalid. I can also make a request to a page that destroy all cached HTML fragment for that object.

But when I write the markup, how could I do to store and retrieve a particular segment from the cache? Of cause I could do this in code behind and have the markup in a string but I don't want that. I want to have the markup as intact as possible.

View 2 Replies

MVC :: A Catch-all Parameter Can Only Appear As The Last Segment Of The Route URL?

Mar 26, 2010

I have this dynamic url and part of it will going to have paging enabled ike, "http://localhost:96556/MVC_Application/proceedings/url_link/url_section/url_item/url_position/page/2"But I'm getting this error at my route below "A catch-all parameter can only appear as the last segment of the route URL.Parameter name: routeUrl"

routes.MapRoute( _
"UrlItemProceedings", _
"proceedings/{*catchPath}/page/{page}", _

[code]...

View 2 Replies

ADO.NET :: Reading A Segment Of Huge Varbinaty (max) Field By DataReader

Oct 19, 2010

I have a table with just a column and a row in a table that it save just a file with size 1.5 GB ! C# application and sql server are in different machines. I want to read that file by DataReader every 100 MB then save all 100 MB files to disk by "FileMode.Append" for file stream and collect them to one file.

View 1 Replies

Forms Data Controls :: Column Chart Has Inconsistent Column Segment Widths?

Jan 3, 2011

[Code]....

Stacked-column chart has inconsistent column segment widths

View 1 Replies

C# - How To Implement A Payment Gateway

May 6, 2010

I need to know how to implement a payment gateway in ASP.NET for my billing based project.

Is there one gateway enough to access all the bank account?

View 1 Replies

How To Implement Payment Gateway

May 17, 2010

In my site I need to access the payment gateway. i tried many ways. I used Paypal to create a direct payment account but exception is thrown. Is there any other way to implement the payment gateway. I tried many links posted in this forums but had no good result.

View 10 Replies

How To Integrate Payment Gateway

Dec 23, 2010

How to integrate payment gateway in asp.net.am new one for this section.

View 3 Replies

Web Forms :: How To Integrate SMS Gateway

Jan 2, 2014

And i want to integrate that sms gateway in in asp.net web form

View 1 Replies

C# - How To Integrate Ccnow Payment Gateway

Feb 26, 2010

How to integrate ccnow payment gateway in asp.net? where can i get the activation key?

View 1 Replies

RBS WorldPay Payment Gateway Integration?

Jan 25, 2011

I am beginner in ASP .NET world. RBS WorldPay Payment Gateway Integration in ASP.NET?

View 3 Replies

Status Is Not Confirmed In Payment Gateway

Jun 25, 2010

have to integrate my project with paypal .in paypal payment gateway which option we have to choose (express checkout or standard check out)y Requirement is after user purchasing the goods he will be redirected to the paypal website at that time his payment status is not confirmed (either it is pending or processing in our database)once the payment has done by the user it has to automatically updated in the database

View 6 Replies

C# - How To Connect The Web Application To Kannel SMS Gateway

Jul 7, 2010

I have a project assigned in which whatever mail alerts be generated sent as a sms to the user who is using that web application.I want to know that how to use kannel as a SMS gateway to connect to my Web application and what are the steps required?

View 2 Replies

Want To Put Secure Payment Gateway For Website

Feb 24, 2011

i want to put secure payment gateway for website.

View 3 Replies

How To Use Payment Gateway For Online Shopping Purpose

Sep 1, 2010

i have to implement for online payment getting for donation for a social community

View 1 Replies

Web Forms :: Create New Skipjack Payment Gateway?

Mar 31, 2010

i like to create new skipjack payment gateway using asp.net 2.0 like [URL]. what are the procedure should i follow to implement this. Is there any other sample for this site?.Any Sample code for API Integration in C#.Send ASAP.I

View 2 Replies

Web Forms :: Payment Gateway Code For A Project

Feb 24, 2010

I develop a project for this project , i want to payment gateway code .

View 1 Replies

How To Implement Payment Gateway To Accept The Donations

Mar 3, 2010

I have a product (web application) in asp.net. We have different clients(Say A,B,C...) in the site. There are Users associated with each client who can make donations to the respective client through online. (By credit card, Online transfer etc)Now I want to implement Payment gateway to accept the donations and put it into client's account.

View 1 Replies

Eccommerce Website / Payment Gateway Method?

Jan 19, 2011

Im developing an e-commerce website for someone, i just needed information on whats the best payment gateway method using ASP.NET 2.0?

The second question is an important one, becuase its e-commerce and need to implement a payment control on the website for users to pay by there credit or debit cards, what i wanted to ask is that the site will need https. I have looked on EUKHost a web host and they charge for windows copper server for £39.99, but with https its £89.99. now my client is asking me what i should do becuase he thinks its expensive and needs to look at his budget. So i just wanted to ask HTTPS or without HTTPS?

I would advise him with HTTPS because if a user wants to buy an item and finds out that there is no secure payment on the site then it might push away users from buying items on the site.

I would be grateful if you could give your feedback.

View 4 Replies

Security :: Get The IP, Subnet Mask And Default Gateway?

Jul 29, 2010

I wonder if is there a way to get the subnet mask and default gateway (the IP I can get it) the way I'm getting the IP is the following:

[Code]....

View 5 Replies

Security :: Integrate Payment Gateway With Membership?

Nov 18, 2010

My site currently uses the asp.net membership functionality to allow uses into the members only area of my site. At the moment it is free.

I want to start charging for access. Can someone point me in the right direction to integrate a payment gateway with membership?

View 2 Replies

C# - WCF Service Calls Always Fail After 30 Seconds With (502) Bad Gateway?

May 4, 2010

We have a WCF service (BasicHttpBinding) which will always fail after 30 seconds. Calls under 30 seconds complete without error. Anything over 30 seconds will fail with a 502 Bad Gateway exception:

System.Net.WebException: The remote server returned an error: (502) Bad Gateway.

But yet the WCF call continues to run in the background (and will eventually complete). We have confirmed that the BasicHttpBinding - Binding - sendTimeout (in web.config) is greater than 30 seconds (actually set to 5 minutes). We confirmed this both on the client and the server.

Here is the full stack trace:

System.ServiceModel.ProtocolException: The remote server returned an unexpected response: (502) Bad Gateway. ---> System.Net.WebException: The remote server returned an error: (502) Bad Gateway.
at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)

[Code]....

where this 30 second "timeout" is coming from or why a 502 Bad Gateway error is returned?

SOLUTION: We are using the IIS7 Application Request Routing Module which has Proxy settings of its own. The Proxy settings have a default timeout of 30 seconds. Increasing this to 600 seconds (10 minutes) solved our problem. The Bad Gateway error is not completely correct but WCF Trace Viewer (see answer) helped see that the problem was not the service itself but an issue in between the client and the wcf service.

View 1 Replies

C# - Implement CCAvenue Payment Gateway Option?

Feb 23, 2010

We need to implement CCAvenue payment gateway option. How can I do this using ASP.net/C#?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved