Click here to Skip to main content
16,005,473 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: name of the cookie file Pin
sidbaruah25-Jun-07 1:39
sidbaruah25-Jun-07 1:39 
Questionsaving a file... Pin
pradeep kumarappagari21-Jun-07 20:14
pradeep kumarappagari21-Jun-07 20:14 
AnswerRe: saving a file... Pin
Sandeep Akhare21-Jun-07 20:23
Sandeep Akhare21-Jun-07 20:23 
QuestionHelp ME, This is the second day today but still i get answer.. Pin
Hemant Garg21-Jun-07 20:07
Hemant Garg21-Jun-07 20:07 
AnswerRe: Help ME, This is the second day today but still i get answer.. Pin
Sathesh Sakthivel21-Jun-07 20:19
Sathesh Sakthivel21-Jun-07 20:19 
AnswerRe: Help ME, This is the second day today but still i get answer.. Pin
Sandeep Akhare21-Jun-07 20:29
Sandeep Akhare21-Jun-07 20:29 
Generalok what problem this coding have Pin
Hemant Garg21-Jun-07 21:09
Hemant Garg21-Jun-07 21:09 
GeneralRe: ok what problem this coding have Pin
Sandeep Akhare21-Jun-07 22:33
Sandeep Akhare21-Jun-07 22:33 
i doubt it contain both server side and Javascipt code in it Confused | :confused:
Don't use panel use div instead panel put your all controls in these div tags and in javascript write a function that will unable and visible div tags depending on which textBox clicked call this function
here register your javascript from page load in .cs
NameTxtBx.Attributes.Add("OnClick", "javascript:MakeSum('Second');");
AdressTxtBx.Attributes.Add("OnClick", "javascript:MakeSum('first');");
this is javascirpt function
function MakeSum( dats)
{
var tags=document.getElementById(dats);
if(tags.disabled==true)
{
tags.disabled=false;
}
else
{
tags.disabled=true;
}
}
here is the HTML
<div id="first">
<table >
<tr>
<td align="right">
<asp:Label ID="NameLabel" runat="server" Text="Name" Width="52px"></asp:Label></td>
<td>
<asp:TextBox ID="NameTxtBx" runat="server" ></asp:TextBox></td>
<td>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="LastNameLabel" runat="server" Text="LastName" Width="52px"></asp:Label></td>
<td>
<asp:TextBox ID="LastNameTxtBx" runat="server"></asp:TextBox></td>
<td>
</td>
</tr>
</table>
</div>
<div id="Second">
<table>
<tr>
<td align="right">
<asp:Label ID="AdressLabel" runat="server" Text="Adress" Width="52px"></asp:Label></td>
<td>
<asp:TextBox ID="AdressTxtBx" runat="server"></asp:TextBox></td>
<td>
</td>
</tr>
<tr>
<td align="right">
&nbsp;<asp:Label ID="CityLabel" runat="server" Text="City" Width="52px"></asp:Label></td>
<td>
<asp:TextBox ID="CityTxtBx" runat="server"></asp:TextBox></td>
<td>
</td>
</tr>
<tr>
<td align="right">
</td>
<td>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" Width="70px" /></td>
<td>
</td>
</tr>
</table>

</div>

Thanks and Regards
Sandeep

If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "




AnswerRe: Help ME, This is the second day today but still i get answer.. Pin
ash0421-Jun-07 20:55
ash0421-Jun-07 20:55 
GeneralRe: Help ME, This is the second day today but still i get answer.. Pin
Hemant Garg21-Jun-07 21:03
Hemant Garg21-Jun-07 21:03 
QuestionBitmap Image Pin
Bajrang Singh21-Jun-07 20:07
Bajrang Singh21-Jun-07 20:07 
QuestionC# code copy and paste the folder Pin
S.Bhushan21-Jun-07 19:25
S.Bhushan21-Jun-07 19:25 
AnswerRe: C# code copy and paste the folder Pin
Sylvester george21-Jun-07 19:56
Sylvester george21-Jun-07 19:56 
QuestionHow to dump the filtered data from an excel file in Sql-server 2000 Pin
MissionSuccess21-Jun-07 19:24
MissionSuccess21-Jun-07 19:24 
QuestionHow to use panels and text boxes Pin
Hemant Garg21-Jun-07 19:21
Hemant Garg21-Jun-07 19:21 
AnswerRe: How to use panels and text boxes Pin
Sylvester george21-Jun-07 20:31
Sylvester george21-Jun-07 20:31 
AnswerRe: How to use panels and text boxes Pin
Sandeep Akhare22-Jun-07 0:46
Sandeep Akhare22-Jun-07 0:46 
Questionpassword strength Pin
jai 12321-Jun-07 19:16
jai 12321-Jun-07 19:16 
AnswerRe: password strength Pin
Sathesh Sakthivel21-Jun-07 19:21
Sathesh Sakthivel21-Jun-07 19:21 
GeneralRe: password strength Pin
jai 12321-Jun-07 19:42
jai 12321-Jun-07 19:42 
GeneralRe: password strength Pin
Sathesh Sakthivel21-Jun-07 19:51
Sathesh Sakthivel21-Jun-07 19:51 
GeneralRe: password strength Pin
jai 12321-Jun-07 20:09
jai 12321-Jun-07 20:09 
QuestioncustomError in Web.Config file is not working Pin
Prakash.SE21-Jun-07 19:01
Prakash.SE21-Jun-07 19:01 
AnswerRe: customError in Web.Config file is not working Pin
RepliCrux21-Jun-07 19:14
RepliCrux21-Jun-07 19:14 
GeneralRe: customError in Web.Config file is not working Pin
Prakash.SE21-Jun-07 19:20
Prakash.SE21-Jun-07 19:20 

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.