Forms Data Controls :: Show UserID Number On Address Bar?
Dec 20, 2010
1st i start from the SQL Table design, i created a table which contain
RegisterID(for eg. id=1000123), Username, pasword,
Full Name & etc
using a store procedure but i didnt include 'RegisterID' in there becuz i used
'identity' method for auto increment of RegID.
my question is that, i created a login & Welcome page (in C#).
its work properly, but now i want a way, when a user login into the website,
his RegisterID(for eg. id=1000123) will appear in Browser's Address bar
for eg. (http://www.mysite.com/welcome.aspx?id=1000123).
what command i have to give, to appear this ID.
i used Response.Redirect("newuserinfo.aspx?" + "username=" + username_txt.Text);
the username coming on the address bar, but i donno how to show RegisterID.
View 7 Replies
Similar Messages:
Mar 30, 2010
I have a gridview which takes numbers from the table and shows them. There are 4 numbers (-1 / 0 / 1 / 2)
Since the numbers do not mean anything to the user, I would like to assign them words.
-1 = Bad
0 = OK
1 = Groovy
2 = Superduper
So, I would like the data taken from the table to be changed to the word and that populate the datagrid.
The code behind is in C#
View 4 Replies
Jan 8, 2011
I have a number 2879068. I want to display it in currency format as like 28,79,068 in C#
View 4 Replies
Mar 16, 2010
I have a Listview showing all articles. And i'd like to show the number of comments that... that article has.
Shall i call a method inside the listing ?
Then on my code behind i started implementing the following code:
[Code]....
Where on my listview shall i call this function ? SHould i return an int ?
View 3 Replies
Mar 24, 2011
in my colum values like: ,2, 1,,3 1,2,3 1 , ,3 i want to show some text instead of these number .... here is my code
Report Category: ---------------------------------------------------- public string reportcategory(object check) { string[] report_type = check.ToString().Split(','); foreach (string rtk in report_type) { if (Array.IndexOf(report_type, rtk)
!= -1) { if (rtk == "1") { string value = "Weekly"; return value; } else if (rtk == "2") { string value = "Daily"; return value; } else { string value = "Monthly"; return value; } } } } i have also confusion here suppose i have 1,2 then how to write code to show text like "weekely,Daily
View 18 Replies
Mar 4, 2011
how do I fetch a user ID that is associated with the email address entered by the user in the text box?
View 3 Replies
Nov 19, 2013
How can i imports Contacts like  name ,mobile numbers,Name from yahoo ..
View 1 Replies
Mar 10, 2011
I get this message when i go to update formview.
View 2 Replies
Sep 30, 2010
The following code gives error: "When casting from a number, the value must be a number less than infinity."
<asp:TemplateField HeaderText="DATE" SortExpression="date1">
<ItemTemplate>
<asp:Calendar ID="Calendar1" runat="server"
SelectedDate='<%# Bind("date1") %>' VisibleDate='<%# Eval("date1") %>'>
</asp:Calendar>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="Date1" runat="server" Text='<%# Bind("date1") %>'></asp:TextBox>
</EditItemTemplate>
</asp:TemplateField>
The error occurs at the line <asp:Calendar ID="Calendar1"...>
It errors because there are records with null value for date1 when the records are returned from the database.
Is there a way to specify in the .aspx file telling it to ignore null or display null/blank?
View 2 Replies
Jan 1, 2014
I am making the asp.net application which consist of 6 form n based on user id pass want to show form e.g.: for admin all form appear for finance only 2 form appear when he enter his login id pass how can I?
View 1 Replies
Dec 30, 2010
I am trying to populate a gridview that returns only the logged in users' records. Specifically, I am getting a blank page when I load the page. To clarify, I get the blank page after successfully logging in to the ASP.Net Membership and do have data to return from the requested table.
I am reaching out to the online community after numerous failed attempts to research the solution and successfully return the desired results through trial and error variations.
ASPX Page
[Code]....
ASPX.vb CodeBehind
[Code]....
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false"
View 4 Replies
Feb 17, 2011
I created a column named InputUserId for the purpose of saving the user's id upon inputing data using formview(so I know who inputed). I would like the user's id to be saved in the table (column InputUserId) and the table's Id (RId) to be saved in the user's profile.
View 8 Replies
May 4, 2010
Iīm a newbie at .NET and Iīm trying to solve how to run a datagrid with parameters. I know how to do where clauses with controls and today I managed to solve how to have a where clause at UserID within a SelectingEvent.BUT, I canīt run them both in the same time. I want to run a query based on the month in a dropdownlist and the UserID. Each one individually works.Why canīt this be done? Is the onselect statement ignoring the other parameter? I donīt get any errors.The ASPX (in VB.net) code is:
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="IndividuellBonus.aspx.vb" Inherits="Income_IndividuellBonus" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
[code]...
View 4 Replies
Jul 28, 2010
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
View 8 Replies
Feb 23, 2011
i have 10 columns, diffrence user insert (rows)many time, i want to display in page lick this :select Sum where userid=user.identity datetime =date.now and send sum of each columm to 10 labels on page.
View 4 Replies
Jul 17, 2010
I have Gridview1 that brings up the columns Resorts, Seasons, Seasons_ID, Resorts_ID, and User_ID
The three ID's are all foreign keys from related tables, and they are together a combined primary key of the table being accessed (they were defined that way to prevent duplicate entries for any User/Resort/Season combination).
Now the problem: I want to use the selected row from that gridview in the WHERE clause of a SQLDatasource by setting the WHERE clause up like:
WHERE (([Resort_ID] = @Resort_ID) AND ([Season_ID] = @Season_ID) AND ([User_ID] = @User_ID)) , with the parameters each coming from statements like
Gridview1.SelectedValue
When I select a row in the Gridview, I get the following error:
Operand type clash: uniqueidentifier is incompatible with int
I am pretty sure this has to do with the User_ID being in the WHERE clause.
So I have tried something like this to access the selected index:
Gridview1.DataKeys(Gridview1.SelectedIndex).Value
This does not work, as it seems to return only the first key (of three) in the DataKeyNames list.
So the question: How can I use the SelectedIndex of that gridview for such a purpose when the key contains a UserID?
View 8 Replies
Mar 16, 2010
I am currently using this formula to convert an IP address to a number, however I do not get the correct results.
[Code]....
'Dim arrDec() As String
View 2 Replies
Jul 7, 2013
I wanted to show message "NOT valid user"; when user provide wrong userid/password ...but it does not showing any label in it..
Code:
public string Checkuser(string value1, string value2)
{
ExecuteTSQL ts = new ExecuteTSQL();
DataSet ds = ts.SelectQueryDS("select * from tbl_user where USERNAME =" + "'" + value1 +"'" +" and password1 = " +"'"+ value2+ "'" );
if (ds.Tables[0].Rows.Count > 0)
[code]....
View 4 Replies
Feb 6, 2011
It sounds pretty simple, but I can't find a way to make it work. I have a FormView with a InsertTemplate where it inserts the current logged in user's UserId and content from a HTMLeditor, and a EditTemplate where it retreives the current logged in UserId and shows content from database in the HTMLeditor.
How can I get it to show EditTemplate if the userId exist in the table, and InsertTemplate if the UserId does not exist in the table?
View 4 Replies
Aug 10, 2010
I have a web user control with DataList control in it. In my .aspx page, I have a report header, an empty panel as a place holder, a report footer.In my .aspx.vb file, I'll loop through a list of departments. Within each department, I'll load a label to display the department name and the user control for the data, and add both the label and user control to the panel. So there are two variables:
the number of departments and the number of records in a user control.
Now I need to display the current page number and the total page number in the report footer. Is it doable? How? I'm thinking of this approach: declare a page variable count, count the number of department name labels and the number of records in a user control. When the total count reaches a number, such as 20, I'll break the page. This way, I can get the the page current number and the total number of pages. But how to add a page break to an asp.net page?
View 8 Replies
Sep 1, 2010
I want to send email to others. how can i find out my smtp address and port no. I am developing small application. I want to send mail to users.
View 2 Replies
Apr 15, 2013
 i want datalist to show only 6-8items ,as these datalist is connected to datasource which has more than 20 items..
like in facebook,we have lots of friends but in friend box only 6 friends is shown and when we click that we go to next page which display all list of friends...
View 1 Replies
Mar 31, 2011
I have a confusing question, I have a user table and it stores all the usual data for a user that you would expect but im trying to figure out how a user could add another user?
Sounds strange but each user in the User table has his own UI which is UserID how could I add another table where UserID can have a relationship with another UserID?
i.e how would I right the syntax for the above question if I wanted to display all the UserIDs friends on a page. How would I add a friend.
View 4 Replies
May 3, 2012
how to show the number seperated by comma
1000 to 1,000
I mean here is money format.
View 1 Replies
May 7, 2015
i want to know online user in my web site.
View 1 Replies