Web Forms :: Save User IP Address In Database
May 7, 2015I want save users IP in database
View 1 RepliesI want save users IP in database
View 1 Repliesi have a asp.net web with vb code and sql database. i am willing to store the details of the users as ip,computer name and time of using the web is it possible.
View 1 RepliesI have a text area that allow user the type in an address in free format, how do I parse the address user entered into address1, address2, city, state, zip and country and save into DB?
View 4 RepliesI have profile variable called IP Address ,
i need this Profile to add Unique IP address that has been used by the UserName ,,,
meaning :
If i logged in for the first time , it will save my IP address , next time if my IP has changed and i logged in , i need to keep the old IP address and add to it with comma seperated the new IP ..
How to user FileUploader tool to save files to data base?
View 5 RepliesHow can I dynamically insert images when user uploads an image file to SQL Server 2005 with C# in ASP.NET? This is to let users upload their profile photos in my web app. Is it very different from how it is done for windows app with C#?
View 3 RepliesI am building an MVC application with C# as my language which is hosted on Widows 7 IIS. A call to Add a new member to the database works, but when attempting to save the change I get the following error:
Cannot open user default database. Login failed.
Login failed for user 'IIS APPPOOLmyApplication'
The SQL table was added just by adding it within VS.
I just set up user profiles using asp.net 3.5 using wvd. For each user I would like to store data that they will be updating every day. For example, every time they go for a run they will update time and distance. I intend to allow them to also look up their history of distance and time from any past date. My question is, what does the database schema usually look like for such a set up? Currently asp.net set up a db for me when I made user profiles. Do I just add an extra table for every user? Should there be one big table with all users data? How do I relate a user I'd to their specific data? Etc.
View 2 RepliesOn my aspx page I am trying to capture user input and then tried to save them in database and also trying to post them onto another page. Now I am using the following code on the button click event:ASPX CODE:
<asp:Button runat="server" ID="cmdPress" Text="Save"
ValidationGroup="ValidateId" Height="26px" onclick="cmdSave_Click"/>
CODE BEHIND:
SaveCustomer();
SaveRequest();
cmdPress.Attributes.Add("onClick", "update(" + ID.Text + ");");
Now when I click save button then it the page waits and then I have to click again to close the page automaticallly and move to the next page. Can anyone tell me why I will have to click Save button twice to activate the button.
i'm new to c# and i wanted to know how can i allow user to upload a picture from a text box and a button??
after uploading the picture, how can i save the picture in the database??
**note**the picture i allow user to upload need to be in a fixed size.
I obtained the facebook profile details of an user.Now I need to store the profile details including profile picture in my local database.
View 1 RepliesI did a winforms applicaion using C#. I has 'n' number of forms.I like to track application usage time from user login to application exit.
View 1 RepliesHow To Save Video files into folder and save path only into database in asp.net using c#.
View 1 Repliesone button i use to save form entity.and other is to navigate to next pagwhen i click on save button i use jquery to save form entity in database. and form remains as it is
<script type="text/javascript">
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
[Code] ....
My Asp.Net calls a SQL sproc and returns a XML file as a string. This is what I need to do:
- save that string into memory (as a file);
- pop up a dialog box asking the user which path he would like to save the file;
Any samples out there...how do I achieve this task in Asp.Net C#?
There is a post request coming to my portal and I am fetching IP address from the post request on my portal landing page(INDEX view in MVC) and saving in DB table. below is the code to fetch IP address.
string Device_IP = "";
if (!string.IsNullOrEmpty(Request.ServerVariables["HTTP_VIA"]))
{
// ' using proxy
// ' Return real client IP.
[CODE] ...
It is fetching IP address on my side but on client side when request is made code is not working. same code working fine on other sites.
What is the best way to insert and retrieve images like :
In the database in binary form retrieve it with imagehandler, or
In the database by saving the path of the folder of the images and retrieve it, or
by saving the images directly to the folder and retrieve it...
I have a form with x fields on - its a signup form on a web page. I use standard validation controls which I use for validating on both client and server side, however I have an additional requirement I don't think is covered by the standard controls. When a user enters an email address and press enter, I validate that the address is not already in the database, by calling a stored procedure. This works fine but it would be great to validate it client side as with all the other entry fields.
I wouldn't know where to start with javascript so I have come up with the following solution. I have put a ontextchanged event on the email textbox and set to autopostback. When the user navigates away from the textbox validation is called and this seems to work ok. My question is have I missed something, and is there an easier soluyion using validation controls or is this an appropriate solution to the problem?
How to retrieve the current authenticated logged in user's email address who is accessing the page.
I have managed to do it with users. How to get the current authenticated user's email address if that makes sense.
Here is my aspx code:
[Code]....
and my VB script:
[Code]....
Somebody suggested that I should run a query. If you know the user name accessing the page, surely you can take that information, insert it into a query to find out the email address of the user accessing the page. Sounds great but don't have a clue how to do it.
Actually i am developing a web application for leave,,if the employee wants to take a leave,the employee working under the senior people,if the employee 001 wants to takeĀ a leave,if the employee 001 logins in the web application,if he is working in sales dept,automatically this mail is forwarded to sales manager..like wise for all the employee..if the employee works in accounts dept,whenever the employee logins in the web application,to email address automatically change to the accounts manager..i dont no how to do this
View 1 RepliesIn this article u describe how to check
[URL]
But I want to Data retrive from data base in this way can u tell meĀ using java script and query string
I am creating a "Request for Quote" web form for my company so that when user enters his:
name,address,email,phone etc fields and clicks the submit button,all the data of the webform should be sent to my email address.
I am using a form to add and edit record of database.
In Add case my email box has no value. I have used customservervalidation to check the given email address with previous database records.
In Edit case my email box is populated with data from database.
When i click save button in both cases my customservervalidation method invokes and checks the given value. it works fine for new/add case but in edit case it checks with itself also and says duplicate email... pointing own record...
Possible Duplicate:
How to get visitor location ( country, state and city ) using ASP.NET
How get user location using user IP address using asp.net?