|
- to create session: Session.Add("login",objLogin) //you can put any object into the Session state
- to destroy the session object: Session["login"]=null; //set it to be NULL
try these???
<< >>
|
|
|
|
|
Still i didn't completed that task,its in ending...........am able 2 end the session using timeout,ok.But..........
I tried to kill the session when i click back button(by writing the code in load event),so that i had to login again when i click forward button.But the code is not working..............plzz check the code
code:
-----------------
In Login Page: in the load event
if(session["Login"]==null)
session.abondon(); (tried also Session["Login"]=null;)
& Coming 2 code in the homepage,in the load event
if(session["Login"]==null)
Response.redirect("Loginpage.aspx");
-----------------------
Hope U can solve my problem.......plzzzzzzzzzzzzzzzzzzzzzzz
Thank U 4 everything.till now........
Urs Shiva
|
|
|
|
|
hi all
I am trying to export contents of Repeater Control data to excel file...which also contains a check box in one of its columns...
but i have export without that checkbox control column..
how can i do it..pls help (ASP.NET/C#.NET)
|
|
|
|
|
I'm looking for help on my CMS (Sprocket) which I believe is significantly architecturally superior to the god-awful mess that is DotNetNuke. DNN is basically the only major open source CMS for the .Net community (unless you count Rainbow which is basically the C# version of it). There are others, but the only ones I have found are very simple, have mountains of sprawling ASPX/ASCX clutter to try and maintain, and/or are trying to be another 3-column portal engine (like we don't have enough of those).
The CMS already has a large established code base that has been well designed (in my opinion) and has been improved and evolved for over a year now.
Take a look at http://www.sprocketcms.com[^] for a complete feature list and to get access to the open source (BSD license) code base for review. There are several sites running it so far and more in development, but the code base has been 100% written by me and some help would be greatly appreciated to help accelerate things to the point where it can start to be viable competition to DNN.
In particular, I'm looking for some assistance with:
- improving the embedded scripting language
- getting the CMS page admin UI up and running
- building some community-related extensions
This will most definitely be one of the next big open source ASP.Net CMS's available. Help me push it over the line!
NATHAN RIDLEY
Web Application Developer
email: snowdevil [@] gmail.com
web/blog: www.ersysgroup.com[ ^]
|
|
|
|
|
Hello every body,
I had downloaded popCalender but I am unable to include it in my toolbox.
Add RJS.Web.WebControl.PopCalendar.dll to the project Reference
Add RJS.Web.WebControl.PopCalendar.dll to the toolbox
Please can anybody tell me how to include these .dll file in project reference and toolbox
Regards
Rahul
rahul saini
|
|
|
|
|
right click on the toolbox..>go for add/remoce controls..>browse tool....>
|
|
|
|
|
Hello,
Sry I forget to tell that I am working in asp.net 2.0 with c#.
And on right click their is no add and remove control option
Regards
rahul saini
|
|
|
|
|
right click on toolbox and click choose items...
for project refference
right click on solution explorer and click Add refference and click on browse tab.
Best Regards
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
Hi, I have a gridview. In that I converted 1column(CampaignName) as a template field (linkbutton).. During runtime if I click on that CampaignName link button I have to get that perticular dataitem.... pls see the code:
<asp:templatefield headertext="Campaign Name">
<itemtemplate>
<asp:linkbutton id="lbtnCampaign" runat="server" causesvalidation="false" commandname=""
="" onclick="lbtnCampaign_Click" text="<%# Eval("CampaignName") %>">
in code behind file I have written like this:
protected void lbtnCampaign_Click(object sender, EventArgs e)
{
GVDoctorActivity.DataBind();
string str = GVDoctorActivity.SelectedRow.Cells[4].Text.ToString();
}
but it is showing null.. wat is the problem..? How can I get that perticular dataitem?
|
|
|
|
|
Try this code
protected void lbtnCampaign_Click(object sender, EventArgs e)<br />
{<br />
GVDoctorActivity.DataBind();<br />
<br />
LinkButton LBT_rem;<br />
<br />
LBT_rem=ctype(GVDoctorActivity.SelectedRow.Cells[4].findcontrol('IdofLinkButton'),LinkButton);<br />
<br />
string str=LBT_rem.text;<br />
}
Best Regards
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
Hi Pathan thanks for reply.. but it is giving error like "Object reference is not set to an instnace of an object". at the following code.
LBT_rem=ctype(GVDoctorActivity.SelectedRow.Cells[4].findcontrol('IdofLinkButton'),LinkButton);
|
|
|
|
|
Hi pathan , I tried with that code,but throwing "Nullreference" exception.
I debug the code and find out that the code (GVDoctorActivity.SelectedRow.Cells[4].findcontrol('IdofLinkButton'),LinkButton) returning null value. it is not getting dataitem.
|
|
|
|
|
Check the index of cell "GVDoctorActivity.SelectedRow.Cells[4].findcontrol('IdofLinkButton'),LinkButton)"
|
|
|
|
|
just check ur linkButton Id
put ur linkButton id instead of this 'IdofLinkButton'
Best Regards
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
GVDoctorActivity.DataBind();
LinkButton LBT_rem = new LinkButton();
LBT_rem = (LinkButton)(GVDoctorActivity.SelectedRow.Cells[4].FindControl("lbtnCampaign"));
string str = LBT_rem.ToString();
I have written the above code. I gave linkbutton correctly.. but it is throwing exception
|
|
|
|
|
string str = LBT_rem.text;
On which of grid event u have been writting this code?
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
// this is template field linkbutton click event.
protected void lbtnCampaign_Click(object sender, EventArgs )
{
// I have put that code here
}
|
|
|
|
|
Hi everybody,
I'm having a problem with my website. This website works well but when
I deploy it on the server and try to use it on another computer I get
this error: "The network path was not found".
what could be the problem?
Thanks.
|
|
|
|
|
not sure, but from the error message...you first check your client can "see" the webserver?
<< >>
|
|
|
|
|
Thanks,
Yes the client can see the server, can even see the website the error only comes when the user wants to use the website. The exception Details: System.Runtime.InteropServices.COMException: The network path was not found.
Thanks
|
|
|
|
|
I'm not expert on this...but first I wonder if you can browse web pages locally without exception?
<< >>
|
|
|
|
|
You mean Locally I can use my web site? If it's the question Locally the website is functioning properly with no problem.
Thanks
|
|
|
|
|
No I mean you browse your webpages at the webserver
|
|
|
|
|
Hi,
On the web server I get the same error.
Thanks
|
|
|
|
|
Hi enjoycrack,
I've just realised something funny would you Be knowing why when the website is on server The images are not seen? I get an X where Image is supposed to appear.
Thanks
|
|
|
|