|
Hi,
then here is an example on how to do it. Just replace the "((double)0.123)" by your variable and modify the rest according to your needs:
<ItemTemplate>
<asp:Label runat="server" Text='<%# ((double)0.123).ToString("N") %>'></asp:Label>
</ItemTemplate>
|
|
|
|
|
|
Please try as below
Textbox.Text.ToString("0.00");
Hope this will work for you.
|
|
|
|
|
I have a div with a background image in my master page, but I can't see this image in the inherited pages.
maybe it happens because the master page and the pages are placed in different directories...
what can I do?
|
|
|
|
|
Try to specify the background image path using ResolveURL on master page like this
src="<%=ResolveUrl("~/images/test.png")%>"
|
|
|
|
|
I have a Gridview in my form and I use SqlDataSource to fill the Grid. I have an Edit button also in the Gridview to Edit data.
The problem is while clicking on Edit, the dropdownlist in the Gridview
is not displaying the item selected, but going to the first item of the dropdownlist. How should I make the selected item
displayed while click on Edit?
Please find below my code:
<asp:GridView ID="grdDTCCRics" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False"
DataKeyNames="REDCODE"
OnRowDeleted="grdDTCCRics_RowDeleted"
OnRowUpdated="grdDTCCRics_RowUpdated"
OnRowUpdating="grdDTCCRics_RowUpdating"
OnRowEditing="grdDTCCRics_RowEditing"
OnPageIndexChanged="CmdCancel_Click"
DataSourceID="SqlDataSource1">
<RowStyle Height="20px" HorizontalAlign="Center" VerticalAlign="Middle" />
<EmptyDataRowStyle Height="20px" HorizontalAlign="Center" VerticalAlign="Middle" />
<Columns>
<asp:BoundField DataField="REDCODE" HeaderText="REDCODE" ReadOnly="True" SortExpression="REDCODE" />
<asp:TemplateField HeaderText="RIC" SortExpression="RIC">
<EditItemTemplate>
<asp:TextBox ID="RICTextBox" runat="server" Text='<%# Eval("RIC") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="RICLabel"
runat="Server" Text='<%# Eval("RIC") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="REGIONCODE" SortExpression="REGIONCODE">
<EditItemTemplate>
<asp:DropDownList ID="RegionCodeList" runat="Server">
<asp:ListItem Text="AM" Value="1"></asp:ListItem>
<asp:ListItem Text="US" Value="2"></asp:ListItem>
<asp:ListItem Text="EU" Value="3"></asp:ListItem>
<asp:ListItem Text="JP" Value="4"></asp:ListItem>
<asp:ListItem Text="AS" Value="5"></asp:ListItem>
<asp:ListItem Text="OF" Value="6"></asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblcountry" runat="server" Text = '<%# Eval("REGIONCODE") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:CommandField ShowEditButton="True" ValidationGroup="Upd" ButtonType="Button" HeaderText="EDIT" >
<ControlStyle Height="22px" Width="50px" />
</Columns>
</GridView>
When I tried to get the editrowindex, the object lstRegion is coming as null in the rowEditing eventhandler. Any idea how to display it properly? Please help.
Thanks
meeram395.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Hi,
maybe there is a simpler solution, but you could use the rowdatabound event
of your gridview and set the index of the dropdown there appropriatly (if in edit mode).
Here is an example (which is using c1gridview, just replace it by the microsoft one and
check the if conditions, they may be slightly different)
protected void grdRoomTypes_RowDataBound(object sender, C1.Web.UI.Controls.C1GridView.C1GridViewRowEventArgs e)
{
if (e.Row.RowType == C1.Web.UI.Controls.C1GridView.C1GridViewRowType.DataRow)
{
if ((e.Row.RowState & C1.Web.UI.Controls.C1GridView.C1GridViewRowState.Edit) > 0)
{
TimeSchemeEditor editor = (TimeSchemeEditor)e.Row.FindControl("timeSchemeEditor");
editor.TimeScheme = (ServiceDirectoryRoomTypeItem)e.Row.DataItem;
}
else
{
TimeSchemeViewer viewer = (TimeSchemeViewer)e.Row.FindControl("timeSchemeViewer");
viewer.TimeScheme = (ServiceDirectoryRoomTypeItem)e.Row.DataItem;
}
}
}
|
|
|
|
|
Thanks for the reply. However that code is not working. Following is my RowDataBound Event:
protected void grdTCCRics_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
if ((e.Row.RowState & DataControlRowState.Edit) > 0)
{
Label lblRegion = (Label)e.Row.FindControl("lblcountry");
if (lblRegion != null)
{
DropDownList ddlRegion = (DropDownList)e.Row.FindControl("RegionCodeList");
if (ddlRegion != null)
{
ddlRegion.SelectedItem.Text = lblRegion.Text.Trim();
}
}
}
}
}
The Label control lblRegion is coming as null. So how will I get the value? Please help.
Thanks
meeram395.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
I guess in your markup, you have an edititemtemplate and an itemtemplate, is that right?
In your rowdatabound event, it depends on the current rowstate, which controls exist and which not. For example, if you have a label in your itemtemplate and a dropdown in your
edititemtemplate, then the label will be null if rowstate == edit and the other way around.
So first check if RowState == Edit and then find your dropdown. you will not find the
controls shown during "view" rowstate (dont read viewstate:P).
GL
|
|
|
|
|
Ok. Thanks a lot Michael. I have EditItemTemplate and ItemTemplate. As you said, I checked now only the dropdownlist and I'm getting the object. But how will I fix the selected value. Still it is displaying only the first value.
<asp:TemplateField HeaderText="REGIONCODE" SortExpression="REGIONCODE">
<EditItemTemplate>
<asp:DropDownList ID="RegionCodeList" runat="Server" AppendDataBoundItems="true" >
<asp:ListItem Text="AM" ></asp:ListItem>
<asp:ListItem Text="US" ></asp:ListItem>
<asp:ListItem Text="EU"></asp:ListItem>
<asp:ListItem Text="JP" ></asp:ListItem>
<asp:ListItem Text="AS" ></asp:ListItem>
<asp:ListItem Text="OF" ></asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblcountry" runat="server" Text = '<%# Eval("REGIONCODE") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
As per the above, it always show the selected value as 'AM' rather than 'EU' which is the actual value selected. Following is my RowDataBoundEvent.
protected void grdTCCRics_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
if ((e.Row.RowState & DataControlRowState.Edit) > 0)
{
DropDownList ddlRegion = (DropDownList)e.Row.FindControl("RegionCodeList");
if (ddlRegion != null)
{
string strregion = ddlRegion.SelectedItem.Text;
}
}
}
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Hi,
you have to set the SelectedIndex of your DropDownList in this event (according
to the value of your DataItem)
Try something like this:
protected void grdTCCRics_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
if ((e.Row.RowState & DataControlRowState.Edit) > 0)
{
DropDownList ddlRegion = (DropDownList)e.Row.FindControl("RegionCodeList");
if (ddlRegion != null)
{
ListItem item = ddlRegion.Items.FindByValue("VALUEFROMDATAITEM");
ddlRegion.SelectedIndex = ddlRegion.Items.IndexOf(item);
}
}
}
}
I hope this helps
|
|
|
|
|
I got the solution. Below is the solution. It will be nice if it helps somebody else.
I have added the following along with the dropdownlist:
SelectedValue='<%# Bind("REGIONCODE") %>'
So the code will be:
<asp:TemplateField HeaderText="REGIONCODE" SortExpression="REGIONCODE">
<EditItemTemplate>
<asp:DropDownList ID="RegionCodeList" runat="Server" AppendDataBoundItems="true" SelectedValue='<%# Bind("REGIONCODE") %>' >
<asp:ListItem Text=""></asp:ListItem>
<asp:ListItem Text="AM" ></asp:ListItem>
<asp:ListItem Text="US" ></asp:ListItem>
<asp:ListItem Text="EU"></asp:ListItem>
<asp:ListItem Text="JP" ></asp:ListItem>
<asp:ListItem Text="AS" ></asp:ListItem>
<asp:ListItem Text="OF" ></asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblcountry" runat="server" Text = '<%# Eval("REGIONCODE") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
That's it. I have tested so many times. It didn't give any issues.
Thanks
meeram395.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
oh dear god, now THAT is simpler=). Thanks
|
|
|
|
|
I have needed to insert and update DateTime Field in MSSQL Database Table. I am using Text Querry. My input Control is TextBox where the format of Date is "dd/MM/yyyy". In Database it should be save as "yyyy-MM-dd". I have used a Function to convert Date Format as:
public static string ConvertToDate(string pstr)
{
string result=string.empty;
try
{
result = "'" + Convert.ToDateTime(str).ToString("yyyy/MM/dd") + "'";
}
catch
{
result = System.Data.SqlTypes.SqlDateTime.Null.ToString();
}
}
The string Data Returned after conversion is used for insertion.
I I execute Application Visual studio by compiling it works well. but when i make virtual Directory of this application and run this through browser it doesn't work.
How can i solve this issue.
|
|
|
|
|
As far as I know there should not be any case for not working the same code from virtual directory if it works from visual studio.
Are you sure you set the correct path while configuring the virtual directory?
|
|
|
|
|
Perhaps providing us some error messages from your application can help us to figure out what the problem is.
|
|
|
|
|
Error when using virtual Directory is:
Exception Details: System.FormatException: String was not recognized as a valid DateTime.
Source Error:
Line 298: if (str.ToString().Trim().Length > 0)
Line 299: {
Line 300: result = "'" + Convert.ToDateTime(str).ToString("MM/dd/yyyy") + "'";
Line 301: }
Line 302: else
But it is ok from Visual Studio.
|
|
|
|
|
|
Are you sure the current culture is the same between IIS and Visual Studio...?
Try outputting System.Globalization.CultureInfo.CurrentCulture.ToString() on both sites and see if there are any differences.
If this is different, then Convert.ToDateTime(str) will complain.
modified on Tuesday, June 8, 2010 4:16 AM
|
|
|
|
|
This problem is solved after changing Globalization setting in Web.Config File. Previously i had used en_US culture, Now it is changed to en_GB then problem is solved.
Thank you all for yours remarkable helps.
|
|
|
|
|
This might be a culture problem
Try Converting using those 2 options
result = Left(Convert.ToString(CDate(pstr), New CultureInfo("ja-JP")), 10)
or
if your date in Dd/MM/YYYY format then try using very basic method like
result = Strings.Right(pstr, 4) & "-" & Strings.Right(Strings.Left(pstr, 5), 2) & "-" & Strings.Left(pstr, 2)
|
|
|
|
|
hi iam using asp.net with c#
in my client form iam using tabcontainer control with update pannel
in tab container iam having dropdownlist ,onsectedindex changed event i have to visble and unvisble the text box control for that iam getting erroe can you correct my code
<cc1:TabContainer ID="infotab" runat="server" ActiveTabIndex="1" >
<cc1:TabPanel ID="TabBranchpanel" runat="server">
<HeaderTemplate> معلومات الفرع</HeaderTemplate>
<ContentTemplate>
<fieldset><legend> معلومات الفرع</legend>
<table><tr><td>العقد رقم:</td><td><asp:TextBox ID="txtcontractno" runat="server" TabIndex="15"></asp:TextBox></td><td><asp:RequiredFieldValidator ID="reqcontractno" runat="server" ControlToValidate="txtcontractno" ErrorMessage="عقد لا يمكن لا يكون فارغا">*</asp:RequiredFieldValidator><cc1:ValidatorCalloutExtender ID="cccontractno" runat="server" TargetControlID="reqcontractno" Enabled="True" ></cc1:ValidatorCalloutExtender><cc1:TextBoxWatermarkExtender ID="wwcontractno" runat="server" TargetControlID="txtcontractno" WatermarkText="أدخل رقم العقد" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td><td style="width: 103px; height: 38px;">منطقة:</td><td style="height: 38px"><asp:DropDownList ID="ddlRegions" runat="server"><asp:ListItem Value="Central">مركزي</asp:ListItem>
<asp:ListItem Value="Western">الغربي</asp:ListItem>
<asp:ListItem Value="Eastern">الشرقية</asp:ListItem>
<asp:ListItem Value="Northern">شمالي</asp:ListItem>
<asp:ListItem Value="Southern">جنوبي</asp:ListItem>
</asp:DropDownList></td></tr>
<tr><td style="width: 103px; height: 12px;">مدينة:</td><td style="height: 12px"><asp:TextBox ID="txtcity" runat="server" TabIndex="5"></asp:TextBox></td><td style="height: 12px"><cc1:TextBoxWatermarkExtender ID="wwcity" runat="server" TargetControlID="txtcity" WatermarkText="أدخل مدينة" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td><td style="width: 103px">منطقة:</td><td><asp:TextBox ID="txtarea" runat="server" TabIndex="6"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="wwarea" runat="server" TargetControlID="txtarea" WatermarkText="دخول منطقة" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td><td style="width: 103px">ملاحظات:</td><td><asp:TextBox ID="txtaddress" runat="server" TextMode="MultiLine" TabIndex="8"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="wwaddress" runat="server" TargetControlID="txtaddress" WatermarkText=" ملاحظات" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td></tr>
<tr><td style="height: 96px">تاريخ البدء:</td><td style="height: 96px"><asp:TextBox ID="txtstartdate1" runat="server" TabIndex="18"></asp:TextBox></td><td style="height: 96px"><cc1:CalendarExtender ID="calstartdate" runat="server" Enabled="True" TargetControlID="txtstartdate1"></cc1:CalendarExtender><cc1:TextBoxWatermarkExtender ID="wwstartdate" runat="server" TargetControlID="txtstartdate1" WatermarkText="حدد التاريخ..." Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender><asp:RequiredFieldValidator ID="reqfildstart1" runat="server" ErrorMessage="تاريخ البدء لا يمكن أن تكون فارغة" ControlToValidate="txtstartdate1">*</asp:RequiredFieldValidator></td><td>نهاية التاريخe:</td><td><asp:TextBox ID="txtEnd" runat="server" TabIndex="19"></asp:TextBox></td><td><cc1:CalendarExtender ID="Calenddate" runat="server" Enabled="True" TargetControlID="txtEnd"></cc1:CalendarExtender><cc1:TextBoxWatermarkExtender ID="wwwenddate" runat="server" TargetControlID="txtEnd" WatermarkText="حدد التاريخ..." Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender><asp:RequiredFieldValidator ID="Reqenddate" runat="server" ErrorMessage="يمكن أن لا تكون نهاية التاريخ فارغ" ControlToValidate="txtEnd">*</asp:RequiredFieldValidator><cc1:ValidatorCalloutExtender ID="ccbranch" runat="server" TargetControlID="reqfildstart1" Enabled="True"></cc1:ValidatorCalloutExtender><cc1:ValidatorCalloutExtender ID="Validatorenddate" runat="server" TargetControlID="Reqenddate" Enabled="True"></cc1:ValidatorCalloutExtender></td><td>تذكير</td><td><asp:DropDownList ID="ddlcontractreminder" runat="server" TabIndex="20">
<asp:ListItem Value="5">5 days</asp:ListItem>
<asp:ListItem Value="10">10 days</asp:ListItem>
<asp:ListItem Value="15">15 days</asp:ListItem>
</asp:DropDownList></td><td style="width: 103px; height: 12px;">نوع تذكير:</td><td><asp:DropDownList ID="ddlremindertype" runat="server">
<asp:ListItem Value="1">PerMonth</asp:ListItem>
<asp:ListItem Value="3">3 Months</asp:ListItem>
<asp:ListItem Value="6">6 Months</asp:ListItem>
<asp:ListItem Value="12">Annually</asp:ListItem>
</asp:DropDownList></td></tr>
<tr><td>Picture:</td><td><asp:Image ID="branchpicture" runat="server" AlternateText="BranchPicture" /></td></tr>
<tr><td><asp:FileUpload ID="FileUpload1" runat="server" /></td></tr>
<tr><td >البريد الإلكتروني:</td><td><asp:TextBox ID="txtemail12" runat="server" TabIndex="17" TextMode="MultiLine"></asp:TextBox></td><td><asp:RequiredFieldValidator ID="reqemail12" runat="server" ControlToValidate="txtemail12" ErrorMessage="يمكن أن البريد الإلكتروني لا يمكن فارغة">*</asp:RequiredFieldValidator><cc1:ValidatorCalloutExtender ID="cccmail" runat="server" TargetControlID="reqemail12" Enabled="True"></cc1:ValidatorCalloutExtender><cc1:TextBoxWatermarkExtender ID="wwmail" runat="server" TargetControlID="txtemail12" WatermarkText="أدخل معرف البريد الإلكتروني" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td><td>دفع المبلغ</td><td><asp:TextBox ID="txtpayamount" runat="server"></asp:TextBox></td><td><asp:RequiredFieldValidator ID="reqpayamount" runat="server" ControlToValidate="txtpayamount" ErrorMessage="يمكن دفع المبلغ لا يكون فارغا">*</asp:RequiredFieldValidator><cc1:ValidatorCalloutExtender ID="cccpayment" runat="server" TargetControlID="reqpayamount" Enabled="True"></cc1:ValidatorCalloutExtender><cc1:TextBoxWatermarkExtender ID="wwwpayment" runat="server" TargetControlID="txtpayamount" WatermarkText="أدخل المبلغ" WatermarkCssClass="textcss" Enabled="True"></cc1:TextBoxWatermarkExtender></td><td>شركة تأجير:</td><td><asp:TextBox ID="txtrentingcompany" runat="server" TabIndex="16"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="wwwrentingco" runat="server" WatermarkText="دخول شركة تأجير" TargetControlID="txtrentingcompany" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td></tr>
</table>
</fieldset>
</ContentTemplate>
</cc1:TabPanel>
<asp:UpdatePanel ID="pnlbranch" runat="server"><ContentTemplate>
<cc1:TabPanel ID="tabitinfo" runat="server">
<HeaderTemplate>تقنية المعلومات</HeaderTemplate>
<ContentTemplate>
<fieldset><legend>تقنية المعلومات</legend>
<table><tr><td>اتصال:</td><td><asp:DropDownList ID="ddlconnectivity" runat="server" AutoPostBack="false" OnSelectedIndexChanged="ddlconnectivity_SelectedIndexChanged"><asp:ListItem Value="DSL">DSL</asp:ListItem><asp:ListItem Value="Connect">Connect</asp:ListItem><asp:ListItem Value="Not Available">Not Available</asp:ListItem><asp:ListItem Value="Others">Others</asp:ListItem></asp:DropDownList>
</td></tr>
<tr><td>حساب:</td><td><asp:TextBox ID="txtconnectaccount" runat="server" TabIndex="1"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txtconnectaccount" WatermarkText="أدخل معلومات الاتصال" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td></tr>
<tr><td colspan="3" style="height: 167px">
<fieldset><legend>نقاط البيع</legend>
<table><tr><td>أجهزة الكمبيوتر:</td><td><asp:TextBox ID="txtcomputers" runat="server" TabIndex="1"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" runat="server" TargetControlID="txtcomputers" WatermarkText="أدخل أي من أجهزة الكمبيوتر" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td><td>الشاشة:</td><td><asp:TextBox ID="txtmonitors" runat="server" TabIndex="1"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender3" runat="server" TargetControlID="txtmonitors" WatermarkText=" الشاشة" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td></tr>
<tr><td>طابعات:</td><td><asp:TextBox ID="txtprinters" runat="server" TabIndex="1"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender4" runat="server" TargetControlID="txtprinters" WatermarkText="أدخل أي من الطابعات" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td><td>الماسح الضوئي:</td><td><asp:TextBox ID="txtscanner" runat="server" TabIndex="1"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender5" runat="server" TargetControlID="txtscanner" WatermarkText="أدخل أي من الماسحات الضوئية" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td></tr>
</table>
</fieldset></td></tr>
</table>
</fieldset>
</ContentTemplate>
</cc1:TabPanel>
</ContentTemplate>
<Triggers >
<asp:AsyncPostBackTrigger ControlID="ddlconnectivity" EventName="SelectedIndexChanged"/>
</Triggers>
</asp:UpdatePanel>
<cc1:TabPanel ID="tablicence" runat="server">
<HeaderTemplate>الترخيص</HeaderTemplate>
<ContentTemplate>
<fieldset><legend>معلومات الترخيص</legend>
<table>
<tr><td> رخصة:</td><td><asp:TextBox ID="txtlicence" runat="server" TabIndex="23"></asp:TextBox></td><td><asp:RequiredFieldValidator ID="reqlicence" runat="server" ControlToValidate="txtlicence" ErrorMessage="الرخصة لا يمكن لا يكون فارغا">*</asp:RequiredFieldValidator><cc1:ValidatorCalloutExtender ID="cclicence" runat="server" TargetControlID="reqlicence" Enabled="True" ></cc1:ValidatorCalloutExtender><cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender6" runat="server" TargetControlID="txtlicence" WatermarkText="أدخل رقم الترخيص" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td><td>البريد الإلكتروني هوية:</td><td><asp:TextBox ID="txtlicenceemail" runat="server" TabIndex="24" TextMode="MultiLine"></asp:TextBox></td><td><asp:RequiredFieldValidator ID="reqlicencemail" runat="server" ControlToValidate="txtlicenceemail" ErrorMessage="يمكن أن البريد الإلكتروني معرف لا تكون فارغة">*</asp:RequiredFieldValidator><cc1:ValidatorCalloutExtender ID="Calloutlicencemail" runat="server" TargetControlID="reqlicencemail" Enabled="True"></cc1:ValidatorCalloutExtender><cc1:TextBoxWatermarkExtender ID="wwlicenceemail" runat="server" TargetControlID="txtlicenceemail" WatermarkText="أدخل معرف البريد الإلكتروني" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td></tr>
<tr><td style="height: 40px">تاريخ البدء:</td><td style="height: 40px"><asp:TextBox ID="txtlicstartdate" runat="server" TabIndex="25"></asp:TextBox></td><td style="height: 40px"><cc1:CalendarExtender ID="cclicstartdate" runat="server" Enabled="True" TargetControlID="txtlicstartdate"></cc1:CalendarExtender><cc1:TextBoxWatermarkExtender ID="wwlicstartdate" runat="server" TargetControlID="txtlicstartdate" WatermarkText="حدد التاريخ..." Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender><asp:RequiredFieldValidator ID="reqlicsdate" runat="server" ErrorMessage="يمكن الترخيص تاريخ البدء لا تكون فارغة" ControlToValidate="txtlicstartdate">*</asp:RequiredFieldValidator></td><td>نهاية التاريخ:</td><td><asp:TextBox ID="txtlicenddate" runat="server" TabIndex="27"></asp:TextBox></td><td><cc1:CalendarExtender ID="ccclicenddate" runat="server" Enabled="True" TargetControlID="txtlicenddate"></cc1:CalendarExtender><cc1:TextBoxWatermarkExtender ID="wwlicenddate" runat="server" TargetControlID="txtlicenddate" WatermarkText="حدد التاريخ..." Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender><cc1:ValidatorCalloutExtender ID="ccclicend" runat="server" TargetControlID="reqlicsdate" Enabled="True"></cc1:ValidatorCalloutExtender><cc1:ValidatorCalloutExtender ID="Validatorlicenenddate" runat="server" TargetControlID="reqlicenddate" Enabled="True"></cc1:ValidatorCalloutExtender><asp:RequiredFieldValidator ID="reqlicenddate" runat="server" ControlToValidate="txtlicenddate" ErrorMessage="يمكن الترخيص نهاية التاريخ لا يمكن فارغة">*</asp:RequiredFieldValidator></td><td>تذكير:</td><td><asp:DropDownList ID="ddllicence" runat="server" TabIndex="28">
<asp:ListItem Value="5">5 days</asp:ListItem>
<asp:ListItem Value="10">10 days</asp:ListItem>
<asp:ListItem Value="15">15 days</asp:ListItem>
</asp:DropDownList></td></tr>
</table>
</fieldset>
</ContentTemplate>
</cc1:TabPanel>
<cc1:TabPanel ID="tabsubcontract" runat="server">
<HeaderTemplate>معلومات العقد الفرعي</HeaderTemplate>
<ContentTemplate><fieldset><legend>معلومات شبه العقد</legend>
<table>
<tr><td> العقود الفرعية:</td><td><asp:TextBox ID="txtsubcontractno" runat="server" TabIndex="30"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="wwwsubcontract" runat="server" TargetControlID="txtsubcontractno" WatermarkText="أدخل عدد الباطن" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td><td >البريد الإلكتروني:</td><td><asp:TextBox ID="txtsubcontractmail" runat="server" TabIndex="31" TextMode="MultiLine"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="wwsubcontractmail" runat="server" TargetControlID="txtsubcontractmail" WatermarkText="أدخل معرف البريد الإلكتروني" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td></tr>
<tr><td>تاريخ البدء:</td><td><asp:TextBox ID="txtsubstartdate" runat="server" TabIndex="32"></asp:TextBox></td><td><cc1:CalendarExtender ID="cccsubstartdate" runat="server" Enabled="True" TargetControlID="txtsubstartdate"></cc1:CalendarExtender><cc1:TextBoxWatermarkExtender ID="wwwsubcontractstartdate" runat="server" TargetControlID="txtsubstartdate" WatermarkText="حدد التاريخ..." Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td><td>نهاية التاريخ:</td><td><asp:TextBox ID="txtsubenddate" runat="server" TabIndex="33"></asp:TextBox></td><td><cc1:CalendarExtender ID="CalendarExtender2" runat="server" Enabled="True" TargetControlID="txtsubenddate"></cc1:CalendarExtender><cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender7" runat="server" TargetControlID="txtsubenddate" WatermarkText="حدد التاريخ..." Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td><td>تذكير:</td><td><asp:DropDownList ID="ddlsubcontractreminder" runat="server" TabIndex="34">
<asp:ListItem Value="5">5 days</asp:ListItem>
<asp:ListItem Value="10">10 days</asp:ListItem>
<asp:ListItem Value="15">15 days</asp:ListItem>
</asp:DropDownList></td></tr>
</table>
</fieldset></ContentTemplate>
</cc1:TabPanel>
<cc1:TabPanel ID="tabcontactinfo" runat="server">
<HeaderTemplate>معلومات الاتصال</HeaderTemplate>
<ContentTemplate>
<fieldset><legend>معلومات الاتصال</legend>
<table>
<tr><td style="width: 103px">مدير فرع:</td><td><asp:TextBox ID="txtbranchmanager" runat="server" TabIndex="4"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="wwmanager" runat="server" TargetControlID="txtbranchmanager" WatermarkText="أدخل اسم المدير" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td><td style="width: 103px">رقم الهاتف:</td><td><asp:TextBox ID="txtphoneno123" runat="server" TabIndex="9"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="wwphone1" runat="server" TargetControlID="txtphoneno123" WatermarkText="أدخل رقم الهاتف" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td></tr>
<tr><td style="width: 103px">رقم الجوال:</td><td><asp:TextBox ID="txtmobileno12" runat="server" TabIndex="10"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="wwmobile1" runat="server" TargetControlID="txtmobileno12" WatermarkText="أدخل رقم الجوال" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td><td >البريد الإلكتروني هوية:</td><td><asp:TextBox ID="txtbranchmanageremail" runat="server" TabIndex="17" TextMode="MultiLine"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender8" runat="server" TargetControlID="txtbranchmanageremail" WatermarkText="أدخل معرف البريد الإلكتروني" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td></tr>
</table>
</fieldset>
</ContentTemplate>
</cc1:TabPanel>
</cc1:TabContainer>
|
|
|
|
|
Can you specify the exception that you are getting?
Regards,
Jamil
|
|
|
|
|
Hi,
I love to learn about HTTP as much as possible. From a long time, I am hearing that, I should use SSL when passing sensitive data. Because, a man in the middle can capture the plain text sensitive data while I am sending the data from my browser to a website. Ok, but I did not find any article talking about how those 'man in the middle' people capture the data !! I searched in google, did not find any! Looks like I am protecting my data using SSL against a mechanism of attack and the mechanism is not available to public. I am highly curious to know about it. Can anyone please give me some links / articles about this ?
By the way, it is just for learning intention. Should it be rude or indecent to discuss about this topic or if it is a sensitive matter, then, you wont have to tell me. But please at least tell me that if it is legal or illegal to learn about it !!
|
|
|
|
|