|
I have to create 2 buttons. A event handler is set for a button. For some reason, I need to pass the event handler into another button and remove the event handler from the first button.
I try to find something like "GetEventHandler" so i can call AddEventHandler in the second button, but the EventInfo provide none. Any help ?
|
|
|
|
|
I got a feeling that you are doing in a complicated way, IMO you might want to put some code in the event handler of the firt button and do a checking there. Denpending on the result checking, you can keep the execution going on or call the event handler of the second button instead. Another option is that you can dynamically add the event handlers for the button's events, and depending on some reason like you said, you can decide to add the event handler or not.
|
|
|
|
|
I was given a project to Build a web applicatiton that can be use for Movie Booking System.Am actually on this project now, and i still need sufficient information on how to go about this. I will be very glad if you can provide me with that.
Trying to get my self into the world of programming!!!
|
|
|
|
|
|
I want to eliminate duplicate usernames in the dtadabase.
please help me.
|
|
|
|
|
|
I have one dataset that contains thousands of records i want to filter the dataset by one of the name
select col1,col2,col3 from tablename
this col1 contains various names i want to check wheather an name exists in the col1 or not
please guide me
-
|
|
|
|
|
hi,
make a Dataview object from the dataset table like that..
DataView mydataview=(DataView) ds.Tables[0];
Now you can filter the dataview like that..
DataView.Filter='Put your condition here';
You can also iterate through your dataset,but better use a dataview.
If I have understood your problem then it can be helpful.
get in touch. ;P
Tirthadip
Tirthadip
|
|
|
|
|
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"
|
|
|
|