|
hi all
This is my first question in the forum. i want to ask how to work with excel file independant of version problem in asp.net 2.0 like while reading excel file.?
Nitin
|
|
|
|
|
You need to install Excel on the web server on which you are developing asp.net application, so just install the latest version - 2007, and its backward compitable. so it can handle all the files of ,whatever version.
|
|
|
|
|
Hi,
Can I please hear your views in using the MVP and MVC pattern? I want to use the web client software factory or ASP.NET MVC, but not sure which way to go. The website is a rather huge website. I was thinking to go woth the WCSF for now, and wait till ASP.NET MVC is in a more stable condition and then convert?
I have ready many articled on MVP and MVC, but still there is a confusion as to which one to use. WCSF makes use of DLLs which in my mind is faster, in the ASP.NET samples that I have see the code is just placed in folders, so because they are not already DLLs, wont it take longer to run?
Regards
Brendan
|
|
|
|
|
I have made many (over 50) asp.net applications both large and small. I have never seen the value in MVC or MVP.
I do separate the presentation and data layer and I implement themes. I use a master page and base page whenever possible and put all styling in the css file(s) in a theme. This makes it easy to change the presentation.
Adhering to a specific framework just seems to make more work without providing much benefit. The frameworks are good for developers who are less experienced with ASP.Net but if you know what you are doing than there is no need to constrict your development. Sometimes you just want to code a bit differently.
As for dlls, if you do not compile your website and just place code files IIS will compile the page the first time it is requested. The only advantage to compiling a web site is that the first user doesn't have to wait for it to compile.
I didn't get any requirements for the signature
|
|
|
|
|
|
|
I would suggest by reading one of the articles here http//www.asp.net.
|
|
|
|
|
Hi all,
I have deployed one application on server reside in US,now problem is that when any person using this site from india and he save some data in current date but my application is deployed on US Server so it takes system date of that server which is about one day b4 in some cases and when user search that data in this date he could not get it,is there any way to remove this complexity
N!dh!
|
|
|
|
|
Hi Nidhi,
One probable solution for this is to change the default value of date column from
GetDate()to GetUTCDate() in table defination. This way it will store the date values according to UTC instead of local time zone specific date.
dnpro
"Very bad programmer"
|
|
|
|
|
Hi,
I have deployed my all code and it is difficult to change this thing on whole application.Perhaps there is any way using globalization element in web.config.
N!dh!
|
|
|
|
|
I guess you can change it on database table's column definition. There is no code change require for this.
dnpro
"Very bad programmer"
|
|
|
|
|
Is there any way to convert timezone from database side by changing only definition,not by makeing any changes on procedure
N!dh!
|
|
|
|
|
Hi,
I am working on a dynamic generation of form. i have one dropdown menu and one change of drop down menu it generates set of radio button options.. one the button click i want to retrive the id's of radiobutton. but everytime it gives me return value....
when i generate radio button on form dynamically on page load then it is not a problem findcontrol works properly. i think problem is with change of dropdownlist because i am generating my radio buttons on selection change.... i am missing smthg. any kind of help will be highly appreciated ....
|
|
|
|
|
could you show your code? Thah might tell more.
|
|
|
|
|
protected void btnsubmit_OnClick(object sender, EventArgs e)
{
string sqlStr1 = "SELECT * FROM valuess";
dAdapter2 = new OleDbDataAdapter(sqlStr1, connectionString);
dset2 = new DataSet();
dAdapter2.Fill(dset2, "value_name");
dAdapter2.Dispose();
dt2 = new DataTable();
dt2 = dset2.Tables["value_name"];
string radio1;
radio1 = "radioButton_" + dt2.Rows[0]["value_name"].ToString();
RadioButton rb_1 = new RadioButton();
rb_1 = (RadioButton)Page.FindControl(radio1.ToString());
}
I am creating these radio buttons in selection change event of dropdownlist......
|
|
|
|
|
You recreate the radiobuttons in the onclick event of the button.
after that event has ended your radiobuttons do not exist anymore.
You should state in the beginning of the class (not the event)
RadioButton rb_1;
Then all methods and events refer to the same radiobuttons.
|
|
|
|
|
thnaks..i have resolve the issue i called selectedindex method in my button event..i think i have regenerate all the controls everytime i use button event ..it is working properly except that the even checked property is true it is taking it as false.....
I will also look at your solution now thanks
|
|
|
|
|
hi,
I have added a menu control in my web page.It is giving error like 'skip navigation link' and 'expand'.Also it changed my layout.How can I solve this?
Regards,
Bill
|
|
|
|
|
Hi all,
I am using built in login control,using this data save in aspnet_Users table in database.In this aspnet_Users table one field is there i.e. LastActivityDate.
Now problem is that when i login for any user at 4:30 pm ,lastactivitydate save current date with time of morning about 11.
do any one know why its happen
N!dh!
|
|
|
|
|
|
i m not getting wat do u want to say,if its UTC time then from where we can make these updation.
N!dh!
|
|
|
|
|
The updates are according to UTC timing.
If you will compare :
It is saying 11:00 in place of 4:30. Means there is exact difference of
5:30 Hrs. This is still accurate if you are doing updates according to IST (UTC + 5:30). UTC was formerly known as Greenwich mean time (GMT).
I Hope I answered your question.
Thanks
Ashu
dnpro
"Very bad programmer"
|
|
|
|
|
Hi Ashu
I got this thing,but i m not asking about why this difference,I m asking about how this difference is there.
My database is on same server where my application code reside,if that server is using GMT+5:30 then why its save in database in UTC.its save that date automatically so is there any way to update this date format for database.
N!dh!
|
|
|
|
|
NidhiKanu wrote: its save that date automatically
So you need to look at what the default for the column is. Assuming SQL Server, getdate() will give you the local date and time.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Have you return any special code for handling the Login operation? I believe the control itself doing that. It uses its one provider which stores the data in UTC timing. You just use CultureInfo to convert to the local timing.
|
|
|
|