VS 2013 - Data Usage Per User?
Sep 3, 2015
I am new to ASP.NET and am constructing a small mobile site for our drivers to capture details when they deliver a parcel. Is there a way I can see the data sent and received from a user on the server? We want to track company related data usage and reimburse them for it...
View 10 Replies
Similar Messages:
Nov 12, 2010
I am trying to use my user control on my page which should load with data from a datatable. When the PageLoad event fires up I got the following message:
Object reference not set to an instance of an object. 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.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
[Code]....
here is the page code which cause the error message:
[Code]....
View 2 Replies
Nov 6, 2010
I would like to have framework for tracking web site/page usage within company firewalls on asp.net platform. Want to track hits and integrate with particular feature within an application to understand end user usage (i.e. log particular actions of users in addition to simple page count type analytics). I have yet to find a framework to do this with asp.net/iis7 internal to a company (i.e. not google analytics).
View 1 Replies
Dec 29, 2010
I have a user login panel(called loginPanel1) standart from visual studio login control. 2 textbox 1 login button.
textBox1=UserName
textBox2=password
loginbutton1
I have a simple database table for user records:
Userid: int 4 key unique
username: varchar 50 not null
pass: varchar 50 not null
On user click to login button i query usertable from mssql usertable. If password is match i create a sessionid to try the user is verified temporarily for page. (my method can be wrong i dont know good the session and membership login session carry in asp.page)
When user pass is correct i open session with following code.
SqlDataAdapter adaptor1 = new SqlDataAdapter("select * from userTable where userName='" + Login1.UserName+"'", sqlconnection1);
...
(cleared long code)
filling ds with adaptor here
..
loginbutton1 click event:[code]....
There can be methodoligcal mistakes.
My question related to above is: 1. I have a sessionid (for example i set timeout 1 hour ) with above check. When user want to post a comment to a journalentry. How can i query that sessionid that earlier login page created, and how to deal with that sessionid to logically belongs to that user. I mean i have a sessionid per logged user that is obtained with checking from sql database to verify the user. But at next page (comments.aspx), when user wanted to post a comment to a journal for example. What should i do about that sessionid in comments.aspx's page "post comment" button event to check if that user is logged in. My question or my method can be wrong for user authentication about logins. I could not much find another method that easy level to log a user and carry the information about user logged in.
2. should i carry that sessionid with url (if i could manage to carry the sessionid to next comments.aspx page), how will i use it to ask like "that id is obtained by username snoopy" is username snoopy has logged in because there is a sessionid about that.I mean how to use sessionid when a user logged in with earlier page login.aspx that wanted to post a comment in comments.aspx. explain to useage of sessionid for login check i would appreciate. I checked some topics, some of them uses loginPanel of visual studio's automatically created database without any code behind. Others deal too complicated for user login info carry between pages.
View 4 Replies
Jul 9, 2015
What I want to do is Pass data with GET/POST method from WinForm to WebForm and retrieve it. I know how to send the Datads using Winform. How can I capture those data using webform so that after i get the submitted data from the winform I can perform my querys .
View 8 Replies
May 20, 2010
I have a member class that returned IQueryable from a data context
public static IQueryable<TB_Country> GetCountriesQ()
{
IQueryable<TB_Country> country;
Bn_Master_DataDataContext db = new Bn_Master_DataDataContext();
country = db.TB_Countries
.OrderBy(o => o.CountryName);
return country;
}
As you can see I don't delete the data context after usage. Because if I delete it, the code that call this method cannot use the IQueryable (perhaps because of deferred execution?). How to force immediate execution to this method? So I can dispose the data context..
View 2 Replies
Mar 31, 2011
I have a validation attribute that inherits from ValidationAttribute. However, the particular usage of this attribute applies to lists only (IEnumerable really). How can I specify the usage of this property to only be used with items that inherit from IEnumerabe?
View 1 Replies
Oct 27, 2010
How can I track the users who visit the site using Log file. I want to automate the same. We have deployed around 10 websites on the web server which include .net and Flex applications. I want to make the report of site usage. Would it be possible to do the same using log files?
View 7 Replies
Jan 23, 2015
How?
Protected Sub Menu1_MenuItemClick(sender As Object, e As MenuEventArgs) Handles Menu1.MenuItemClick
If e.Item.Text = "TheItem" Then
<here the http://www link >
End If
End Sub
View 3 Replies
Jun 12, 2015
How would I go about creating a simple PDF in a backend ASP.Net web method?
Doing this without a PDF printer on the server.
Is that even remotely possible?
How about if I know I want to print a HOUSING CERTIFICATE. Can I make one and then use that FILE as a template to creating new PDF's?
View 2 Replies
Jul 13, 2014
I am writing a C# MVC5 internet application and am having some trouble getting the 'ApplicationUser' object in a controller that I have created.
Code:
var userManager = new UserManager<ApplicationUser>(new UserStore<ApplicationUser>(new ApplicationDbContext()));
ApplicationUser user = userManager.FindByNameAsync(User.Identity.GetUserId()).Result;
When I try to run this code, when a user is logged in, I am getting a null object for the 'ApplicationUser' user.
View 1 Replies
Jan 11, 2012
I am new to web page development so I want to ensure I am going down the right path with this new project. Currently, I am populating a mainGridView on my webpage with infomation from my MS SQL database. Two features I would like to add to this page is to be able to add filtering and hot linking/cell clicking events.
I was also planning on keeping the mainGridView dynamic, so that as a user clicks on a cell I could update the mainGridView with new information. Say all of Sammy Davis' movies. I am trying to do all of this inside of code and leave the aspx alone for the most part.
My plan was to embed textboxes into a secondary GridView to handle the filtering. The user could click on a button to filter the query set and the mainGridView would update based on the filter. Since the mainGridView is dynamic I need to have the filters to be dynamic as well.
View 4 Replies
Jun 9, 2015
I have an ASPNET Application (C#) that runs on my company intranet. This application allows the users to attach PDF files against records.
I am trying to get that PDF uploaded in such a way that whenever the user initially uploads (the uploaded PDF will always be unlocked PDF), the user name would be stamped on the PDF file and the files is locked by my application so that the user cannot change the PDF again, even when having a PDF Writer. Whenever required the application should allow the user to unlock the PDF and then allow the user to edit the PDF.
View 4 Replies
Mar 14, 2014
This project is Web Forms Web Application.
I need to allow the username to be as short as three digits while also allowing an email address to be used as the username.
Examples and documentation I come across are in C# and using MVC. I do not know MVC and I also have zero experience when it comes to security.
View 5 Replies
Jan 13, 2015
i use below code
HTML Code:
(From r In tblRoles
Join m In module_master On m.module_id Equals r.module_id
Where Not r.role_name.ToUpper.Contains("OWNER") And Not r.role_name.ToUpper.Contains("CLIENT")
Order By m.module_name, r.role_name
Select r.module_id, m.module_name ,r.role_name
).Distinct
and output is
[code]....
but when i remove distinct then order by works properly..???
View 4 Replies
Nov 20, 2015
It's been requested of me to create an application to allow uploading a text file.
I've created the app using the FileUpload control and then was told that I need to check that there is specific data, in specific columns, to verify that the correct text file was uploaded.
i.e.; date in column 5, a number in column 6, an email address in column 15, etc...
- I used a StreamReader with the saved path of the file as the file to a string variable called sCurrentRow.
- Now, because my file does not have column headings, I had to use 'LastName_tx = Strip(Trim(Mid(sCurrentRow, 3, 25)))'
- I'm using VS 2013
View 1 Replies
Jul 16, 2014
I have two different database connection strings for a web form that I have to use when running on either my local pc or web hosting.best way to determine whether I'm running locally or on the server at runtime? I have dodgy logic at the moment which uses a local file to determine whether or not, but that means having to include and change the code on every page if I ever needed to.
View 5 Replies
Jan 31, 2014
When I run my web app locally on my workstation it comes up with the url address of: URL.. So - I've got a Samsung tablet that I have setup to use the wireless in my office - and I'm having it browse to URL... It can't connect. I've opened that port (49984) in my Windows Firewall for both in and outgoing traffic.
View 5 Replies
Dec 11, 2015
I have this razor code ...
Code:
<ul>
<li>
@("hello <i>world</i>")
</li>
<li>
hello <i>world</i>
</li>
</ul>
When I run it the italic attribute works on the second item, but not on the first. I'm guessing it doesn't work because it's being passed as a literal string and the html formatting is lost.
How can this be made to work?
The reason I ask is because in my project, the text for the list item is stored in a database and I want the ability to include formatting for the item at the database level.
Code:
@Html.Raw("hello <i>world</i>")
However, I am not getting the result I need, so here is a bit more code....
Code:
@helper addNodes(dcNode As DocumentContent)
@<li id=@dcNode.Id>
@dcNode.nodeTitle <--This results in "White Papers - <i>New</i>"
@Html.Raw(dcNode.nodeTitle) <--The truncates the string at the tag and results in "White Papers -"
@If dcNode.children.Count > 0 Then
@For Each childNode As DocumentContent In dcNode.children.Values
@<ul id=@dcNode.nodeTitle>@addNodes(childNode)</ul>
Next
End If
</li>
End Helper
This is a recursive helper that populates node for a jsTree and works fine, but the inline html is not working. Here is what the result looks like.
The text for each li is shown twice because I am showing it once without and once with HTML.RAW. Notice the "White Paper" item... the second text is truncate at the <i> tag.Why is this and how can I fix it?
View 1 Replies
Nov 22, 2014
I created a function as follow
vb Code:
Function FindCapital(ByVal CountryCode As Integer, ByVal CountryName As String) As StringEnd Function
And later on when i call the function I want the function to be able to show all the available CountryCode and CountryName values, so I can select the one I want. I'm not sure how I can do that or if it's possible.
ex :
Code:
FindCapital(US
Canada
Mexico
View 5 Replies
Apr 4, 2015
I found a site which indicates they can export a GridView as Word, Excel, PDF, and CSV. The PDF uses an external library (iTEXT), and I have not tested that. [URL] ....
The CSV worked for me as specified. But I am having trouble with the Word and Excel portions. The code for the Word sub is
Code:
Protected Sub btnExportToWord_Click(sender As Object, e As EventArgs) Handles btnExportToWord.Click
Dim s As String
Response.Clear()
Response.Buffer = True
Response.AddHeader("content-disposition", "attachment;filename=GridViewExport.doc")
[Code] ....
The marked line above triggers an error which states
Code:
Control 'MainContent_GridView1' of type 'GridView' must be placed inside a form tag with runat=server.
Note, that the code never gets the Response.Output.Write line, but the file is downloaded, and looks correct.
My real need is to download the excel file, but it has the some behaviour. It fails at a similar RenderControl statement, but does download the file, although Excel indicates it is in a non-standard format (but looks fine when opened. I can upload that code too, but the Word one above is simpler.
View 1 Replies
Dec 31, 2014
I have an issue with an aspx page I have created but I decided to break it down into its smallest component and then see what I was missing.
If I create a new webform called default.aspx and add the code posted below it doesn't load all of the css when accessing the page remotely in IE11
(I use IIS7)
it works fine in google as
http://localhost:8080/default.aspx
or
http://servername:8080/default.aspx
but in IE11 it only works as
http://localhost:8080/default.aspx
anything else causes the fault in the attached image.
Code:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>testing</title>
[Code] .....
View 1 Replies
Dec 9, 2015
According to this MSDN blog, it should be quite straightforward to add health monitoring to my website by adding this:
Code:
<healthMonitoring>
<rules>
<add name="Application Events"
eventName="Application Lifetime Events"
provider="EventLogProvider"
profile="Default"
minInterval="00:01:00" />
</rules>
</healthMonitoring>
to the <system.web> section of my web.config. However, when I do that I get this error: It is an error to use a section registered as allow Definition=' MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
what else I might need to tweak? Is the comment about it not being configured as an application likely? It's a struggle to get permission to check the IIS settings, and the website works correctly without this section in the config.
View 2 Replies
Jan 9, 2014
How can get my drop down menu sub items shown over the slider . The problem is shown in the image added
menu html
<ul id="menu">
<li class="vous"><a href="#">Acceuil</a></li>
<li class="nous"><a href="#">Votre Secteur</a></li>
<li class="actus"><a href="#" class="selected">Nos expertises</a></li>
[Code] ....
View 3 Replies
Apr 27, 2014
I keep getting this error
This is the code
Sub btnAdd_Click(sender As Object, e As EventArgs)
'converting datatypes to integer
Dim insertB As Integer
Dim insertA As Integer
Dim cat As Integer
cat = ddl.SelectedItem.Value
[Code] .....
View 3 Replies