I am creating the user ,using asp.net + C#.there is the form (UI) who collects the information and send data to Business layer. now, while collecting the information from UI I want to also save the image of user, at file system in application domain.There is function in the business layer as SaveImage, which returns the path where it is saving. Scenario:1) Save image first and then save other information in DB.
I want to create a XML file on my project's App_Data folder.This XML use as the source file of my AspxMenu.I know how to bind XML data to AspxMenu but i dont know how to create XML file .I want to save this table information as a XML file on my App_Data folder.how to save table information as a XML file.
I'm using the ASP.NET membership framework in my ASP.NET application. I'd like to save a few extra pieces of information in the cookie so that when I need it, I don't have to go back to the database. I want to save user's email address, full name and time zone.How do I save this information in the cookie?
I´m building a website and i need to store somehow some informations that i will use in the whole site depending of the user type logged in.3) Store those 2 or 3 fields that i will get in Database in a persistent way to use it in the whole site.My question is: Whats the best practices to do this?
one 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
I m very new in VS (ASP.NET) and using C# in code behind file. I want to define global variables to use in whole application. EXAMPLE
I want to save some information in LOGIN Page and display it in other pages line UserName or AccessRights etc. Is there anyway to do this without using Cookies and Seassion ?
I have an aspx form that is meant to add a new prescription for a doctor system. I've created the database and dataset needed, but the problem is that the doctorID and patientID has to be able to select from the database, not entered in as a plain text. The form look something like this (I did this in DetailsView in MS Visual Studio 2010):
as you can see, only the prescription details needed to be entered in and the doctorID and patientID needed to be selected from the database (in a dropdown list maybe) and it shouldnt allow any text to be entered in. I did the above tables using a DetailsView in Microsoft Visual Studio 2010. However I can't seem to make the doctor and patient ID field be dropdown box which allow me to choose the current doctor and patient in the Doctor and Patient table in the databse. Can anyone tell me how to do it with Design View in Visual Studio?
i have an .aspx website, within the site am planing on having a staff directory, i have setup the search, the results and also a more feature to display all there information.
When you click the More button it is supose to display the text with an image of the person. the images are located on a server and are named via staff ref. below is the code i am trying to use to display but am having no luck so far
I'm using CreateUserWizard for creating an user but asp.net automatically add user to ASP.NET database I want to add user in my database and in my customer table. I have tried these code as peer below but nothing happened
I have a online game (written in ASP) which i have finally decided to convert to ASP.NET. However i cannot seem to link the login ID's of users to their specific details in the database. I.E when Joe Bloggs logs in, he will be shown the team information for just his club, not every club. in ASP I use code similar to this below
[Code]....
im not convinced that is the right syntax to be using, but when i execute the code in Query Builder it is showing me the correct data (that i expect to see). So im wondering if there is something else im missing? Is there something extra that i need to be adding in Web.Config file or elsewhere?
I have a gridview which sources information dynamically from database.
Here when i go for the default "AllowSorting" flag equal to true, i am able to achieve sorting of all displayed columns except the textBox control column whose values refreshes to zero.
In string variable, path contain this file ~//ImageUploadfolder//1.jpg .how to save this image to database as image datatype and retrieve from database to image control.
i put my asp.net project in one of our PC in my company in LAN.I got access through the URL http://localhost/myprojectname from my PC.But am unable to save data from aspx page of my PC to hosted PC.
I have a website project in asp.net (c#). I created some text fields and dropdownlists. the user fills the text fields etc.., the dropdownlists gets data from database (.mdf) and when the user clicks on the <submit> button, I want save all the values from textfields, etc.. in my database table. How can I do this exacly ? I get the values for ddl from database with this method, [URL]
What is the standard practice for updating your listbox or combobox selections to a database lookup table?
Suppose you have a list of groups that an employee can be a member of. The user selects one or more groups and hits the save button. What is the best practice for updating the database?
Should I first DELETE all groups assigned to that user, in case they exist, and then INSERT the selected ones?
Or should I go through each list item and if it's not selected, DELETE it. If it is selected, check to see if it exists first, if so do nothing, if it doesn't INSERT it?
Or is there a better way to reconcile selections with the database table?
i use fileupload control in my page that save image in my database with binary data is there any way that when i upload file instead of saving binary data it save that imagename in image column?