|
i want to develop a gym management system using asp.net. what would be the best approach and where can i find pieces of codes. help
|
|
|
|
|
vijay1457 wrote: what would be the best approach Creating the design of the system: what sort of data do you need to store, how will you access that data, how will information be presented to the user, etc. The biggest mistake you can make with any project is to start coding before you have a well documented set of requirements. Once you do have all those pieces you can start looking at which package or framework is the best one for you.
|
|
|
|
|
|
Is there a way to crawl through folders and upload the images to a particular folder using windows forms and web application
|
|
|
|
|
Yes, there are several ways, but it is hard to advise to you without proper details...
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
First You need FileUpload control and a button with Upload Text
Then Create A folder in your project with name Data or images
and try This code behind in The click-event of The button
if (fileupload1.hasfile)
{
string filename = FileUpload1.FileName;
fileupload1.postedfile.saveas(Server.MapPath("~/Data/" + filename));
// Now The image is in your project if you need to display it you can use the following code
FileInfo fileinfo = new FileInfo(filename);
img.ImageUrl = "~/Data/" + fileinfo.Name;
}
|
|
|
|
|
Hello I have website in asp.net
seethelawyer.com
there is a dropdownlist country and cities.When i am useing google chorme dropdown selectedindexchngedchanged working but when i am using internat explorer or opera mini its not working.why?
|
|
|
|
|
I'm puzzled on why my database table is not being created.
Is it because you have to start with no database first, for the model code to run?
This is my first time adding a form view, model and controller, I guess I missed something, or don't fully understand how MVC works.
This is the model that I wrote.
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Globalization;
using System.Web.Security;
using redCopper.App_Code;
namespace redCopper.Models
{
public class ContactContext : DbContext
{
public ContactContext()
: base("DefaultConnection")
{
Database.SetInitializer<ContactContext>(new CreateDatabaseIfNotExists<ContactContext>());
}
public DbSet<UserProfile> ContactProfiles { get; set; }
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
}
}
[Table("CRM_MESSAGES")]
public class ContactProfile
{
[Key]
[DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
public int ID { get; set; }
public string Name { get; set; }
public string Subject { get; set; }
public string CompanyName { get; set; }
public string EmailAddress { get; set; }
public string Query { get; set; }
public DateTime Date { get; set; }
public bool MailingList { get; set; }
}
public class ContactModel
{
[Required]
[Display(Name = "Name")]
public string Name { get; set; }
[Display(Name = "Company Name")]
public string CompanyName { get; set; }
[Required]
[Display(Name = "Email Address")]
[EmailAddress(ErrorMessage = "Invalid Email Address")]
public string EmailAddress { get; set; }
[Required]
[Display(Name = "Message or Comment")]
public string Query { get; set; }
[Display(Name = "Signup for our mailing list")]
public bool MailingList { get; set; }
}
public class ContactInitializer : CreateDatabaseIfNotExists<ContactContext>
{
protected override void Seed(ContactContext context)
{
base.Seed(context);
}
}
}
|
|
|
|
|
|
I figured out that since I'm not using Entity Framework, my database tables won't be created automatically.
So I wrote a sort of an extender class that creates the tables, and called it in Global, so when the app starts, it will run the code.
I would have to delete the entire database and test it again to really confirm this.
The database does get created automatically, and the tables do if I add a new table.
|
|
|
|
|
I want a page where MS Access data is displayed on some condition and on button click I want to display an option which will allow the user to save the displayed data in excel format.
TIA
modified 23-Feb-15 3:50am.
|
|
|
|
|
|
Quote: Hi ,
Can i get the code base or some url for develop the extra level of security using a SMS service into my application and need to develop in Visual Studio 2005.(One Time Password two-factor authentication)
Example - After login into the application via general login procedure after that we need to add the extra level of security using a SMS service for user and we will send the password to user on user mobile.
It is very very urgent.
Regards,
Bharat
|
|
|
|
|
You'll need to write your own code or find some samples online and adjust to fit your needs.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Thanks RyanDev,
yes, we need to write the own code but i am looking some sample code only which i can adjust for my needs. if you find some sample code link or anything else. please help me here.
thanks in advance.
Regards,
Bharat
|
|
|
|
|
Just google C# sms. There are tons of examples.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Unable to use any Actions from Pages in Navigation Bar if Arabic language is set.
Steps to reproduce:
1. Log in as Host to 7.3.4 latest build
2. Localize site with Arabic (Saudi Arabia), en-Us languages
3. Click the Arabic flag to switch to ar-SA (Saudi Arabia) language
4. Hover over Edit Pages in the Navigation Bar
5. Click "Add a NEW PAGE"
The Create Page pop up starts to render
It disappears
In the UI I get an error message:
A critical error has occurred. Please check the Event Viewer for further details.
Error:
AssemblyVersion:7.3.4
PortalID:0
PortalName:project india
UserID:1
UserName:admin
ActiveTabID:74
ActiveTabName:Log Viewer
RawURL:/ar-om/Admin/Log-Viewer/ctl/Tab/activeTab/settingTab?popUp=true
AbsoluteURL:/Default.aspx
AbsoluteURLReferrer:http://umstest.com/ar-om/Admin/Log-Viewer
UserAgent:Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID:3ed97128-f4cc-49b7-9a9b-5b4ba5be3abb
InnerException:Valid values are between 1318 and 1500, inclusive. Parameter name: year
FileName:
FileLineNumber:0
FileColumnNumber:0
Method:System.Globalization.UmAlQuraCalendar.CheckYearRange
RajeeshMenoth
|
|
|
|
|
RajeeshMenoth wrote: InnerException:Valid values are between 1318 and 1500, inclusive. Parameter name: year Seems fairly clear.
|
|
|
|
|
How to solve this error ?
|
|
|
|
|
|
Where we can add this year number ?
|
|
|
|
|
No idea, since you have not given us any information about your code or where the error is occurring.
|
|
|
|
|
I got the error this way :
Unable to use any Actions from Pages in Navigation Bar if Arabic language is set.
Steps to reproduce:
1. Log in as Host to 7.3.4 latest build
2. Localize site with Arabic (Saudi Arabia), en-Us languages
3. Click the Arabic flag to switch to ar-SA (Saudi Arabia) language
4. Hover over Edit Pages in the Navigation Bar
5. Click "Add a NEW PAGE"
The Create Page pop up starts to render
It disappears
In the UI I get an error message:
A critical error has occurred.
|
|
|
|
|
|
Hi experts,
I am not sure whether to post this on JavaScript forum or here. Please forgive me if I posted at the wrong forum.
I have a javascript that calculates the different between start time and end time.
The value of the difference is stored in a variable called hourDiff.
var hourDiff = endDate - startDate;
Below, I am passing some form variables from one page to another page called Reserve.aspx using asp.net.
Code is below:
<asp:HyperLink ID="siteId" style="color:#111" runat="server" navigateurl='<%# String.Format("Reserve.aspx?id={0}&groupsize={1}&facilityFees={2}&extrahour={3}&depoitAmt={4}&cancelAmt={5}&keydeptAmt={6}", Eval("siteId"), Eval("capacity"),Eval("RentalFeeAmount"),Eval("ExtraHourAmount"),Eval("DepositAmount"),Eval("CancellationAmount"),Eval("KeyDepositAmount")) %>' Text='Select' />
Is it possible to pass this javascript variable as part of the hyperlink?
If no, is there another way to do this?
Basically, assuming that acceptable hour difference is 2, anything above 2 incurs additional fees.
So, I wanted to pass that variable to Reserve.aspx page so I can substract 2 from whatever the total hourDiff is and if the difference is greater than 0 than add x amount of additional charges to the total hours greater than 2.
Your help is greatly appreciated.
|
|
|
|