|
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.
|
|
|
|
|
I have not written any code for saving this data in database,one more confusion is there that how to use CultureInfo for changing TimeZone
N!dh!
|
|
|
|
|
HI
I want to invoke a nonstatic method
private void method()
{
// my code to do something
}
in server side from my client side javascript , I am able to do a static method but not a non-static method. Can anybody help me
Thanks in Advance..
|
|
|
|
|
Hi,
I have created tree view in asp.net 2005 with parent and child nodes, but i need a this format like parent, child, sub child, sub1 child and etc.
can any one please help me, thanks in advance.
My sample tree view format as follows,
+sample1
-sample2
-sample2
-sample2
+sample3
-sample4
-sample4
but my expected format with tree view is,
+sample1
-sample2
+sample2
-sample2.1
-sample2.2
-sample2
+sample3
+sample4
-sample4.1
-sample4.2
-sample4
|
|
|
|
|
I'm trying to get data bound to a dropdownlist, however, when the page is displayed System.Data.DataRowView is being displayed within the drop downlist rather than the result of the SQL query.
Any ideas?
<td>
<asp:DropDownList ID="lstPriority" runat="server" Enabled="False" DataSourceID="SqlDataSource2">
<asp:ListItem>Low</asp:ListItem>
<asp:ListItem>Medium</asp:ListItem>
<asp:ListItem>High</asp:ListItem>
</asp:DropDownList><asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:connString %>"
SelectCommand="SELECT [priority] FROM [teamwiki].[dbo].[task_priority_L]"></asp:SqlDataSource>
</td>
Jon
|
|
|
|
|
I found my mistake
I updated the DataValueField for the property with the name of the SQL field.
Jon
|
|
|
|
|
If I am developing an application that must accomodate multiple security levels though secure
login and my ASP.NET web application is spanned across three web-servers (using round-robin load balancing).
What would be the best approach to maintain login-in state for the users?
please answer this question this question asks to me in interview.
|
|
|
|
|
Jas 007 wrote: ogin and my ASP.NET web application is spanned across three web-servers (using round-robin load balancing).
What would be the best approach to maintain login-in state for the users?
I have written a complete article on Maintaining session in Web Farm , Load balancer scenario. Please Have a look
Exploring Session in ASP.Net[^]
|
|
|
|
|
Hello
I want to download one folder containing files from remote server to local computer. i am using vb.net. how should i do it? i have two possible ideas
1. Make zip file, down load to local machine and unzip
2. download files one by one using binary stream.
which one is perfect. if there is any other way?
Please Help
thanks
|
|
|
|
|
2nd idea will work perfectly, Since for implementing 1st one you need to create zip file on server. That itself is quite tedious. If you are having long haul of time then think about 1st one, other wise implement 2nd approach with the help of starter tutorial from : Downloading Files with the WebRequest and WebResponse Classes[^]
Thanks
Ashu
dnpro
"Very bad programmer"
|
|
|
|
|
i have to impliment this on windows (.net)
and there is one more problem, files may be already existing there, with same names as those that are being downloaded.
|
|
|
|
|
Hi Team,
Functional requirement is to upload a file from remote machine(Client Machine) Without using fileupload control.
In this scenario i have done the functional requirement ,like the file can be uploaded from client machine but it must needed to network share to the folder to get the file from client machine.
My requirement is that, Could it be possible to get the file from client machine / and upload on remote server.
Could Anybody help me out from the above scenario.
Tarun Singh
Zenta
|
|
|
|