Click here to Skip to main content
15,910,661 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to remove CC and To in Outlook using Outlook Add in Template in .net Pin
palanirajan21-Feb-12 20:50
palanirajan21-Feb-12 20:50 
Questionsmtp: help how make emails deliver to inbox not junk box Pin
awedaonline21-Feb-12 0:43
awedaonline21-Feb-12 0:43 
AnswerRe: smtp: help how make emails deliver to inbox not junk box Pin
Richard MacCutchan21-Feb-12 1:32
mveRichard MacCutchan21-Feb-12 1:32 
Questionhelp how make emails deliver to inbox not junk box Pin
awedaonline21-Feb-12 0:42
awedaonline21-Feb-12 0:42 
AnswerRe: help how make emails deliver to inbox not junk box Pin
Richard MacCutchan21-Feb-12 1:31
mveRichard MacCutchan21-Feb-12 1:31 
QuestionIIS URL Pin
Zeyad Jalil20-Feb-12 21:46
professionalZeyad Jalil20-Feb-12 21:46 
AnswerRe: IIS URL Pin
Pete O'Hanlon20-Feb-12 23:04
mvePete O'Hanlon20-Feb-12 23:04 
QuestionAccessing usercontrols inside placeholder control using jQuery Pin
meeram39520-Feb-12 20:26
meeram39520-Feb-12 20:26 
I have an aspx form which are having three usercontrols (basically 2 sets of radio buttons). All are placed dynamically on page load in a placeholder control.
I want to display the other radiobuttons(usercontrols) based on the previous selection. So for eg:
If I have three usercontrols, uc1, uc2, uc3 which are all having two sets of radio buttons. uc2 will display only if uc1 is selected and uc3 will display only if uc2 is selected.

How can I achieve this through jquery/javascript? All these controls should be loaded and visible should be hidden while loading the page.

I googled for sometime, but didn't get any effective result. Could anybody please help.

Following is my code:
ASP.NET
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Src="~/DI_UserControls/AppForm0602.ascx" TagName="AppForm602" TagPrefix="AppForm602" %>
<%@ Register Src="~/DI_UserControls/AppForm0719.ascx" TagName="AppForm719" TagPrefix="AppForm719" %>
<%@ Register Src="~/DI_UserControls/AppForm0466.ascx" TagName="AppForm466" TagPrefix="AppForm466" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

    <div>
    <table>            
        <tr>
            <td>
                <asp:PlaceHolder ID="DIPlaceHolder" runat="server"></asp:PlaceHolder>
               
            </td>
        </tr>
    </table>
    </div>

C#
protected void Page_Load(object sender, EventArgs e)
    {
        SqlConnection con = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["con1"].ConnectionString.ToString());
        SqlCommand cmd = new SqlCommand();
        cmd.CommandText = "sp_GetPages";
        cmd.CommandType = CommandType.StoredProcedure;
        cmd.Connection = con;
        cmd.Parameters.AddWithValue("@PageID", 12);
        cmd.Parameters.AddWithValue("@ApplicationID", 157);
        SqlDataAdapter adpt = new SqlDataAdapter(cmd);
        DataTable dt = new DataTable();
        adpt.Fill(dt);
        cmd.CommandText = "sp_GetPageDependency";
        cmd.CommandType = CommandType.StoredProcedure;
        cmd.Connection = con;
        cmd.Parameters.Clear();
        cmd.Parameters.AddWithValue("@PageID", 12);
        SqlDataAdapter adpt1 = new SqlDataAdapter(cmd);
        DataTable dt1 = new DataTable();
        adpt1.Fill(dt1);
         foreach (DataRow row in dt.Rows)
        {
            int colValue = Convert.ToInt32(row[4].ToString());
            switch (colValue)
            {
               
                case 602:
                    obj602 = LoadControl("~/DI_UserControls/AppForm0602.ascx") as DI_UserControls_AppForm0602;
                    obj602.ID = "602";


                    DIPlaceHolder.Controls.Add(obj602);
                    DIPlaceHolder.Controls.Add(InsertLineBreaks(1));

                    break;
                case 466:
                    obj466 = LoadControl("~/DI_UserControls/AppForm0466.ascx") as DI_UserControls_AppForm0466;
                    obj466.ID = "466";


                    DIPlaceHolder.Controls.Add(obj466);
                    DIPlaceHolder.Controls.Add(InsertLineBreaks(1));
                    break;
}
}

Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

AnswerRe: Accessing usercontrols inside placeholder control using jQuery Pin
jkirkerx21-Feb-12 15:43
professionaljkirkerx21-Feb-12 15:43 
AnswerRe: Accessing usercontrols inside placeholder control using jQuery Pin
Shameel21-Feb-12 23:31
professionalShameel21-Feb-12 23:31 
QuestionAsp.net4.0: Ajax Control ToolKit Pin
ranuec20-Feb-12 2:06
ranuec20-Feb-12 2:06 
AnswerRe: Asp.net4.0: Ajax Control ToolKit Pin
antish120-Feb-12 5:42
antish120-Feb-12 5:42 
QuestionDelete all existing files prior to publish + Recover deleted files Pin
NTheOne20-Feb-12 1:04
NTheOne20-Feb-12 1:04 
AnswerRe: Delete all existing files prior to publish + Recover deleted files Pin
David C# Hobbyist.20-Feb-12 17:25
professionalDavid C# Hobbyist.20-Feb-12 17:25 
AnswerRe: Delete all existing files prior to publish + Recover deleted files Pin
Shameel21-Feb-12 23:33
professionalShameel21-Feb-12 23:33 
QuestionTF31002: Unable to connect to this Team Foundation Server Pin
sekar_148420-Feb-12 1:01
sekar_148420-Feb-12 1:01 
QuestionMulti-file input Pin
Ali Al Omairi(Abu AlHassan)19-Feb-12 1:48
professionalAli Al Omairi(Abu AlHassan)19-Feb-12 1:48 
AnswerRe: Multi-file input Pin
Not Active19-Feb-12 5:10
mentorNot Active19-Feb-12 5:10 
GeneralRe: Multi-file input Pin
Ali Al Omairi(Abu AlHassan)19-Feb-12 22:08
professionalAli Al Omairi(Abu AlHassan)19-Feb-12 22:08 
GeneralRe: Multi-file input Pin
antish120-Feb-12 5:55
antish120-Feb-12 5:55 
Questionproject for travel agency Pin
zemzela18-Feb-12 7:46
zemzela18-Feb-12 7:46 
AnswerRe: project for travel agency Pin
Richard MacCutchan18-Feb-12 22:40
mveRichard MacCutchan18-Feb-12 22:40 
QuestionMove nodes of tree View up or down. Pin
Member 322226416-Feb-12 22:42
Member 322226416-Feb-12 22:42 
AnswerRe: Move nodes of tree View up or down. Pin
R. Giskard Reventlov17-Feb-12 12:20
R. Giskard Reventlov17-Feb-12 12:20 
QuestionWatin On Windows 8 Pin
Kevin Marois16-Feb-12 8:46
professionalKevin Marois16-Feb-12 8:46 

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.