Click here to Skip to main content
15,889,281 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Unable to disable the button Pin
vnr27-Dec-09 18:43
vnr27-Dec-09 18:43 
GeneralRe: Unable to disable the button Pin
Brij28-Dec-09 8:35
mentorBrij28-Dec-09 8:35 
GeneralRe: Unable to disable the button Pin
vnr28-Dec-09 19:16
vnr28-Dec-09 19:16 
QuestionRedirection from global.aspx Pin
Amit Patel198527-Dec-09 2:19
Amit Patel198527-Dec-09 2:19 
AnswerRe: Redirection from global.aspx Pin
Abhijit Jana27-Dec-09 2:37
professionalAbhijit Jana27-Dec-09 2:37 
GeneralRe: Redirection from global.aspx Pin
Rock Star.28-Dec-09 4:49
Rock Star.28-Dec-09 4:49 
GeneralRe: Redirection from global.aspx Pin
Abhijit Jana28-Dec-09 6:51
professionalAbhijit Jana28-Dec-09 6:51 
QuestionSetting HiddenField via jQuery not working in code behind Pin
Gareth H26-Dec-09 23:20
Gareth H26-Dec-09 23:20 
So i am making a "Delete" button, which is on a gridview. The link calls some javascript, updates the hiddenfield value and then opens a jQuery dialog. In the dialog, there is a "Yes", "No" options.

If the user clicks "Yes", i get the value of the hiddenfield and delete the record.

Button;
<a href="#" onclick='LoadDialog(<%# Eval("AccountId") %>)'>Delete</a>


Javascript;
function LoadDialog(accountId) {
        $('#<%= HiddenFieldAccountId.ClientID %>').attr('value', accountId);
                
        $('#dialog').dialog('open'); 
        return false;
    }


Dialog;
<div id="dialog" title="Delete Account">
    Are you sure you wish to delete this account?<br /><br />
    <asp:HiddenField ID="HiddenFieldAccountId" runat="server" />
    <asp:LinkButton ID="LinkButtonDelete" runat="server" onclick="LinkButtonDelete_Click">Yes</asp:LinkButton> | 
    <a href="#" onclick="UnloadDialog()">No</a>
</div>


When the "Yes" (LinkButtonDelete) is clicked, i step into the code and look at the hidden field, and this is where i come to the problem. The hidden field value is empty.

I've added an alert message to the 'LoadDialog' javascript, and i know the account id is set, its just the code behind cant see it is.

Regards,
Gareth.

(FKA gareth111)

QuestionRe: Setting HiddenField via jQuery not working in code behind [modified] Pin
Gareth H28-Dec-09 6:20
Gareth H28-Dec-09 6:20 
AnswerRe: Setting HiddenField via jQuery not working in code behind Pin
Gareth H28-Dec-09 7:28
Gareth H28-Dec-09 7:28 
Questionconfirm message box. Pin
Amit Patel198526-Dec-09 7:12
Amit Patel198526-Dec-09 7:12 
AnswerRe: confirm message box. Pin
dan!sh 26-Dec-09 18:21
professional dan!sh 26-Dec-09 18:21 
Questionfree forum script in asp.net Pin
dift26-Dec-09 5:08
dift26-Dec-09 5:08 
AnswerRe: free forum script in asp.net Pin
Abhishek Sur26-Dec-09 5:29
professionalAbhishek Sur26-Dec-09 5:29 
AnswerRe: free forum script in asp.net Pin
Aman Bhullar27-Dec-09 17:53
Aman Bhullar27-Dec-09 17:53 
Questionhow do i get IST time format. Pin
shiva.kore25-Dec-09 23:56
shiva.kore25-Dec-09 23:56 
AnswerRe: how do i get IST time format. Pin
ais0726-Dec-09 1:01
ais0726-Dec-09 1:01 
GeneralRe: how do i get IST time format. Pin
Nishant Singh26-Dec-09 2:33
Nishant Singh26-Dec-09 2:33 
Questionsite navigation Pin
mylogics25-Dec-09 19:55
professionalmylogics25-Dec-09 19:55 
AnswerRe: site navigation Pin
Aman Bhullar25-Dec-09 23:42
Aman Bhullar25-Dec-09 23:42 
GeneralRe: site navigation Pin
mylogics25-Dec-09 23:44
professionalmylogics25-Dec-09 23:44 
GeneralRe: site navigation Pin
Abhijit Jana26-Dec-09 0:36
professionalAbhijit Jana26-Dec-09 0:36 
AnswerRe: site navigation Pin
sashidhar26-Dec-09 22:36
sashidhar26-Dec-09 22:36 
Questioncaching best architecture [modified] Pin
Amr M. K.25-Dec-09 5:53
Amr M. K.25-Dec-09 5:53 
AnswerRe: caching best architecture Pin
Abhijit Jana25-Dec-09 6:07
professionalAbhijit Jana25-Dec-09 6:07 

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.