|
you have to use DateTime Class.
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
Thanks for ur reply. Actually my query is the current time should be shown on the page whenever opened with seconds running. Its used for login purpose.
|
|
|
|
|
yes, you can do it using Datetime Class. if you want to Seccond running,
Just use AJAX Timer Control.
Thanks
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
Abhijit Jana wrote: DateTime Class.
DateTime is a structure, not a class.
|
|
|
|
|
yes, i made the writing mistake. sorry
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
Im trying to rewrite the Url using C# Asp.Net 2.0..if i run the application in default i will get the Address bar Url as below..
http://localhost:1549/Url/Default.aspx
But i need as like below.this mean that who logged in that username is to be displayed..and it should be appear in the address bar like this..
http://localhost:1549/Url/Kanna
any suggestion??
Regards
Kanna
|
|
|
|
|
you can search for HttpModules
trish
|
|
|
|
|
Thanx..If u dont mind can u post me a sample code.?
|
|
|
|
|
Dotnetkanna wrote: http://localhost:1549/Url/Kanna
If you are on IIS 5.1 or 6.0, this kind of extension-less rewriting is not possible. This is possible if you have a directory named Kanna available with an index file. But extension-less rewriting can be done in IIS7.0.
To implement rewriting, take a look at URL Rewriter.NET which is an open source project.
|
|
|
|
|
i have a treeview control in which the data is populated from the
databse in 3 levels.
the structure is like this.
Lable1
:
:
sublabel1
:
:
child1
child2
Lable2
:
:
sublabel2
:
:
child1
child2
Lable3
:
:
sublabel3
:
:
child1
child2 .
I am able 2 populte data from the databse but my problem is that
i want to open only one node at a time.it meanms if initally "sublabel1"(of label1) node is opend
and after dat i have clicke don label3 node then the previous node must be close before it open
the new node means 1st it close the "sublabel1"(of label1) then open label3
and secondly the node is being expaned only when i clicked on the "+"sign which is connected to the
left side of each node but when i clicked on the lable1 then the page is postback but return to the same page again.
but i need to open the subnode(if exsist) when i clicked on the any node.
here i am developing my application with visual studio -2005. n my applcation is developed with asp.net along with c#.net
can yu tell me what i wil do or what wil b the code for this..
|
|
|
|
|
Try with Div Tag
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
i am not geeting u.what will i do with u "Div" tag. can just briefly expalin or give me d code.
|
|
|
|
|
i m currently using ASP.NET with C#
(.net 2005, 2.0 framework)
i m taking the TEXT,VALUE from database (SQL server) and binding to an dropdownlist box.
some values are same and the text differ.
for example the text and value i m binding to an dropdownlist is mentioned below.
First - 1
Second - 2
Third - 3
front - 1
Rear - 1
when i bind the above values and process, i cant pick up the values properly. once the "front" is selected, and i attempt to change for "Rear" or "First", its not reflecting... Why this problem?.
thanks in advance...
|
|
|
|
|
What do you mean by:
Karan_TN wrote: once the "front" is selected, and i attempt to change for "Rear" or "First"
How are you changing this?
|
|
|
|
|
Thanks for replying....
public void fxn()
{
MyLib.conn.Open();
MyLib.sqlda = new SqlDataAdapter("select TEXT,VALUE from tbl_test where criteria=hello", conn);
sqlda.Fill(MyLib.ds);
cbovalue1.DataValueField = "VALUE";
cbovalue1.DataTextField = "TEXT";
cbovalue1.DataSource = MyLib.ds;
cbovalue1.DataBind();
cbovalue1.Items.Insert(0, new ListItem("", ""));
ds.Reset();
ds.Clear();
ds.Dispose();
sqlda.Dispose();
conn.Close();
}
by using the above coding i m binding the VALUE,TEXT to cbovalue1 dropdownlist box. when i m changing the value its not reflecting (as mentioned in my previous scrap).
help me...
|
|
|
|
|
Do you mean you have changed a value in the database and it is not reflecting in the dropdown list?
|
|
|
|
|
hai .netman,
not changing the value in database.
when i change the text in dropdownlist, its not fetching the value of the particular "selecteditem"
for example if the drop down list consist of "A,B,C,D,E" as {dropdowntext} and the values are A=1;B=1;C=4;D=1;E=2; so,.......
when i select the "A" no problem.
sequencly i select "B", no problem.
again i select "D", its not selecting.instead "A" remains there.
|
|
|
|
|
Here some fields have same values like First,front & rear have value 1. Hence if you select any text which has same value it points to first text which has value 1.
solution : if possible change you sql quesry as
select TEXT,concat(VALUE,TEXT)as VALUE from tbl_test where criteria=hello"
now you will get the required text selected. If you need a value of selected,you need to pick only VALUE part from (VALUE,TEXT) combination
modified on Monday, April 28, 2008 7:13 AM
|
|
|
|
|
hai trish.......
there is no function CONCAT in MS SQL server
|
|
|
|
|
Yes there is no CONCAT fucntion in Sql Server .it's in ORACLE
For Sql Server you can do the same thing with + sign
e.g Select First_Col + Second_col from table
|
|
|
|
|
I created profile-node in "web.config",
but in code, Profile can not be identified?
|
|
|
|
|
in my project, in login form ,i want to use role as admin and user. i made one table in sqlserver2000 and specify the role
then according to role how i login. plese specify the code
Signature preview salil_k_singh 11:06 15 Jul '07
|
|
|
|
|
I am not sure if there's any role based stuff build in, but you can store what someones role is. in the session, or call the data layer to tell you this based on the login. The idea is, your login user has one or more roles, then the roles define what can be done. You use roles so you can specify what a group of people can do, not just one person.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
You can set the roles as admin and user by using 1 and 0. Apply the admin user the number 0 and normal user 1. Then you can just check which number is logging on to determine what facilities to let that person use.
|
|
|
|
|
i m developing a project in asp.net with c# (.net 2005, 2.0 framework)
when i create a dropdownlist and fill the value and process the function
"combobox1_SelectedIndexChanged(object sender, System.EventArgs e)"
is calling twice automatically. whatever the content i placed inside this function, its calling twice.....
y?
help me - KARAN
|
|
|
|