I am developing a asp.net application and i am using SQL Server 2008. I took a IDENTITY column as Record_ID for detail table where i will have trillions of records per year. So just want to ask whats the largest number record id (identity) column can hold and in ASP.NET which data type i should use to handle record id as i am using this id as a reference to update the table data. I don't want to end up being trapped some day.
My project is to create a UI where school districts can select dates for a school calendar.
On my calendar page I have a Calendar control, a text box for date and a select box for events. In the code behind I modified the DayRender event handler to add color to the calendar depending upon the event for that date: Holidays are green, School opens is pink, Teacher Inservice days are Aqua, etc. This all works fine. However, when I tried adding a letter to the date to correspond to the event; "O" for school open, "I" for Inservice, etc. I get multiple entries "OO", "II", etc.
it's possible to protect aspx page from modification in a production environment?
I explain: We are developping a web application that is installed in our customers environments so once it's installed we don't manage it.
This application manages critical and encrypted data that the IT (of our customer) should not have access to, for instance their customer's password. So I would like to know if it's possible to prevent any modification of the aspx page to insert script to retrieve session data or catch keyboard entries once the web application is installed.
I have started to get confused with the setting and security issues of asp.net. Hope someone could answer me. Problem 1: I am curious why we have to encrypt connection string, appsetting and more in the web.config file even though file listing is set to "not allowed" on server setting. Does it mean some strangers can still view and steal such file from server? Problem 2: I know that session id is sort of protected but could hacker be able to change the information inside ? Let say hacker browser my webpage and some data are stored in the session cookies, could they change the information inside the session cookies?
I am trying to save the xml file after modification in a diffrent location. the code is as belowServices.Save(Server.MapPath("~/ResourceFiles/data.xml"))I have given full control permission to the folder. Now sometimes the file saves properly and some times it does not save. OS is Windows 2003 server 64 bit.
I am using file upload option in asp.net web application,how to display filename, date and time of file creation,modification date of file that we browse.
I have a loginStatus control, if user click "Login", it will go to the login page, and usually followed by "ReturnUrl": for example:
Before I hit the "Login", the page is:
[URL]
After I click the "Login", the URL is:
[URL]
As you can see the parameter value 1008 is gone. Have searched for a while, one article mentioned:
"ASP.NET's login controls use a ReturnUrl, but don't keep the parameters in this URL".
How can i keep the id number (1008) in the ReturnURL? or have other way to get around this? can I write my own returnURL? say once user clicks the "Login", I create my own return url, myReturnURL=ReturnUrl=/Books/CodeInBooks.aspx?id=1008
I have a confirmation button that appears when an end user highlights a Customer Name and clicks the link to delete. The confirmation prompts: "Are you sure you want to delete this record?"
Here's the code from the .aspx:
<asp:LinkButton ID="LnkBtn_Delete" runat="server" Width="100%" CommandArgument='<%# Eval("CustID") %>' CommandName="Delete" Text="Delete" OnClientClick="return confirm('Are you sure you want to delete this record') "></asp:LinkButton>
What I'm attempting to do is replace the portion of the confirmation question "this record" with the actual Customer Name.
The iPhone sends an HTTP GET request to my web application to recieve an update for an internet calendar. The iPhone does not conform to the RFC 822 Date Format for this request. It sends the If-Modified-Since as follows:
RFC 822 format - Sun, 06 Nov 1994 08:49:37 GMT iPhone Format - Sun, 6 Nov 1994 08:49:37 GMT
I dont know much about handlers or modules. Is it possible to write a handler or module that could intercept this request and reformat the If-Modified-Since date format to the standard. Currently when IIS recieves this request it immediately sends back a 400 Error because of this invalid format.
I am using membership management and role management. As login controls transfer data in plain text, I am encrypting userid/password in javascript and decrypting in serverside code.
Client side javascript:
[Code]....
If i am commenting these last two lines in javascript code.
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
I've searched but does Visual Studio 2008 have a setting for C# where it will autoformat/beautify my code as I write it? There is a setting for VB.NET called "prettify". I've also searched the archives already and found a macro to execute this on save and I know I can drag and drop it onto the toolbar but I want it to work without my doing ANYTHING for both ASPX and CS files.
Is this possible via built-in setting, modification, or available from an add on?
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.
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.
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...
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.
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..???
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
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.