|
sorry that i have not displayed enough information...anyway....now i am giving whole information scenario..
I have created one control for "Go back" which will navigate user to previously visited page.for that I am storing previous refferer url in session so I am maintaining Stack structure.
On local server, code works fine means it navigates user to correct previous page, but while I am testing on remote server then control works but it redirects user to page which has session data of other logged in user, I think there may be the session conflict...
bye, have a nice day...
Chirag Patel
|
|
|
|
|
hi
i want code for===
i am writing a code for login screen, in that form when 3 times i am entering wrong password that time my account is lock. i want this code in asp.net using c#.
Gayatri Patil
|
|
|
|
|
Hi
I think you can solve this using view states. When the login fails increase the number in viewstate. so checking the viewstate count is 3 then you can lock.
viewstate["loginCount"] = viewstate["loginCount"] + 1
it's a rough draft, you need to port it using correct syntax
|
|
|
|
|
it's urgent please -- I bet it is. Read the How to get answers post.
only two letters away from being an asset
|
|
|
|
|
hi all,
I have been using Rad controls for charts.but here i cannot able to get 3d charts.
how to get 3d charts in Asp.net ?
plz give ur suggestions.
Thanks in advance.
cheers
sangeet
|
|
|
|
|
|
|
using DataSet.Tables.Add() method
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
But my problem still exists i hav many datasets returning from class file(cs) and i have to pass all datasets to a single dataset in aspx.cs page
Regards,
puthu
|
|
|
|
|
DataSet containerdataset = new DataSet();
containerdataset.Tables.Add(ds1.Tables[0].Copy())
containerdataset.Tables.Add(ds2.Tables[0].Copy())
containerdataset.Tables.Add(ds3.Tables[0].Copy())
containerdataset.Tables.Add(ds4.Tables[0].Copy())
containerdataset.Tables.Add(ds5.Tables[0].Copy())
where ds1,ds2...ds5 are your dataset
and finally all the tables you will get it in containerdataset
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Hi
Iam beginner to asp.net, can any one explain me the coding for login page how it works with the sample coding
Iam really thankful to you
bye
joyalways
|
|
|
|
|
Specify us which version that you use for login page
Regards,
LEE
|
|
|
|
|
Thank You Lee for ur reply......
Iam using Asp.net 1.1.4322 version using visual studio net 2003
please let me know
regards
|
|
|
|
|
Hi Pls change connection string as per u r database then it will work
if u have any Quries then write a mail to pusnsuresh@yahoo.com...
imports system.data.sqlclient
Dim con As New SqlConnection
Dim cmd As New SqlCommand
Dim dr As SqlDataReader
con=new sqlconnection("Data source=B4-2F-128-HTB2\SQLSVR; user id=sa; password=; Database=New_Cart")
con.Open()
Try
cmd = New SqlCommand("select Pwd from Login where UserName=" & "'" & Textbox1.Text & "'", con)
dr = cmd.ExecuteReader()
If dr.Read Then
If Textbox2.Text.Trim.Equals(dr(0)) Then
Response.Redirect("Home.aspx")
Else
Label1.Visible = True
Label1.Text = "Invalid Pasword"
End If
Else
Label1.Visible = True
Label1.Text = "Invalid UserName"
End If
Catch ex As Exception
Response.Write(ex.ToString())
End Try
|
|
|
|
|
How can i get values in between some tags. I have one pre tag and i want to get the value contained in the pre tag.
Eg :
<pre>I want this code<br>next line</pre>
any idea? can i use regular expressions ? how can i form a regular expression for this..
Cheers
Navaneeth!!
www.w3hearts.com
|
|
|
|
|
If your trying to do it server side you could set runat="server" on the tag and give it an ID. It will create an HtmlGenericControl that has the properties InnerHTML and InnerText
|
|
|
|
|
I dont understant it run with Database
Example Membership.GetAllUsers()
How do it run to get data On database ??????
|
|
|
|
|
The code below in the HTML is throwing me the above error :
<HTML>
<HEAD>
<title>WebForm3</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<script>
function fire()
{
document.Form1.action = "WebForm4.aspx";
document.Form1.submit();
}
</script>
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<input type="hidden" id="hid1" name="hid1" runat="server" value="test">
<asp:Button ID="but1" Runat="server" Text="test1"></asp:Button>
</form>
<br>
<br>
<br>
</body>
</HTML>
I am firing the javascript using
but1.Attributes.Add("OnClick", "fire();")
I want the hidden variable on WebForm4.aspx.
How can I get the same
|
|
|
|
|
Hi
Use Server.Transfer to redirect to a new page. Remove Javascript function
Request.Form["id"] to get value from previous form that is posted to new page.
Rate this message. Thank you. Harini
|
|
|
|
|
I want to do as it is without any changes as this is the requirement.
I do not want to do nay thing in the code behind file.
|
|
|
|
|
Hi
I found one solution for that.
Set
EnableViewStateMac="false" at the Page attribute in the WebForm4.aspx file.
Rate this message. Thank you. Harini
|
|
|
|
|
Thanks harini ur idea worked, Now i want to do something in a work around way.
I have an aspx page , on which i have removed the complete parts. on this page I am printing a value from the Session , which contains a form by itself.
Now I want to change the action of this form and also submit this form so that I can get the hidden variables of this form on another normal aspx page.
could u suggest how to go about with this problem
|
|
|
|
|
Hi in my web page,
some of the users have limited rights & some others are admin,
the limited users can access some of the pages only,
i have menu bars in my asp.net page,
my doubt is,when he logged on......,based on the user rights what are the menus he can access that only want to display for him,
how to do that,
plz if u have code plz send me.....,
Regards,
Magesh
|
|
|
|
|
hi
For this, you can assign some priorities for the users based on their authentication level.
Say, for Admin the priority can be '1',Manager be '2' etc.. and save it in the table where you save the login details.
While clicking enter key of the Login page,u can check the user's Username,Password and this priority and based on that, you make the menu items disabled or their click events not to fire...
This way you can do...
~VSree
|
|
|
|
|