|
"Remember me" is implemented by using cookie. When user chooses "Remember me" option, you need to set a cookie with a value which can identify the user. You can set user's id or login id. But make sure the value is encrypted as cookies can be easily changed since it is stored in the client machine. When page loads, check for cookie existance. Read the cookie value and create session for that.
|
|
|
|
|
Of course it can't be impossible, since they've done it. Frown
Here's the problem:
I'm using the AjaxControlToolkit, implementing a tabcontainer with 6 tabs. Each tab corresponds to an .aspx page. I've put an UpdatePanel in each TabPanel surrounding a ContentPlaceHolder (each ContentPlaceHolder being unique, and the corresponding pages referencing their own respective ContentPlaceHolders).
I've gotten around the problem of keeping the selected tab active, but I still have to deal with the flicker and visible postback on each tab (I'm using Response.Redirect()).
I've tried putting the whole tabcontainer in an UpdatePanel, to no avail. I literally have not been to sleep since yesterday and have looked at 100's of tutorials and examples trying to get this to work correctly!
All I want is to be able to switch tabs just as in FF or IE7 without looking like I'm going to a whole new website.
Here's the markup for one of the TabPanels:
<pre>
<cc1:TabPanel ID="tabpanel1" runat="server" HeaderText="Home" Width="900px">
<ContentTemplate>
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<table id="Table5" width="900px">
<tr>
<td id="Td13" valign="top">
<asp:TreeView ID="TreeView5" runat="server" DataSourceID="ApplicationSiteMap" ExpandDepth="2"
Width="288px">
</asp:TreeView>
</td>
<td id="Td14">
<div id="Div9">
<asp:SiteMapPath ID="SiteMapPath5" runat="server" SiteMapProvider="DefaultSiteMapProvider">
</asp:SiteMapPath>
</div>
<asp:ContentPlaceHolder ID="DefaultContent" runat="server">
</asp:ContentPlaceHolder>
</td>
<td id="Td15" valign="top">
<div id="Div10">
</div>
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</ContentTemplate>
</cc1:TabPanel></pre>
Thanks in advance for any help you can provide!! And if it's something VERY obvious, please don't think you'll offend me by saying so; I'm dumbfounded.
My Music | My Pics | My Articles
BlackDice
|
|
|
|
|
hi,
I stored the values of a class into a httpcontext.current.session("Description"). How can I read this values back from the object.
Thanks.
That is how I assign the value:
HttpContext.Current.Session("Descriptions") = New List(Of Property_Descriptions)
I have defined the following statements to read it back but I am getting invalid cast execption error message
Dim DescList As New List(Of Property_Descriptions)
DescList = HttpContext.Current.Session("Descriptions") 'Error is here
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
DescList = DirectCast(HttpContext.Current.Session("Descriptions"), List(Of Property_Descriptions))
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Thanks for answering. I tried it before but it didn't also work out too.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
JUNEYT wrote: it didn't also work out too
I suppose that you are trying to say that it didn't work?
Do you get any error message?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi Guffa,
It didn't work. I am getting the following error message
Unable to cast object of type 'System.Collections.Generic.List`1[Property_Descriptions]' to type 'System.Collections.Generic.List`1[Rentgo.Property_Descriptions]
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
You have more than one class named Property_Descriptions. You have to specify exactly in the code which class it is that you mean.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
I need Drop-Down Filter List for a DataGridView Column in webapplication using VB.Net, i need this code very argent, please any olne help me.
Thanks,
Nanthakumar N
|
|
|
|
|
we are not here to do your homework. pls try for it and if you face any problem tell us we will rectify your problems.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
currently i m using asp.net with c# (2.0 framework).
i have placed a .net calendar in a webform and code behind i written the following javascript coding... (in HTML page)
<script runat="server">
public void Page_Load()
{
if (!IsPostBack)
{
Calendar1.SelectedDate = DateTime.Today;
}
}
public void buttonClose_Click(object sender, EventArgs e)
{
string returnScript = "";
returnScript += "<script language=javascript>";
returnScript += "window.opener.document.all['";
returnScript += Request.QueryString["Src"];
returnScript += "'].value = '";
returnScript += Calendar1.SelectedDate.ToString("dd-MMM-yyyy");
returnScript += "';window.close();";
returnScript += "<" + "/" + "script>";
Page.RegisterStartupScript("", returnScript);
}
</script>
I call the above webform in my MASTER page by using the below function in a button click, so that when user clicks this button the calendar will popup and selected date will asign to a textbox
(eg., OnClientClick="pickDate1('txtbox1')")
<script language="javascript" type="text/javascript">
function pickDate(Src)
{
calendar_window=window.open("Calendar1.aspx?src=" + Src, "_blank","height=180, width=200, left=660, top=300,location=no, menubar=no, resizable=yes,scrollbars=no, titlebar=no, toolbar=no", true); calendar_window.focus();
}
</script>
Now here i want to fill another textbox with YEAR ALONE (say, txtbox2) when user select the date for txtbox1 (eg., if user selects the date 01-Oct-2008 for txtbox1, then the year 2008 should be placed in txtbox2).
How to achieve it. help me - KARAN
|
|
|
|
|
hi frnds can any one tell me how can i do this,
because i dont need groove , solid dashed or any other skin provided by asp your own theme and skins
thank you.
|
|
|
|
|
You can create your custome theme in your application, just Right Click on Application - > Add Asp.Net Folder - > Add Theme Folder
now you have to add just a Css and a skin file.
and then aspx page just write inside page directive StyleSheetThme="Your Theme Name"
You can check My Article[^], although the purpose of this article is different but in that application i have used Custom Theme , just dowload the applicatio and try. let me know if any issue.
cheers,
Abhijit
|
|
|
|
|
i am using js function to check gridview value existence it was working fine for single page it doesnt check the whole records it only checks those records which are on current page,
<br />
function checkval()<br />
{<br />
<br />
<br />
var txt=document.getElementById("<%= txt_category.ClientID %>").value;<br />
var theGridView = document.getElementById("<%= gv_faculty_category.ClientID %>");<br />
if(theGridView!=null && txt!="")<br />
{<br />
for ( var rowCount = 1; rowCount < theGridView.rows.length; rowCount++ )<br />
{<br />
alert(theGridView.rows.length);<br />
if ( theGridView.rows(rowCount).cells(0).children(0)!=null)<br />
<br />
{<br />
<br />
<br />
var theGridViewLable = theGridView.rows(rowCount).cells(1).children(0);<br />
if(theGridViewLable.innerHTML==txt)<br />
{<br />
document.getElementById("<%=lbl_proceed.ClientID %>").innerHTML="Category Exists";<br />
<br />
document.getElementById("<%=hf.ClientID %>").setAttribute("value","no");<br />
break;<br />
}<br />
else<br />
{<br />
document.getElementById("<%=lbl_proceed.ClientID %>").innerHTML="Proceed";<br />
document.getElementById("<%=hf.ClientID %>").setAttribute("value", "Proceed");<br />
<br />
}<br />
}<br />
}<br />
}<br />
else<br />
{ <br />
document.getElementById("<%=lbl_proceed.ClientID %>").innerHTML=""; <br />
document.getElementById("<%=hf.ClientID %>").setAttribute("value", "Proceed");<br />
} <br />
} <br />
<br />
can u plz help me
thanks in advance
learning developer
|
|
|
|
|
function popup1(id)
{
var d=id+1;
if(document.getElementById ('TextBox' + d + ').value.length == 0')
{
window.open ('Eventdetails.aspx');
}
else
{
var id1=id;
window.open ('Timeevent.aspx?id='+id1,null,'height=212px,titlebar=no,toolbar=no,width=215px,scroll=no');
return false;
}
}
can any one tell me what is the problem in the above code?
|
|
|
|
|
raghvendrapanda wrote: if(document.getElementById ('TextBox' + d + ').value.length == 0')
check this statement. it should not be like this.
cheers,
Abhijit
|
|
|
|
|
The line:
if(document.getElementById ('TextBox' + d + ').value.length == 0')
is syntactically wrong.
It should be:
if(document.getElementById ('TextBox' + d).value.length == 0)
Regards,
--Perspx
"I've got my kids brainwashed: You don't use Google, and you don't use an iPod." - Steve Ballmer
"Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen an angry penguin charging at them in excess of 100mph." - Linus Torvalds
|
|
|
|
|
How to disabled BACK & FORWARD buttons of the browsers using javascript?
|
|
|
|
|
That is an example of one of the most important don'ts of using JavaScript.
- It isn't possible using JavaScript, as well as the fact that all browsers will handle back and forward buttons/actions in different manners.
- Remember that the user always has control over what they're doing - no matter what your page is doing, browsers have been set up and created so that the user has the control over what they're doing and web pages cannot compromise this.
- (Even if possible) removing such a core feature of the web browser would simply irritate your users and make them go elsewhere.
Regards,
--Perspx
"I've got my kids brainwashed: You don't use Google, and you don't use an iPod." - Steve Ballmer
"Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen an angry penguin charging at them in excess of 100mph." - Linus Torvalds
|
|
|
|
|
This is not Possible in Web Pages. But programatically you can do.
In java script:
BACK KEY:
1. check history.forward contains any data then call in history.back().
FORWARD KEY:
1. check history.back contains any data then call in history.forward().
|
|
|
|
|
Hi, I want the code for the functionality of a backspace button
plz post
|
|
|
|
|
onkeydown="HitBackSpace()"
function HitBackSpace()
{
if (event.keyCode==8)
{
alert("backspace");
}
}
cheers,
Abhijit
|
|
|
|
|
Hi Abhijit,
I am very thankful for responding however i wud like to implement the same functionality of BackSpace button to another button in C#.Net virtually. So plz help me in tht code.
|
|
|
|
|
srinivaskonijeti wrote: however i wud like to implement the same functionality of BackSpace button to another button in C#.Net virtually.
No Clear To Me !!! can you please confirm it details ?
cheers,
Abhijit
|
|
|
|
|
Can any one tell me what is the problem in the foll code. it is not workinh.
Response.Write("");
Response.Write("windows.location.href('Eventdetails.aspx?id='" + i +");
Response.Write("");
Regards'
|
|
|
|