|
textbox1.focus();
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
Thanks, I need to maintain between postback.
|
|
|
|
|
can you confirm it in details ?
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
May what you are asking is how to maintain the scroll position of the long page. During the postback goes to the top of the page. If this is the case then you can make smartnavigation to true.
Apurva Kaushal
|
|
|
|
|
but it is .ascx file how do i achieve this
|
|
|
|
|
Try to put the same in the container page.
Apurva Kaushal
|
|
|
|
|
try to use
Page.SmartNavigation = true;
in page load event.
and then use
textbox1.setfocus();
in your function.
|
|
|
|
|
I have a application on asp.in it there is a button.on click event of that button aspx page is open.
asp uses some user id and password.
how i will retain that user id and password in the aspx page.
when page transfer from asp to aspx it lost all the session.
and according to user id i have ti fill some data to the aspx page.
can any one tell me how i retain session when i transfer asp page to aspx page.
thanks
|
|
|
|
|
There can be two ways one way is to send this user ID as quesrystring to the aspx page (assuming that this is not at all a vital data which are not supposed to be known to the users). And in the aspx page you can retrieve the ID and get the related data.
Second way can be to share the session between both the application. Here[^] is an article which can give an idea on how to proceed for this.
Apurva Kaushal
|
|
|
|
|
How to use datetime control in asp.net2.0 with VB
|
|
|
|
|
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...
|
|
|
|