|
In my code I added
TextBox txtOverschrijding = new TextBox();
txtOverschrijding.ID = "txtOverschrijding";
txtOverschrijding.CssClass = "DivWidth100px";
grdAlarmRegels.FooterRow.Cells[5].Controls.Add(txtOverschrijding);
AjaxControlToolkit.FilteredTextBoxExtender ftbe = new AjaxControlToolkit.FilteredTextBoxExtender();
ftbe.FilterType = AjaxControlToolkit.FilterTypes.Custom;
ftbe.FilterMode = AjaxControlToolkit.FilterModes.ValidChars;
ftbe.ValidChars = "1234567890.";
ftbe.TargetControlID = "txtOverschrijding";
If I look in the gridview in the footerrow. I see the TextBox but the filtering is not working. IS there a reason or have I forgot something?
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
You have added the textbox txtOverschrijding to the grdAlarmRegels.FooterRow.Cells[5].Controls collection.
You also need to the FilteredTextBoxExtender 'ftbe' to the same Controls collection.
Hope this will help you.
|
|
|
|
|
Oh yes...this helps thank you very much
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
Respected Sir
I have one doubt i have one tabcontainer and it contains 3 tabpanels in the bottom of the tabcontainer i used save button for save all the content But
my task is to apper next button in place of save that is my task please help me i am new to this work
|
|
|
|
|
Understanding your question is a bit more complex than learning asp.net.
Use the ActiveTab property to move between tabs. For example, To move to tab 3
TabContainer1.ActiveTab = 2;
Check this link[^].
modified on Thursday, May 28, 2009 11:20 AM
|
|
|
|
|
Hi I have a Menu on my aspx page with 9 menuitems.
A mUltiview aith 9 views is attached to this menu.
Now I need to give a different colour to each item in Menu.
the StaticMenuItemStyle is from a css.
Can U plz. tell me how I can change colour od menu items which are attached to Multiview.
Itz urgent.
|
|
|
|
|
If you want to change the color of a menu item, try the following workaround solution
string menuText = YourMenuId.Items[0].Text;
YourMenuId.Items[0].Text = "" + menuText + "";
you should have the following CSS style in your page
.style1
{
color: red;
}
|
|
|
|
|
Hi Ramesh,
Thanx.
I did try this code and even inserted the css in my css file..
doesn't seem to work....
I need to give different colours to 9 menuitems... totally baffled..
|
|
|
|
|
Sorry the HTML content was interprented in my previous post.
Try this.
string menuText = YourMenuId.Items[0].Text;
YourMenuId.Items[0].Text = "<span class='style1'>" + menuText + "<span>";
Put the following CSS style in your page
.style1
{
color: red;
}
</style>
|
|
|
|
|
hiii,
I like to generate the report using gridview.
In that report i am having EmpName,DependentName,RelationType,Email_id
what the matter is the gridview have to be in the style
EmpName DependentName RelationType Email_id
---------------------------------------------------------
John kamal father abc@dfg.com
-----------------------------------------------------------
Ashok Friend adg@sdf.com
-----------------------------------------------------------
Amit Friend adg@sdf.com
------------------------------------------------------------
In this way i have to get all the dependent names of the employees.
How i can make the style of gridview as above.
plz anyone help me in doin this...
Thanks in advance
|
|
|
|
|
hi,
there are lots of grid styles available in Auto Format. Check which style suits for you.
Padmanabhan
|
|
|
|
|
If you have a problem with griview design, Check this[^]
|
|
|
|
|
hii,
Not like that...
I want gridview in the format that john is the emp_name.
I want to get emp_name only in the first row of the gridview...
In the second row i should not get the empname have to move directly to
the dependent_name.
i.e in the second & third row the emp_name cell must be empty..
How i can get this..
plz help me
its very urgent
Thanks in advance
|
|
|
|
|
|
|
If you know how many cells to be merged then you could use this. But if you dont know how many cells to be merged, for example for an employee, no. of dependents will be differing.
So Declare a class global variable and in
GridView1_RowDataBound event, try this
if (str != e.Row.Cells[2].Text)
{
str = e.Row.Cells[2].Text;
}
else
{
e.Row.Cells[2].Text = "";
}
|
|
|
|
|
I need to put scroll bar in some region of my aspx page not on whole page.
I know it in HTML page, but I need to put in aspx page in asp.net.
Please reply me.
Thanks & regards,
Jay
|
|
|
|
|
Use ASP.NET Panel control to cover the region and set the ScrollBars property appropriately.
|
|
|
|
|
//you can use panel or div
//div
//panel
<asp:panel id="Panel1" scrollbars="Vertical" runat="server" style="OVERFLOW-Y: auto; overflow-x:hidden; HEIGHT:200PX; width:80%">
Padmanabhan
|
|
|
|
|
Hi,
you can do this by 3 ways:
1.Using Panel (Server Control)
2.using DIV Tag (HTML Tag)
3.using Iframe (HTMl Tag)
if you want to scroll in verticle/horizontol then you set height/width of above control
Farogh Haider
Web developer
|
|
|
|
|
Respected Sir
I Define One Usercontrol that Contains One AjaxCalendercontrol
And One TextBox in my Project I need Replacing The TextBox With Label then controltovalidate property is not working for label my task is replacing textbox with label please help me i wrote the following code
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="DateAjax.ascx.cs" Inherits="dotnetcode_UserControls_DateAjaxl" %>
<%@ Register Assembly="Validators" Namespace="Sample.Web.UI.Compatibility" TagPrefix="cc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<DIV class="divColLast">
<asp:TextBox ID="txt_Date" runat="server"></asp:TextBox><asp:ImageButton ID="ImgCalendar" runat="server" ImageUrl="~/dotnetcode/Images/Calendar_scheduleHS.png" CausesValidation="False" /><cc1:RequiredFieldValidator ID="Rfv" runat="server" ErrorMessage="<b>This Is Mandatory</b><br/>Please Select the Date" ControlToValidate="txt_Date" Display="None" SetFocusOnError="True"></cc1:RequiredFieldValidator>
<ajaxToolkit:calendarextender id="CE" runat="server" popupbuttonid="ImgCalendar" popupposition="Right"
targetcontrolid="txt_Date"></ajaxToolkit:calendarextender>
<ajaxToolkit:ValidatorCalloutExtender ID="VceRe" runat="server" TargetControlID="Rfv" HighlightCssClass="validatorCalloutHighlight">
</ajaxToolkit:ValidatorCalloutExtender></DIV>
|
|
|
|
|
Validation controls are used to validate input from users in a web page. Therefore it can be applied to user enterable/changeable fields like textbox, dropdownlist, listbox etc. But Label is a display field and the user cannot change the content of a lable directly. So you cannot use the validation control with Label.
|
|
|
|
|
A lot of places like to use automagic code to replace TextBoxes with labels in "read-only" view. The real magic is you can still submit changes to the labels if permissions have not been properly addressed. (And they usually aren't)
|
|
|
|
|
Hi,
I am new to asp.net,I would like to know whether my website hosted in the webserver affect other sites hosted in the same server?, I mean the resources used by the website is very high, Should i bother about the resource utilization by my site or it is the head ache of the Service Provider?
Plz help.
|
|
|
|
|
Subin Alex wrote: Should i bother about the resource utilization by my site or it is the head ache of the Service Provider?
As a best practice, you should try to minimize it.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|