Click here to Skip to main content
15,915,086 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionany can help me?? Pin
blade61724-Sep-07 6:16
blade61724-Sep-07 6:16 
AnswerRe: any can help me?? Pin
Not Active24-Sep-07 6:35
mentorNot Active24-Sep-07 6:35 
AnswerRe: any can help me?? Pin
Christian Graus24-Sep-07 12:37
protectorChristian Graus24-Sep-07 12:37 
QuestionWeb parts User control Events Pin
zol_tech24-Sep-07 5:54
zol_tech24-Sep-07 5:54 
QuestionBarcode read and write Pin
Sarfaraj Ahmed24-Sep-07 4:52
Sarfaraj Ahmed24-Sep-07 4:52 
AnswerRe: Barcode read and write Pin
Not Active24-Sep-07 6:13
mentorNot Active24-Sep-07 6:13 
AnswerRe: Barcode read and write Pin
Cfer8324-Sep-07 6:44
Cfer8324-Sep-07 6:44 
Questionneed help pull values from DataSet with DAL Pin
Mio200524-Sep-07 4:46
Mio200524-Sep-07 4:46 
Hi,
I'm new for ASP.NET and for Using C#.
I'm trying to create Web Project that have Log in form and return user ID
("UserID"), User TypeID ("fUserTypeID") ,User SecurityLevel
("UserSecurityLevel") ,User Fullname ("ShowName") from SQLdb, usind DAL.

i DrugAndDrop ObjectDataSource named/ID ObjectDataSource1 and then connect
the GridView in to it.
The ObjectDataSource1 is working with DAL (running with SP) and get 2
parameters (UserName, Password)
and return UserID and UserFullName.

the code:

<%--Start GridView--%>
<asp:gridview id="GridView1" runat="server"
autogeneratecolumns="False" datakeynames="UserID"
="" datasourceid="ObjectDataSource1">
<columns>
<asp:boundfield datafield="UserID" headertext="UserID"
insertvisible="False" readonly="True"
="" sortexpression="UserID">
<asp:boundfield datafield="fUserTypeID" headertext="fUserTypeID"
readonly="True"
="" sortexpression="fUserTypeID">
<asp:boundfield datafield="UserSecurityLevel"
headertext="UserSecurityLevel" readonly="True"
="" sortexpression="UserSecurityLevel">
<asp:boundfield datafield="ShowName" headertext="ShowName"
readonly="True" sortexpression="ShowName">



<asp:objectdatasource id="ObjectDataSource1" runat="server"
oldvaluesparameterformatstring="original_{0}"
="" selectmethod="GetData"

typename="Dal_Class_For_AspNet_Agent.dsNWTableAdapters.AspNet_Xnet_sp_Agent_LoginTableAdapter">
<selectparameters>
<asp:controlparameter controlid="inputUserName" name="UserName"
propertyname="Text"
="" type="String">
<asp:controlparameter controlid="inputPassword" name="Password"
propertyname="Text"
="" type="String">


<%--End GridView--%>

I manage to make it work and see the data in GrideView.
But what i like to do, is to get the return data as Recordset / Parameters
and put them into 2 separate SESSIONS, so i will be able to
print out at the top frame of the page the UserFullName and keep in SESSION
the UserID for later validation.

Can You please advice with sample code ?
Questionsingle sign on [modified] Pin
acodman24-Sep-07 4:33
acodman24-Sep-07 4:33 
AnswerRe: single sign on Pin
Christian Graus24-Sep-07 12:38
protectorChristian Graus24-Sep-07 12:38 
Questionhow to change datafield property of a boundfield in a gridview Pin
here2learn24-Sep-07 4:32
here2learn24-Sep-07 4:32 
AnswerRe: how to change datafield property of a boundfield in a gridview Pin
saini arun24-Sep-07 18:17
saini arun24-Sep-07 18:17 
QuestionHow AJAX file Used in .Net Pin
varma penmatsa24-Sep-07 2:29
varma penmatsa24-Sep-07 2:29 
AnswerRe: How AJAX file Used in .Net Pin
Guffa24-Sep-07 2:41
Guffa24-Sep-07 2:41 
QuestionWeb Service Project Build Events Pin
originSH24-Sep-07 2:12
originSH24-Sep-07 2:12 
QuestionPublish the Project of site Pin
.NET- India 24-Sep-07 2:08
.NET- India 24-Sep-07 2:08 
AnswerRe: Publish the Project of site Pin
saini arun24-Sep-07 18:21
saini arun24-Sep-07 18:21 
GeneralRe: Publish the Project of site Pin
.NET- India 24-Sep-07 18:47
.NET- India 24-Sep-07 18:47 
GeneralRe: Publish the Project of site Pin
saini arun24-Sep-07 19:02
saini arun24-Sep-07 19:02 
GeneralRe: Publish the Project of site Pin
.NET- India 24-Sep-07 20:43
.NET- India 24-Sep-07 20:43 
GeneralRe: Publish the Project of site Pin
saini arun24-Sep-07 20:46
saini arun24-Sep-07 20:46 
QuestionData view problem Pin
Shaurya_Rastogi24-Sep-07 2:03
Shaurya_Rastogi24-Sep-07 2:03 
AnswerRe: Data view problem Pin
kubben24-Sep-07 3:17
kubben24-Sep-07 3:17 
GeneralRe: Data view problem Pin
Shaurya_Rastogi24-Sep-07 18:38
Shaurya_Rastogi24-Sep-07 18:38 
GeneralRe: Data view problem Pin
kubben25-Sep-07 0:30
kubben25-Sep-07 0:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.