How The Component Calendar (even Button) Is Implemented
Jul 11, 2010I was wondering if there's anybody that can give me an idea how the component Calendar (even button) is implemented. Do you know a place where I could see it?
View 1 RepliesI was wondering if there's anybody that can give me an idea how the component Calendar (even button) is implemented. Do you know a place where I could see it?
View 1 RepliesI have a question about YUI. I am using YUI calendar component in my website project. I insert the codes inside ASP as javascript. (like that [URL]) Now, i am about to hearing your questions, i am answering them immediately. Yes, this link explains how lo localize YUI calendar, but, it does not work for me. Because, it is static. I want to localize it dynamically. It should depend on user's browser language. For example, if the user's browser language is Deutsch, it is supposed to display 'samstag', if it is English, it is supposed to display 'saturday'.
View 2 RepliesI'm looking for a control I can use in an ASP.NET app for scheduling work shifts. My primary requirement is to have locations on a y-axis, dates on the x-axis, and then at each intersection, have a block divided into shifts, and each shift containing a short (1-3) list of employees working that shift.
View 2 RepliesAjax enable the classic ASP:Calender server component?
View 1 RepliesAnyone know if it is possible to change Calendar component's header & dayheader texts in code?
I know it is possible with pages LCID setting but can it be done manually?
Reason i need to do this is that i have translation functionality in page and i'd like the calendar to be able translate headers same way. I dont want to change the pages LCID with evry language as i want to keep number and day formats same with all languages.
I am trying to stop the data flow when certain conditions happen in the script component. Like if a row in the data set has an invalid date, I dont want that dataset to be inserted in the tables or go through OLEDB Destination, rather I want the entire data flow for that dataset to stop and go back to the control flow page.
I have tried mulitple solutions but nothing worked. Conditional Split ends up inserting the correct rows, but I just dont want anyting to be inserted when one row is bad, where as I do want the entire dataset to be inserted if all rows are good.
How can I fail the component when certain conditions happen int eh script component.
I would like to know how can I list for every page (child page) selected the number and id of localize component in the current page. I need this to update resources files, a button will be on the master page and when they click on it, they will go to a page which show up every data in the resource file.
View 1 Repliesi got a problem.. how i can declare template textbox in a datagrid at code behind? i already make a stored procedure and put the update query inside it.. if i declare the textbox inside code behind(.aspx.vb).. there will be an error.. " there is already a component named "txtitem1"component must have a unique name.."
Dim con As New SqlConnection(ConfigurationSettings.AppSettings("ConnectionString1"))
Dim cmd As New SqlCommand
Dim sda As New SqlDataAdapter
cmd.CommandType = CommandType.StoredProcedure
cmd.CommandText = "ETendering3"
cmd.Parameters.Add("@item", SqlDbType.NVarChar).Value = txtitem1.Text
cmd.Parameters.Add("@price", SqlDbType.Decimal).Value = txtprice1.Text
cmd.Parameters.Add("@remark", SqlDbType.NVarChar).Value = txtremark1.Text
cmd.Parameters.Add("@consump", SqlDbType.Decimal).Value = txtconsump1.Text
cmd.Parameters.Add("@value", SqlDbType.Decimal).Value = txtvalue1.Text
cmd.Connection = con
Try
con.Open()
DataGrid12.DataSource = cmd.ExecuteReader()
DataGrid12.DataBind()
Finally
con.Close()
End Try
con.Dispose()
cmd.Dispose()
con = Nothing
cmd = Nothing
_______________________________________________________
.aspx
<Columns>
<asp:BoundColumn DataField="Listing_Id" HeaderText="Listing"></asp:BoundColumn>
<asp:BoundColumn DataField="No" HeaderText="No"></asp:BoundColumn>
<asp:BoundColumn DataField="Item_Category" HeaderText="Category"></asp:BoundColumn>
<asp:TemplateColumn HeaderText="Description">
<ItemTemplate>
<asp:TextBox id=TextBox1 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Item_Description") %>'>
</asp:TextBox>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="txtitem1" runat="server"></asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Price" FooterText=" 10/50">
<ItemTemplate>
<asp:TextBox id=TextBox3 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Price") %>'>
</asp:TextBox>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="txtprice1" runat="server"></asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Remarks">
<ItemTemplate>
<asp:TextBox id=TextBox2 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Remark") %>'>
</asp:TextBox>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="txtremark1" runat="server"></asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Consumption">
<ItemTemplate>
<asp:TextBox runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Consumption") %>'>
</asp:TextBox>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox runat="server" ID="txtconsump1"></asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Value">
<ItemTemplate>
<asp:TextBox runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Value") %>'>
</asp:TextBox>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox runat="server" ID="txtvalue1"></asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
</Columns>
I've got two websites. One is a copy of the other, I even went ahead and remade a copy of the original a second time hoping it would alleviate the issue I'm having but it didn't.
On both pages I have a calendar so the route is
Csharp Code:
[code]....
The issue is on the original site /Calendar works. It shows the Calendar page with the current month. On the copy site /Calendar gives a 404 but /Calendar/Index shows the Calendar page with the current month.
I have own control implemented in "CommonControls" assembly (the same namespace). It us 'Custom control' inherited from 'WebControl' class and implemented without ascx file.
It is necessary to use this control in "main" web site. how to register this control?
I know it should be something like this:
<%@ Register Assembly="CommonControls" Namespace="CommonControls"
TagPrefix="uc" TagName="TopMenuControl" Src="..." %>
But what should I specify in the "Src" property?
Whenever I try to use the Website Administration Tool i get an error messege stating:
error invoking ad&minister website.
Details: The method or operation is not implemented.
How can I fix this?
I have just been dabbling in MVC over the last couple of weeks. Knew I wanted to go in this direction but have been putting it off due to comfort/familiarity with webforms. Also knew that with my first MVC site I wanted it to support mobile devices. One of the first tutorials I saw implemented an Area for mobile support. I started that way as well.
Since I want to get off on the proper footing here I guess I'd like to ask you guys. What would the best practice be? Is it just a matter of preference? Are there any specific pros or cons to using or not using Areas when it comes to support for mobile devices?
suggest me a good design pattern for implmenting the following? I have an object say myObject. This myObject is created using few inputs from the UI. After the creation of myObject. This object will be passed to few methods.. like method1(myObject);
method2(myObject);... method5(myObject);etc. Each methods will prepare the input for successive methods call. For example method1(myObject) will set the values necessary for the operation of method2.Then method2(myObject) will set up the values necessary for the operation of method3 and so on..Same object is used as the argument for every method calls.Which design pattern can be implemented?
how to display button in jquery calendar control and and image of calender as well
View 5 RepliesI am using asp.net with vb for developing a website
I have a registration form in which i need to enter birthdate... m given an icon representing a calender and when the user click on that icon(image button) a calender should pop up and the selected date should be entered in the textbox in dat form..
I want to implement a restful service in ASP.NET. I want it to be compatible with .Net 2.0 and IIS 5+. I am constrained to not use ASP.NET MVC or REST starter kit. By reading on internet I have learned that it can be implemented using HTTPHandlers. The problem is, the request will come in as a POST request. And I want to URL to be like:
http://abc.com/MyService/MyMethod1/
and
http://abc.com/MyService/MyMethod2/
I tried to figure out NHibernate (a first) First went through chapter 23 in Asp.Net MVC in Action 2, and read some articles to get the drift.
Then I modified the sample in the above book to work with my own database and my own table. Finally got that working. (Started messing with this yesterday afternoon....it's 7:30 AM, so .... I'm tired...)
Then I worked this into my own project (the shared mvc template some of you might have looked at).
Now my application became completely unstable. Sometimes it work, but other times it bombs out where my controller factory (Castle) set the component lifestyles:
[Code]....
Each time with some LoaderException that read like {"Could not load file or assembly 'Castle.Core, Version=1.1.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"Castle.Core, Version=1.1.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc"}
Man I fiddled all over the place, having xcopy copy dll's (see krok.web properties got a post build event) and many other things I that does not really make sense.
And from the darned instructions, having all your dll's in a folder which get copied out to the web project's bin folder and dont know what else.
Seriously...if someone can download this and have a look (better not if you dont know Castle Windsor and NHibernate)
I am having troubles understanding the purposes of using Factory pattern, I understand Factory pattern uses Factory class that has methods to return concrete objects. But why don't I simply use new opertor to create concrete objects? Some articles suggest Factory methods could return objects of different concreate classes, I can do the same thing by using switch statement.
Also are there classes in .Net framework already implementing Factory pattern? I think that will give me a better ideas why it is useful.
Is there an easy way to code in ASP.NET that will allow the user to click on a date or button and the event will be added to their calendar?
View 3 RepliesI need to add a button above a Calendar Control that "jumps" forward with 1 year in case the user wants to book for an event next year, without having to click the >>NEXT MONTH linkButton 12 times?
View 7 RepliesIs there a way to put a button on a specific date in a calendar object? Specific dates in my website might have a lot of data that needs to be shown and I want to place a button on that date to open up a new webpage or make a panel visible with the information. Below is the calendar object and the dayrendering routine to place the current information in the calendar object.
[Code]....
Dim linkStr As String
e.Cell.BackColor = Drawing.Color.Red
linkStr = "<span style=""font-size:11pt; font-Weight:bold; color:white""><br />Error Loading Date: " & e.Day.Date & _
"<br /><br />Check Date and Re-Submit!"
e.Cell.Controls.Add(New LiteralControl(linkStr))
end sub
I have a textbox with calendar button. Here my requirement is I need to clear the text box when user clicks Calendar Image control.provide JQuery for this.
View 1 RepliesHere I have a code using ControlBuilder to make DropDown control generic.
[ControlBuilder(typeof(EnumDropDownControlBuilder))]
public class EnumDropDown : DropDownList {
private string _enumType;
private bool _allowEmpty;
public string EnumType {
get { return _EnumType; }
set { _EnumType = value; }
}
public bool AllowEmpty {
get { return _allowEmpty; }
set { _allowEmpty= value; }
}
}
public class EnumDropDown<T> : EnumDropDown where T : struct {
public EnumDropDown() {
this.Items.Clear();
if (AllowEmpty) this.Items.Add(new ListItem("", "__EMPTY__"));
foreach (string name in Enum.GetNames(typeof(T))) {
Items.Add(name);
}
}
public new T SelectedValue {
get {
if (IsEmpty) throw new NullReferenceException();
return (T)Enum.Parse(typeof(T), base.SelectedValue, true);
}
set { base.SelectedValue = Enum.GetName(typeof(T), value); }
}
public bool IsEmpty {
get {
return base.SelectedValue == "__EMPTY__";
}
set { base.SelectedValue = Enum.GetName(typeof(T), value); }
}
}
public class EnumDropDownControlBuilder : ControlBuilder {
public override void Init(TemplateParser parser, ControlBuilder parentBuilder, Type type, string tagName, string id, IDictionary attribs) {
string enumTypeName = (string)attribs["EnumType"];
Type enumType = Type.GetType(enumTypeName);
if (enumType == null) {
throw new Exception(string.Format("{0} cannot be found or is not an enumeration", enumTypeName));
}
Type dropDownType = typeof(EnumDropDown<>).MakeGenericType(enumType);
base.Init(parser, parentBuilder, dropDownType, tagName, id, attribs);
}
}
Sorry the program is too long to read cheerfully. The question is, although I defined property EnumType, AllowEmpty in class EnumDropDown. Since the real object created by ControlBuilder is EnumDropDown, values of EnumType, AllowEmpty are always null and false in control object. All attributes set in .aspx will be lost! I can read attribute values of source tag in ControlBuilder. But I have no any idea how can I copy the attributes to the generic control object.
Just want to know how do you iterate through the calendar days on the DayRender event and change them to links from link buttons
View 8 Replieshow to open a calendar control in asp.net web form on the image button click and display the date in the textbox
View 1 Replies