Click here to Skip to main content
15,900,258 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Motherboard serial of client machine? Pin
Abhishek Sur2-Oct-09 12:42
professionalAbhishek Sur2-Oct-09 12:42 
GeneralRe: Motherboard serial of client machine? Pin
_Madmatt2-Oct-09 22:11
_Madmatt2-Oct-09 22:11 
Questionreturing value from javascript funtion to codebehind Pin
Hemant Thaker2-Oct-09 7:29
Hemant Thaker2-Oct-09 7:29 
AnswerRe: returing value from javascript funtion to codebehind Pin
Abhijit Jana2-Oct-09 7:52
professionalAbhijit Jana2-Oct-09 7:52 
QuestionRe: returing value from javascript funtion to codebehind Pin
Hemant Thaker2-Oct-09 8:14
Hemant Thaker2-Oct-09 8:14 
AnswerRe: returing value from javascript funtion to codebehind Pin
Abhijit Jana2-Oct-09 8:22
professionalAbhijit Jana2-Oct-09 8:22 
QuestionRe: returing value from javascript funtion to codebehind Pin
Hemant Thaker2-Oct-09 8:35
Hemant Thaker2-Oct-09 8:35 
AnswerRe: returing value from javascript funtion to codebehind Pin
Abhijit Jana2-Oct-09 8:54
professionalAbhijit Jana2-Oct-09 8:54 
Hemant Thaker wrote:

jscript runtime error :document.getelementId(...) is null or not an object


???????????? whats that

I dont know, what you are doing with getelementId ???

Try this :
.cs file code ::
protected void Button1_Click(object sender, EventArgs e)
{
    ClientScript.RegisterStartupScript(GetType(), "Check_Wrong_AnsString", "SetServerValue()", true);
    Response.Write(HiddenField1.Value);
}


Javascript ::
<script language="javascript">
var HClientID="<%=HiddenField1.ClientID%>";

function SetServerValue(args)
{
var hidID=document.getElementById(HClientID).value = "false";
}

</script>


ASPX :
<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
<asp:HiddenField ID="HiddenField1" runat="server" />


Try and run this. This working fine !!

Hope this will help you. Let me know if u have any more issue !!

Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Visit My Latest Article : Beginner's Guide : Exploring IIS 6.0 With ASP.NET

GeneralRe: returing value from javascript funtion to codebehind Pin
Abhishek Sur2-Oct-09 12:46
professionalAbhishek Sur2-Oct-09 12:46 
QuestionPopup form notifying other form? Pin
Quake2Player2-Oct-09 7:27
Quake2Player2-Oct-09 7:27 
AnswerRe: Popup form notifying other form? Pin
Kannan Ar2-Oct-09 15:20
professionalKannan Ar2-Oct-09 15:20 
QuestionMulti page Add and Edit Pin
IT_Help2-Oct-09 7:26
IT_Help2-Oct-09 7:26 
AnswerRe: Multi page Add and Edit Pin
Abhishek Sur2-Oct-09 8:17
professionalAbhishek Sur2-Oct-09 8:17 
GeneralRe: Multi page Add and Edit Pin
IT_Help2-Oct-09 9:55
IT_Help2-Oct-09 9:55 
GeneralRe: Multi page Add and Edit Pin
Abhishek Sur2-Oct-09 12:24
professionalAbhishek Sur2-Oct-09 12:24 
AnswerRe: Multi page Add and Edit Pin
Blikkies2-Oct-09 8:55
professionalBlikkies2-Oct-09 8:55 
GeneralRe: Multi page Add and Edit Pin
IT_Help2-Oct-09 9:58
IT_Help2-Oct-09 9:58 
GeneralRe: Multi page Add and Edit Pin
Blikkies2-Oct-09 10:26
professionalBlikkies2-Oct-09 10:26 
GeneralRe: Multi page Add and Edit Pin
IT_Help2-Oct-09 10:46
IT_Help2-Oct-09 10:46 
GeneralRe: Multi page Add and Edit Pin
Blikkies2-Oct-09 11:26
professionalBlikkies2-Oct-09 11:26 
GeneralRe: Multi page Add and Edit Pin
Blikkies2-Oct-09 11:35
professionalBlikkies2-Oct-09 11:35 
QuestionActiveX or Something Better? (Don't know what to use) Pin
Ramjet12-Oct-09 6:58
Ramjet12-Oct-09 6:58 
AnswerRe: ActiveX or Something Better? (Don't know what to use) Pin
Abhishek Sur2-Oct-09 7:04
professionalAbhishek Sur2-Oct-09 7:04 
GeneralRe: ActiveX or Something Better? (Don't know what to use) Pin
Ramjet12-Oct-09 7:27
Ramjet12-Oct-09 7:27 
GeneralRe: ActiveX or Something Better? (Don't know what to use) Pin
Abhishek Sur2-Oct-09 8:11
professionalAbhishek Sur2-Oct-09 8:11 

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.