I'm working with asp.net c# web application.
In my app. I used session variables,
I don't want to expire sesstion until the user clicks the logout button.but my application after some time period sesstion expired. how can I avoid this? I increased the sesstion timeout time of the web config file. but it did not work.
User Profile
Collapse
-
I change my code like this, now it works fine but I have small problem.
if my dropdowns SelectedIndex== 0 then I wants to insert null value. I used for DBNull.Value, but it save as "01/01/1900" but I want to insert "<Null>" How can I do this?
string Mydate;
if(cboDateofBir th_Day.Selected Index!=0 && cboDateofBirth_ Month.SelectedI ndex!=0 && cboDateofBirth_ Year.SelectedIn dex!=0)... -
insert datetime into the database
I want to insert datetime into the database.I want to insert date as a dd/MMMM/yyyy format
SqlDateTime x;
if((TextBox1.Te xt).Length==0)
{
x=SqlDateTime.N ull;
}
else
{
x=DateTime.Pars e(TextBox1.Text );
}
command=sqlConn ection.CreateCo mmand();
command.Command Text="insert into Table2 values('"+x+"') ";
sqlConnection.O pen();
command.Execute NonQuery();... -
Send email using sql stored procedure
I want to send email using sql stored procedure.my code is work fine in my local sqlserver account. when I use my online sql server it display this error.
EXECUTE permission denied on object 'sp_OACreate', database 'master', owner 'dbo'.
EXECUTE permission denied on object 'sp_OASetProper ty', database 'master', owner 'dbo'.
EXECUTE permission denied on object 'sp_OAMethod', database 'master', owner 'dbo'.... -
select current users country
I have asp.net C# web app. it has country dropdownlist.wh en the page load I want to select current users country. how can I do this? I want to use client side code for this, can I do this using javascript? pl help me.
No activity results to display
Show More
Leave a comment: