Click here to Skip to main content
15,908,013 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to find the login time and logout time using triggers in sql server2005 Pin
Not Active24-Feb-10 8:55
mentorNot Active24-Feb-10 8:55 
AnswerRe: how to find the login time and logout time using triggers in sql server2005 Pin
Goalie3525-Feb-10 5:26
Goalie3525-Feb-10 5:26 
Questionhow to use charts in crystal reports using asp.net with c# Pin
developerit24-Feb-10 6:34
developerit24-Feb-10 6:34 
AnswerRe: how to use charts in crystal reports using asp.net with c# Pin
i gr824-Feb-10 19:13
i gr824-Feb-10 19:13 
Questionclick a button on a webcontrol but retain focus of current control on the form Pin
thedom224-Feb-10 1:58
thedom224-Feb-10 1:58 
AnswerRe: click a button on a webcontrol but retain focus of current control on the form Pin
R. Giskard Reventlov24-Feb-10 2:24
R. Giskard Reventlov24-Feb-10 2:24 
QuestionDeploying CAB File for ActiveX Control Pin
VikashGohil24-Feb-10 1:45
VikashGohil24-Feb-10 1:45 
QuestionAfter disabling the controls within ajax tab container which again within formview using client script not persisting values Pin
Rakesh N Bhavsar24-Feb-10 1:14
Rakesh N Bhavsar24-Feb-10 1:14 
Hi guys!
I am working as a web developer. In one of my web aspplication in asp.net I am facing problem.
my aspx page will contains following html tags
<asp:FormView ID="fvwTenderProposal" runat="server" ....>
<EditItemTemplate>
<ajaxToolkit:TabContainer ID="tabContainer1" runat="server">
<ajaxToolkit:TabPanel ID="tabPanel1" runat="server" Header="Tab1">
<ContentTemplate>
<asp:TextBox id="txtBox1" runat="server"></asp:TextBox>
</ContentTemplate>
</ajaxToolkit:TabPanel>
<ajaxToolkit:TabPanel ID="tabPanel2" runat="server" HeaderText="Tab2">
<ContentTemplate>
<asp:TextBox id="txtBox2" runat="server"></asp:TextBox>
</ContentTemplate>
</ajaxToolkit:TabPanel>
</ajaxToolkit:TabContainer>
</EditItemTemplate>
</asp:FormView>

As I am disabling the controls inside ajax tab container->tabpanel which is then again contains into the Form view control.
So there are two controls outside ajax tab container TextBox3 & Button1. But these are contains into the formview.
So when I am enter date(or any text) into the TextBox3, then controls inside the current opened tab get disabled using client script as follows

<script type=”text/javascrpt”>
function disabledTabControls()
{
var objCtlTabPanel1 = $get('<%= fvwTenderProposal.FindControl("tabContainer1").ClientID %>' + "_tabPanel1");
var objCtlTabPanel2 = $get('<%= fvwTenderProposal.FindControl("tabContainer1").ClientID %>' + "_tabPanel2");
var objTxtBox1 = $get('<%= fvwTenderProposal.FindControl("tabContainer1").ClientID %>' + "_tabPanel1_txtBox1");
/* there are many controls within the tab panel which want to make enable false. So that user can not edit it.*/
objTxtBox1.disabled = false;
}
</script>
After that when user click on Button1, then I want to get tabpanels controls data and save it into database as follows
protected void Button1_OnClick(object sender, EventArgs e)
{
AjaxControlToolkit.TabContainer tabContainer1 = fvwTenderProposal.FindControl("tabContainer1") as AjaxControlToolkit.TabContainer;
if (tabContainer1 != null)
{
// For current tab panel
AjaxControlToolkit.TabPanel tabPanel1 = tabContainer1.FindControl("tabPanel1") as AjaxControlToolkit.TabPanel;
if (tabPanel1 != null)
{
TextBox txtBox1= tabPanel1.FindControl("txtBox1") as TextBox;
if (txtBox1!= null)
{
string strTextBox1 = txtBox1.Text;/* Here I am not getting data;
Instead if I do not call any client script like ‘disabledTabControls()’ for
disabling controls, then here I am getting data properly.
So here I am facing problem. */
}
}
}

/* code for save ‘strTextBox1, etc’ into database */
}

Hope you understand my problem and let me suggest some solution.

Regards,
Rakesh
QuestionMessage Removed Pin
24-Feb-10 1:06
Morgs Morgan24-Feb-10 1:06 
AnswerRe: ASP.NET website Pin
Gaurav Dudeja India24-Feb-10 1:12
Gaurav Dudeja India24-Feb-10 1:12 
AnswerRe: ASP.NET website Pin
Hannes Smit24-Feb-10 1:31
Hannes Smit24-Feb-10 1:31 
AnswerRe: ASP.NET website Pin
Morgs Morgan24-Feb-10 1:49
Morgs Morgan24-Feb-10 1:49 
QuestionSql query Pin
Amit Patel198524-Feb-10 1:06
Amit Patel198524-Feb-10 1:06 
AnswerRe: Sql query Pin
Gaurav Dudeja India24-Feb-10 1:15
Gaurav Dudeja India24-Feb-10 1:15 
AnswerRe: Sql query Pin
R. Giskard Reventlov24-Feb-10 1:28
R. Giskard Reventlov24-Feb-10 1:28 
GeneralRe: Sql query Pin
Amit Patel198524-Feb-10 1:35
Amit Patel198524-Feb-10 1:35 
GeneralRe: Sql query Pin
R. Giskard Reventlov24-Feb-10 2:21
R. Giskard Reventlov24-Feb-10 2:21 
QuestionWhich is best: Attached DB (App_Data) and Local DB (MSSQLEXPRESS), Precompiled or XCopy? Pin
tunsten23-Feb-10 21:41
tunsten23-Feb-10 21:41 
Questionhi selvamglobal, are u there? i hav a question for u Pin
diyaa_0823-Feb-10 21:35
diyaa_0823-Feb-10 21:35 
QuestionHow to Save the webpage in pdf format using dotnet1.1 Pin
K.Safvi23-Feb-10 19:12
K.Safvi23-Feb-10 19:12 
AnswerRe: How to Save the webpage in pdf format using dotnet1.1 Pin
Gaurav Dudeja India23-Feb-10 19:16
Gaurav Dudeja India23-Feb-10 19:16 
GeneralRe: How to Save the webpage in pdf format using dotnet1.1 Pin
K.Safvi23-Feb-10 19:42
K.Safvi23-Feb-10 19:42 
QuestionCapturing Radio button and dropdown value in postback Pin
deltadmz23-Feb-10 18:59
deltadmz23-Feb-10 18:59 
AnswerRe: Capturing Radio button and dropdown value in postback Pin
Gaurav Dudeja India23-Feb-10 19:05
Gaurav Dudeja India23-Feb-10 19:05 
QuestionDisabling the Submit after once Click in MVC asp.NEt application Pin
Sandeep Akhare23-Feb-10 18:40
Sandeep Akhare23-Feb-10 18:40 

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.