Click here to Skip to main content
15,892,298 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: set username and password to open internet explorer Pin
eyeseetee3-Mar-08 21:27
eyeseetee3-Mar-08 21:27 
GeneralRe: set username and password to open internet explorer Pin
Christian Graus3-Mar-08 21:45
protectorChristian Graus3-Mar-08 21:45 
GeneralCannot Get Traditional Chinese character properly with Request.QueryString under ASP.NET C# Pin
oceandeeplawrence3-Mar-08 21:09
oceandeeplawrence3-Mar-08 21:09 
GeneralThe problem during writing into an existing cookie, after re running my web application....... Pin
Vishnu Narayan Mishra3-Mar-08 20:57
Vishnu Narayan Mishra3-Mar-08 20:57 
GeneralIIS System.OutOfMemoryException Pin
Eduard Keilholz3-Mar-08 20:05
Eduard Keilholz3-Mar-08 20:05 
Questionhow to show gridview update after button click without postback Pin
uglyeyes3-Mar-08 19:23
uglyeyes3-Mar-08 19:23 
AnswerRe: how to show gridview update after button click without postback Pin
Christian Graus3-Mar-08 19:34
protectorChristian Graus3-Mar-08 19:34 
GeneralRe: how to show gridview update after button click without postback Pin
uglyeyes3-Mar-08 19:41
uglyeyes3-Mar-08 19:41 
Hi Chris

you have mentioned using either URL parameter or view state. now i cant use URL parameter as its a requirement.
here are few codes to help u understand.

Private Sub gvUsers_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles gvUsers.SelectedIndexChanged
dsAssignedPropertyList = mydal.SecurityGetAssignedPropertyByUser(domainid, CompId, userid)
If Not dsAssignedPropertyList Is Nothing Then
gvAssignedProperty.DataSource = dsAssignedPropertyList
gvAssignedProperty.DataBind()
end sub

Protected Sub btnAssign_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAssign.Click
Dim myDAL As New clsDAL
Dim result As Boolean = False

userid = CInt(lblUserId.Text)
propertyid = lbAvailableProperty.SelectedValue
result = myDAL.SecurityAssignProperty(userid, propertyid)
If result Then
lblMsg.Text = "updated"
Else
lblMsg.Text = "failed"
End If

End Sub

In first method i am populating gvAssignedProperty and in second method i managed to insert the record and display a message but i really want to show the added record in a grid. could you please help?

thanks
GeneralRe: how to show gridview update after button click without postback Pin
uglyeyes3-Mar-08 19:52
uglyeyes3-Mar-08 19:52 
GeneralRe: how to show gridview update after button click without postback Pin
Christian Graus3-Mar-08 20:11
protectorChristian Graus3-Mar-08 20:11 
GeneralRe: how to show gridview update after button click without postback Pin
Christian Graus3-Mar-08 19:53
protectorChristian Graus3-Mar-08 19:53 
GeneralRe: how to show gridview update after button click without postback Pin
uglyeyes4-Mar-08 11:46
uglyeyes4-Mar-08 11:46 
Generalget a value in a gridview Pin
caradri3-Mar-08 19:03
caradri3-Mar-08 19:03 
GeneralRe: get a value in a gridview Pin
Christian Graus3-Mar-08 19:36
protectorChristian Graus3-Mar-08 19:36 
GeneralRe: get a value in a gridview Pin
caradri3-Mar-08 20:35
caradri3-Mar-08 20:35 
GeneralRe: get a value in a gridview Pin
Christian Graus3-Mar-08 20:49
protectorChristian Graus3-Mar-08 20:49 
GeneralRe: get a value in a gridview Pin
caradri3-Mar-08 21:24
caradri3-Mar-08 21:24 
GeneralRe: get a value in a gridview Pin
Christian Graus3-Mar-08 22:14
protectorChristian Graus3-Mar-08 22:14 
Questionasp:UpdatePanel Component Question Pin
Programm3r3-Mar-08 18:41
Programm3r3-Mar-08 18:41 
GeneralRe: asp:UpdatePanel Component Question Pin
eyeseetee3-Mar-08 21:24
eyeseetee3-Mar-08 21:24 
Questionhow & where to say dll file name in vs2005? Pin
Member 38798813-Mar-08 18:38
Member 38798813-Mar-08 18:38 
AnswerRe: how & where to say dll file name in vs2005? Pin
EvilInside3-Mar-08 18:59
EvilInside3-Mar-08 18:59 
AnswerRe: how & where to say dll file name in vs2005? Pin
Christian Graus3-Mar-08 19:38
protectorChristian Graus3-Mar-08 19:38 
QuestionHow to implement Questions and Answers forums in asp.net Pin
$unil Dhiman3-Mar-08 18:37
$unil Dhiman3-Mar-08 18:37 
GeneralRe: How to implement Questions and Answers forums in asp.net Pin
Christian Graus3-Mar-08 19:38
protectorChristian Graus3-Mar-08 19:38 

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.