Custom Server Controls :: How To Make Hijri Calendar (arabic One)
Jun 23, 2010
how can i make hijri calender(arabic one) i prefer using custom control i tried Telerik but it has problem it display monthes in hijri but year still 2010 ,2009 and so on,i aslo want the user to select date (hijri) from calender and can not type on it just select between date and save it in database
View 3 Replies
Similar Messages:
Jan 11, 2013
i am making a web form in which there is a calender as per requirement i want to display English calendar with hijri calendar in calendar control in asp.net.
View 1 Replies
Oct 2, 2012
I am working on a project where i am required to selected a date(Hijri) using calendar control in to textbox ....
View 1 Replies
Mar 18, 2010
As i am using asp validation and they are working fine,my next issue is how to make appear the requiredfield validator into arabic as well,because i am developing multilanguage webisite n now how can i make the error message to be appeared in arabic when
the arabic button is selected
< asp:RequiredFieldValidator
ID="RequiredFieldValidator1"
runat="server" [code]...
View 8 Replies
May 3, 2010
i want to convert from Hijri date to Gregorian and vise verse i tried all method but all leds me to non correct hijri date
for example -->27-6-2010 corsepponding hijri date is 15 -7-1431
but all method say that its 16-7-1431
anyone can tell me how can i slove this bug?? as windows dont see correct hijri date
i saw this hijri calender converstion is right how can i make one like this?
[URL]
View 3 Replies
Dec 16, 2010
This is my first "request for help" post - I've spent the past few weeks helping others, so I'm hoping someone can shed some light here.I've dealt with server controls before, so it's not new to me, but it was some time ago and I'm a bit rusty. I have an inherited calendar control, that works fine:
[Code]....
I've overriden the Render method, hoping to be able to modify the HTML output of the control - I want to hide the back arrow if the Month & Year in MinDate is reached in the calendar, and the same goes for MaxDate and the forward arrow.On top of this, I want to be able to display icons in the day cells, under certain data-bound conditions. Once I've figured one out, I'm sure I'll be able to work the other one out.Are there any other methods, events or properties more suitable for this? Are there any other controls that do what I'm looking for that I've maybe overlooked?I'm using C#.Net 4.0 Webforms - it's a very small app, so I've not used MVC etc... just a few LINQ queries to the database.
View 2 Replies
Jul 26, 2010
I'm creating a custom server control which needs to take in a root-relative path for one of it's properties. I use the UrlProperty, but when I select a file in the markup, the selected path doesn't inlcude the the "~/". I'd like to mimic the behavior of a hyperlink. So let's say I have this:
<asp:HyperLink ID="HyperLink1" NavigateUrl
When I type in an equals sign after the NavigateUrl property, intellisense pops open a URL picker and I can pick from any page to produce this code:
<asp:HyperLink ID="HyperLink1" NavigateUrl="~/default.aspx"
this code has the "~/" in front. When I use my control, I have this:
<cc1:TestControl ID="TestControl1" Url="default.aspx"
the C# code has this property:
[UrlProperty]
public string Url { get; set; }
Does anyone know how I can make the "~/" be placed in front to make a root-relative path?
View 3 Replies
Nov 27, 2010
I have created a custom control that implements Templates (based on Panel controls) ... I can do a FindControl to locate imbedded controls. This allows me to get and set values in the imbedded controls, but I want to be able to reference the imbedded controls like they are properties of the associated panel. Here is a sample of how my custom control now works:
<cc:CustomControl ID="myCustomControl" runat="server">
<PanelTemplate>
<asp:TextBox ID="myTextBox" runat="server"></asp:TextBox>
</PanelTemplate>
</cc:CustomControl>
I can do the following (where my custom control has given the panel hosting the template the name "myPanel"):
Dim txt As TextBox = myCustomControl.myPanel.FindControl("myTextBox")
txt.Text = "Some text to put in TextBox"
What I want to do is:
myCustomControl.myPanel.myTextBox.Text = "Some text to put in TextBox"
View 2 Replies
Nov 17, 2010
I am using Framework 2.0, ASP.NET AJAX 1.0 and Visual Studio 2005.I am using 2 Ajax Calendar Extender in my page. I am using a text box and html image control and setting the TargetControlID to the test box id and the PopupButtonID to the image control name. When i click the first image the calendar pops up and without choosing a date if i click the second image the second calendar control opens on top of the first calendar control. Is there any way i can make the previous one disappear without choosing a date leaving the calendar control associated with the last image clicked.
View 2 Replies
Jul 14, 2010
on my page i have a time range printed in the format of 12:00 AM - 12:00 PM i have to display this appropriately for whatever culture the browser supplies. i'm having an issue with arabic (ar-ae): the am/pm indicator seems to change the text ordering for part of the string. the string has the right characters in the right places in memory, but shows them in a different order.
so for my start and end times, i have strings like 03:00 ص and 11:00 مand then i put them together like
string dummytext = t1string + " - " + t2string; when the page is written, the range is displayed as 03:00 ص - 11:00 م i've tried putting each piece in a Label control and wrapping everything in a div with dir="ltr" and haven't made any progress. this is happening in a table cell if it makes any difference.
View 2 Replies
Jan 3, 2011
Hope this is the correct forum for this question. I am using VWD 2010 an have a web project and get the following error upon execution:
Parser Error Message: Unknown server tag 'custom:AjaxValidator'.
My code is as follows in the .cs file:
[Code]....
[Code]....
View 1 Replies
Aug 17, 2010
I want to make a textbox with a specific style, within this style a set of images as background parts, how can i attach these images to the custom control as whenever i take the .dll file and add it to the toolbar the images do not appear. So i tried to make them as resource files and their property as embedded in .resx file, so how to make the css style background image url to be linked to any of those image.
View 1 Replies
Mar 4, 2011
I've a ServerControl inherited from GridView. What is the way (best) to make AutogenerateColumns="false" by default in custome control.
but User still should have option to make it true any time.
View 2 Replies
Feb 24, 2011
If certain attributes on built-in ASP.NET controls aren't specified, then an exception will be thrown.
How do I do this on my custom user/server control?
View 2 Replies
Apr 4, 2010
I have a custom server control inheriting from CompositeControl. It consists of two RadioButtonlist controls that are rendered side by side in an html table. The number of ListItems in each RadioButtonList is not known until runtime. Depending on how many items each list contains, the RepeatColumns property of each list is set differently. To do this in the handler for the ItemDataBound event I need to get the count of ListItems in each RadioButtonList. How do I expose the Items.Count property of each internal RadioButtonList as a top-level property? I tried using a getter to return the count but this generates a compile-time error to the effect that the count cannot be assigned to--even though I have not created a setter.
Similarly, in the handler for the Submit event, I need to get the ClientID of each internal RadioButtonList to pass to a method that checks for data changes. How do I expose the ClientID of each component RadioButtonList as a top-level property?
I can of course index the Controls collection of the composite control to access the child control and read its properties--but that defeats the whole point of making a complex, independent custom server control.
View 1 Replies
Mar 22, 2011
I am trying to build a custom composite control, which allows me to add custom content to each child control. It's a similar concept to what you have with a GridView and TemplateColumn. The markup used to place the control on the page would end up being something like this:
[Code]....
I have the code below, which allows me to put that markup on the page without throwing any errors, and it renders all the correct HTML, except it doesn't render the contents of the ColumnTemplate. I have replaced the Render() code with a comment because it's quite long winded and doesn't add anything important here:
[Code]....
I have tried to follow examples on MSDN and other forums but I can't make this work. I think I'm missing the code to render the contents of the template, but I don't know how to hook that up.
View 1 Replies
Aug 20, 2010
i am new to technology so go easy on this post according to what i read from web there are 3 type of custom server controls 1 superclass2 composite 3 renderedi found video tutorial for superclass custom server control but couldnt find video tutials for other 2.lease forward me link for composite and rendered custom server controls video tutorial
View 1 Replies
May 17, 2010
I am creating custom server control. I have two classes in project. One is main class that render control and another will be used to render content based on condition.I just want to know how to render content from other classes in main class.For example. This isjust an example.My main class code
[Code]....
My TopLeftPane class
[Code]....
My page code on page load event
[Code]....
When I run the page, Header title always getting null. This is a just sample code. I will have more than 20 classes so I dont want to write a code in main class to render whole control.I hope all of you understand my problem.
View 3 Replies
Jul 28, 2010
Case : a templatefield Text Box created by class TemplateHandler and added to the composite
control Grid .how to bind it to the DataSource Object of the Grid Class ?
View 2 Replies
Oct 22, 2010
I have to use inline code for an aspx page and I need to use a custom server control that is defined in the same aspx page but the control does not get processed as a server control. it gets returned as is as static html tag.
View 3 Replies
Sep 13, 2010
How would I add a (dropdown) list of available values for a custom server control property?
(Just like 'Visible' property of most controls has valid values of 'True/False' and nothing else can be entered or selected)
View 3 Replies
Oct 19, 2010
I am creating a custom server control, and I am wanting to include a JavaScript file in the dll file when the control is built. I have tried suggestions from the following websites:[URL] But after following the directions, If I use firebug to see what errors show up, the JavaScript functions that are being called all say "goNext is not defined" which leads me to believe the JavaScript file is not being added correctly.
Some information on what my control looks like
I have the JavaScript File in a folder called Script. The namespace of the project is CustomControl, and the Name of the project is MaskedDateTextbox.
In my AssemblyInfo I have the following:
<Assembly: AssemblyVersion("1.0.*")>
View 24 Replies
Oct 4, 2010
is it posible to add client side functionality to a custom server control in vb.net?i am looking at msdn library and there is no code for vb :/ http://msdn.microsoft.com/en-us/library/aa719700%28v=VS.71%29.aspxI fount this on MSDN Library Adding Client Capabilities to a Web Server ControlWhat i'm trying to do is to add some client functionality to my control, so that you can get or set some properties/values on client side. From the above link i see that this is doable with Ajax Server Control, but i don't have it, i have Custom Server Control. Can i do this with Custom Server Control and how?
View 16 Replies
Dec 20, 2010
I've build a custom server control inheriting from WebControl. Basically it is a kind of button. All is working perfectly except one thing: the PostBackUrl is inoperative.
I probably forgot to implement something. Actually I just added the property PostBackUrl. Probably I should also implement an interface of call something.
View 4 Replies
Sep 29, 2010
i registered an image in AssemblyInfo.cs like this:
[Code]....
now i want to initialize that image in css file for background-image but it dose'nt work.
my css file is:
[Code]....
i also try with this :
[Code]....
View 3 Replies