|
Hi all,
I am using linkbutton in datagrid and ONCOMMAND event I collect row ID. This Id I am saving in Session("ID").I displayed this session("ID") by messagebox on same page.Everything goes fine,but when I redirect to another page and try to use session("ID") it gives nothing.
Sub Navigation(ByVal sender As Object, ByVal e As CommandEventArgs)
Session("ID") = e.CommandArgument
MsgBox(Session("ID"))
Response.Redirect("ResumeSearchDetails.aspx")
End Sub
///ResumeSearchDetails.aspx
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
MsgBox(Session("ID"))
end if
end sub
I hope you understand my problem.
Thanks.
Teach Life To Laugh.......
|
|
|
|
|
Display the Session.SessionID in both pages, to determine if you lose the entire session, or just the single value.
---
b { font-weight: normal; }
|
|
|
|
|
Hi Guffa,
In both pages MsgBox(Session.SessionID) shows some value.
-- modified at 9:04 Saturday 17th June, 2006
|
|
|
|
|
Nagraj Naik wrote: In both pages MsgBox(Session.SessionID) shows some value.
Some value or same value?
---
b { font-weight: normal; }
|
|
|
|
|
Not same value that are different alphanumeric values
|
|
|
|
|
Then you are loosing the session and getting a new session for the next page.
The browser has to accept sessions cookies for the server to be able to identify the user.
---
b { font-weight: normal; }
|
|
|
|
|
how to convert a text field in Access database to a hyperlink in the browser because when i read the hyperlink fields from the Acccess database and display to the browser its output is like a comment #http:...# i want the link to displayed as a link itself. Is there a way that a text field in access can be read to the browser like a link???...pleeeeease hellp
|
|
|
|
|
A hyperlink fiels in the database has nothing to do with a hyperlink on a web page. It's only a hyperlink in the form that is used by Office applications. There is nothing built in to create a web link from it.
Either read the value from the hyperlink field and split it up into the name and url, or store the informantion as regular text fields. Either way you use the information to put in a regular link on the page.
---
b { font-weight: normal; }
|
|
|
|
|
Hi
I have a file on the server ,i want get and sets permission's file on the server , help me for set and get it.
Thanks
|
|
|
|
|
The KB[^] presents a way to do that, more can be found from here[^]
|
|
|
|
|
I am constructing my gridview dynamically. Special characters like ( ş,ç,ğ ) can bee seen on the grid perfectly but when i try to take them from the grid like (grid.SelectedRow.Cells[0].Text) special characters become some meaningles character set like (#&199).
Could anyone help me it is very urgent.
-- modified at 3:25 Saturday 17th June, 2006
|
|
|
|
|
You may need to use the Encoding to read the value, and you might also want to check out the value of the Encoding used at the client side so that you can see the special characters viewed correctly.
|
|
|
|
|
Hi..
This event handler doesnt execute in my web application even i have used the sessionState InProc mode.I couldnt make it work(automatically).
I wanted to use it to count my website visitors(Decrement Count Number) so are there any way to count my current WebSite Visitors automatically?
I am too late but i will never give up
|
|
|
|
|
Are you sure that it doesn't execute?
Are you aware that it doesn't execute when the browser is closed, but 20 minutes (with default setting) after the last page was requested?
---
b { font-weight: normal; }
|
|
|
|
|
Yes i am sure it doesnt work even after 20 minutes after that last request.I have added the element:
<sessionState mode="InProc" timeout="1"></sessionState>
to the web.config file but the Session_End doesnt execute and the Session_Start executed when i refresh the page after one minute after last page request..
"I am too late but i will never give up"
-- modified at 13:15 Saturday 17th June, 2006
|
|
|
|
|
What code have you put in Session_End, and how did it lead you to the conclusion that it doesn't execute?
---
b { font-weight: normal; }
|
|
|
|
|
The code just decrement a number(a static member in the global) and send an email to me:
EProjects.AdministratorSite.SessionTracker tracker;
tracker=new EProjects.AdministratorSite.SessionTracker();
Application.Lock();
--m_ActiveUsers;
Application.UnLock();
EProjects.AdministratorSite.MailUtil.SendSessionEndAlert(tracker);
"I am too late but i will never give up"
|
|
|
|
|
What does the tracker object do? Are you sure that it can be created in this environment?
Decrement the number before you create the tracker object, in case that causes an exception.
---
b { font-weight: normal; }
|
|
|
|
|
Well I used the code in the following article to create the tracker object:
http://www.15seconds.com/issue/021119.htm[^]
But the WebSite Visitors number is independent of this article and depends only on the static int member that is incremented in the Session_Strat and decremented in the Session_End .
"I am too late but i will never give up"
|
|
|
|
|
The very first thing that the constructor of the tracker object does, is to try to get the context for the current request. As the Session_End event isn't run as a result of a request, there is no context, so it will only get a null reference. When it will try to use the reference, that will result in a null reference exception.
It's as I suspected. The Session_End is executed just fine. It's just the code that you put in it that doesn't work.
---
b { font-weight: normal; }
|
|
|
|
|
tyuty utyu tyu ntyun tyu ntyu tynu
|
|
|
|
|
Sorry for being late..You are right about my mistake:create a tracker object in the Session_End Handler:
tracker=new EProjects.AdministratorSite.SessionTracker();
But I have modified the code to:
tracker=(EProjects.AdministratorSite.SessionTracker)Session["Tracker"];
Like the article code but I got the same result(nothing happend).
I made a test for the Session_End by writing a code that only send a simple message using SmtpMail.Send() and nothing happend too...
Then I made another test by removing the sessionState element and nothing happend too.
May be because I deal with a Web Hosting Server(Iam not the Web Server) there is something different I dont know what is it?!
"I am too late but i will never give up"
|
|
|
|
|
Hi all
anybody have idea abt how to dispaly hierarichal data in datagrid where
in both datagrid columns generated at runtime and at Parent datagrid one
column contain the image button.its urgent
regards
sandhya
sandhya
|
|
|
|
|
HI
chk this link may be it will help u
http://www.denisbauer.com/ASPNETControls/HierarGridDemo.aspx
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
Hi all,
Greetings.i need a help in sqldatasource configuration in asp.net.
i'm using multiple drop down list in a project.for that i've to bound data from three different tables in a database using a single sqldatasource.how can i do this.looking for faster reply.
Thanks & Regards
Babu
|
|
|
|