16,021,041 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by narlakanti (Top 15 by date)
narlakanti
24-Sep-12 9:06am
View
Deleted
you dint get me what i said..
narlakanti
24-Sep-12 0:20am
View
Hi Viprat..., thanks for your help. I have done with Inserting the values into database with you help. Now my question is, how can i update the family details data into database. From Gridview i need to select the Primary key ID of family details, and all the fields of family members need to appear into the text boxes for updation.
Please help me out in this scenario.
Thanks in advance.
narlakanti
18-Sep-12 2:37am
View
No, already published website how can i set the default url if i run any url in that website.
narlakanti
13-Sep-12 8:39am
View
Thanks a lot.. its working..
narlakanti
6-Sep-12 7:50am
View
Its not grid view. we need to design in a table and need to dump into database at a single click.
narlakanti
30-Aug-12 2:46am
View
only limited data is going. The design which i send to u not the full.
narlakanti
30-Aug-12 2:44am
View
<asp:TabContainer ID="tab_level1" runat="server" ActiveTabIndex="0"
Width="100%" BorderStyle="Solid" >
<asp:TabPanel ID="pnl_level1" runat="server" HeaderText="Level-1">
<HeaderTemplate>Level 1</HeaderTemplate>
<contenttemplate>
<table border="1.5" width="100%"><tr><td bgcolor="#66FFFF" colspan="4">
ENROLLMENT FORM
</td></tr><tr><td align="right">Name</td><td><asp:TextBox ID="txt_name" runat="server" Height="16px" Width="414px"><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="txt_name" ErrorMessage="*" ForeColor="#CC3300"
SetFocusOnError="True"><asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ControlToValidate="txt_name" ErrorMessage="Please Enter characters"
ForeColor="#CC3300" SetFocusOnError="True"
ValidationExpression="^[a-zA-Z''-'\s]{1,30}$"></td><td style="text-align: right">Gender </td><td><asp:RadioButtonList ID="opt_gender" runat="server"
RepeatDirection="Horizontal"><asp:ListItem>Male<asp:ListItem>Femlae<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
ControlToValidate="opt_gender" ErrorMessage="*" ForeColor="#CC3300"
SetFocusOnError="True"></td></tr><tr><td align="right">Salutation</td><td><asp:RadioButtonList ID="opt_salutation" runat="server"
RepeatDirection="Horizontal"><asp:ListItem>Mr<asp:ListItem>Mrs<asp:ListItem>Ms<asp:ListItem>Dr<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="opt_salutation" ErrorMessage="*" ForeColor="#CC3300"
SetFocusOnError="True"> </td><td>Others <asp:TextBox ID="txt_saluothers" runat="server"></td><td>Date of Birth <asp:TextBox ID="txt_dob" runat="server"><asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
ControlToValidate="txt_dob" ErrorMessage="*" ForeColor="#CC3300"
SetFocusOnError="True"><asp:CalendarExtender ID="txt_dob_CalendarExtender" runat="server"
Enabled="True" Format="dd/MM/yy" TargetControlID="txt_dob"
TodaysDateFormat="dd/MM/yy" DefaultView="Years"></td></tr><tr><td align="right">Marital Status</td><td><asp:RadioButtonList ID="opt_maritalstatus" runat="server"
RepeatDirection="Horizontal"><asp:ListItem>Married<asp:ListItem>Unmarried<asp:ListItem>Divorced<asp:ListItem>Widowed<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"
ControlToValidate="opt_maritalstatus" ErrorMessage="*" ForeColor="#CC3300"
SetFocusOnError="True"></td><td colspan="2">Others <asp:TextBox ID="txt_ms_others" runat="server"></td></tr></table><table width="100%" border="1.5"><tr><td bgcolor="#66FFFF" colspan="7">
Family Details
</td></tr><tr><td>Name<
narlakanti
30-Aug-12 2:35am
View
Deleted
<%@ Page Title="" Language="C#" MasterPageFile="~/EnrollmentForm.master" AutoEventWireup="true" CodeFile="Enrollment.aspx.cs" Inherits="Enrollment" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<%--<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
--%>
<asp:TabContainer ID="tab_level1" runat="server" ActiveTabIndex="1"
Width="100%" BorderStyle="Solid" >
<asp:TabPanel ID="pnl_level1" runat="server" HeaderText="Level-1">
<HeaderTemplate>Level 1</HeaderTemplate>
<contenttemplate>
<table border="1.5" width="100%">
<tr>
<td bgcolor="#66FFFF" colspan="4">
ENROLLMENT FORM
</td>
</tr>
<tr>
<td align="right">
Name</td>
<td>
<asp:TextBox ID="txt_name" runat="server" Height="16px" Width="414px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="txt_name" ErrorMessage="*" ForeColor="#CC3300"
SetFocusOnError="True">
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ControlToValidate="txt_name" ErrorMessage="Please Enter characters"
ForeColor="#CC3300" SetFocusOnError="True"
ValidationExpression="^[a-zA-Z''-'\s]{1,30}$">
</td>
<td style="text-align: right">
Gender
</td>
<td>
<asp:RadioButtonList ID="opt_gender" runat="server"
RepeatDirection="Horizontal">
<asp:ListItem>Male
<asp:ListItem>Femlae
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
ControlToValidate="opt_gender" ErrorMessage="*" ForeColor="#CC3300"
SetFocusOnError="True">
</td>
</tr>
<tr>
<td align="right">
Salutation</td>
<td>
<asp:RadioButtonList ID="opt_salutation" runat="server"
RepeatDirection="Horizontal">
<asp:ListItem>Mr
<asp:ListItem>Mrs
<asp:ListItem>Ms
<asp:ListItem>Dr
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="opt_salutation" ErrorMessage="*" ForeColor="#CC3300"
SetFocusOnError="True">
</td>
<td>
narlakanti
30-Aug-12 2:34am
View
Deleted
This is the html code.
<%@ Page Title="" Language="C#" MasterPageFile="~/EnrollmentForm.master" AutoEventWireup="true" CodeFile="Enrollment.aspx.cs" Inherits="Enrollment" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<%--<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
--%>
<asp:TabContainer ID="tab_level1" runat="server" ActiveTabIndex="1"
Width="100%" BorderStyle="Solid" >
<asp:TabPanel ID="pnl_level1" runat="server" HeaderText="Level-1">
<HeaderTemplate>Level 1</HeaderTemplate>
<contenttemplate>
<table border="1.5" width="100%">
<tr>
<td bgcolor="#66FFFF" colspan="4">
ENROLLMENT FORM
</td>
</tr>
<tr>
<td align="right">
Name</td>
<td>
<asp:TextBox ID="txt_name" runat="server" Height="16px" Width="414px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="txt_name" ErrorMessage="*" ForeColor="#CC3300"
SetFocusOnError="True">
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ControlToValidate="txt_name" ErrorMessage="Please Enter characters"
ForeColor="#CC3300" SetFocusOnError="True"
ValidationExpression="^[a-zA-Z''-'\s]{1,30}$">
</td>
<td style="text-align: right">
Gender
</td>
<td>
<asp:RadioButtonList ID="opt_gender" runat="server"
RepeatDirection="Horizontal">
<asp:ListItem>Male
<asp:ListItem>Femlae
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
ControlToValidate="opt_gender" ErrorMessage="*" ForeColor="#CC3300"
SetFocusOnError="True">
</td>
</tr>
<tr>
<td align="right">
Salutation</td>
<td>
<asp:RadioButtonList ID="opt_salutation" runat="server"
RepeatDirection="Horizontal">
<asp:ListItem>Mr
<asp:ListItem>Mrs
<asp:ListItem>Ms
<asp:ListItem>Dr
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="opt_salutation" ErrorMessage="*" ForeColor="#CC3300"
SetFocusOnError="True">
</td>
<td>
narlakanti
30-Aug-12 1:53am
View
This is my code behind. My scenario is I have a tab container with 3 Levels like Level 1, Level 2, Level 3 and a button in each button. So after entering the level 1 data i will click on button, then the tab will move to the level 2 and the data entered in level 1 should be kept in sessions.Similarly for Level 2 and level 3. So finally if i click on submit button in level 3 the data in Level 1,Level 2 and Level 3 should be submitted to database.
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
tab_level1.ActiveTabIndex = 0;
txt_dob.Attributes.Add("readonly","");
txt_fd_dob1.Attributes.Add("readonly","");
}
if (Session["New"] != null)
{
lbl_savesubmit1.Text += Session["New"].ToString();
}
else
{
//Response.Redirect("")
}
}
protected void btn_save_continue_Click(object sender, EventArgs e)
{
pnl_level2.Enabled = true;
tab_level1.ActiveTabIndex = 1;
ListControlCollections();
}
private void ListControlCollections()
{
ArrayList controlList = new ArrayList();
AddControls(Form.Controls, controlList);
foreach (string str in controlList)
{
Response.Write(str + "<br/>");
}
Response.Write("Total Controls:" + controlList.Count);
}
private void AddControls(ControlCollection page, ArrayList controlList)
{
foreach (Control c in page)
{
if (c is TextBox)
{
Session["New"] += ((TextBox)c).Text;
lbl_savesubmit1.Text += Session["New"].ToString();
controlList.Add(c.ID);
}
if (c.HasControls())
{
AddControls(c.Controls, controlList);
}
}
}
protected void btn_save_continue1_Click(object sender, EventArgs e)
{
pnl_level3.Enabled = true;
tab_level1.ActiveTabIndex = 2;
}
narlakanti
30-Aug-12 0:49am
View
Hi, control is not going into the loop.
narlakanti
30-Aug-12 0:27am
View
Deleted
Ya am using master page.. so what the solution for this scenario.
narlakanti
30-Aug-12 0:26am
View
Ya am using master page...So what is the solution for this scenario.. Any help will be appriciated.
narlakanti
29-Aug-12 8:51am
View
Tell me how to call this function in a submit button. I wrote this:ClearInputs(Page.Controls); //want to get all the controls in the webpage.
But its not working.
narlakanti
29-Aug-12 8:40am
View
Hi Mario, In my page there are huge number of text boxes, so i need to keep text entered in text boxes. In a single loop i need to store the data in sessions..
Show More