I need to know what character sequence (probably some ascii control or esacape sequence) hyperterminal dipslays as ?a
Someone sent me a screen shot showing this data.
Hi
I had posted this question before but i did not get the answer
Proper(i think people did not get my question ) so i am posting
it now.
I capture a image from windows mobile camera and save it on
picturebox control..now to zoom the picture i am increasing
its size by Onpaint event.The image is getting zoomed but
i am not able to save the zoomed image(ie.., the increased
image size)...
Please let me know
Thanks In Advance
I have a nodejs TCP server and a client. Basic network communication happens. Client sends "data + STX_CHARACTER + data + ETX_CHARACTER" (just an example).
How do I split the string using the STX Control Character as a delimiter or how do I reference the character at all in Javascript.
I have a simple web control (TaskList) that can have children (Task) which inherit from LinkButton, that can be added declaratively or programatically. This works ok, but I can't get the onclick event of a Task to be fired in my code behind. The code ..
[ToolboxData("<{0}:TaskList runat=\"server\"> </{0}:TaskList>")]
[ParseChildren(true)]
[PersistChildren(false)]
public class TaskList : System.Web.UI.Control
{
//[DefaultProperty("Text")]
public TaskList()
{}
private List<Task> _taskList = new List<Task>();
private string _taskHeading = "";
public string Heading
{
get
{
return this._taskHeading;
}
set
{
this._taskHeading = value;
}
}
[NotifyParentProperty(true)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public List<Task> Tasks
{
get
{
return this._taskList;
}
set
{
this._taskList = value;
}
}
protected override void CreateChildControls()
{
foreach (Task task in this._taskList)
this.Controls.Add(task);
base.CreateChildControls();
}
protected override void Render(HtmlTextWriter writer)
{
writer.Write("<h2>" + this._taskHeading + "</h2>");
writer.Write("<div class='tasks_container'>");
writer.Write("<div class='tasks_list'>");
writer.Write("<ul>");
foreach (Task task in this._taskList)
{
writer.Write("<li>");
task.RenderControl(writer);
writer.Write("</li>");
}
writer.Write("</ul>");
writer.Write("</div>");
writer.Write("</div>");
}
}
public class Task : LinkButton
{
private string _key = "";
public string Key
{
get
{
return this._key;
}
set
{
this._key = value;
}
}
}
Markup:
<rf:TaskList runat="server" ID="tskList" Heading="Tasks">
<Tasks>
<rf:Task Key="ba" ID="L1" Text="Helllo" OnClick="task1_Click" runat="server" />
</Tasks>
</rf:TaskList>
The Onclick event task1_Click never fires when clicked (although a postback occurs).
Using the asp.net file upload control is very easy, i'm trying to squeeze it into my site and the dam thing is very ugly!. Can I not change the browse button to an image of my choosing ?
So far i'm failing to achieve this seemingly simple goal. Any ideas on this one ?
Thanks
i want after i type "0203-ED" in textfield ...two character behind that text can control the radio button..
"ED" character from that text can make one radiobutton which has value="ED" are checked...
what script that can make it work??
Hi, I am trying to profile my Spring Web app running on WebLogic 9.2
JRockit Mission Control 4.0 works perfectly except it doesn't capture Spring Beens method invocations. Are there any tricks to make it work?
Thank you,
Arkadiy
Does ASP.NET's ScriptManager have any sort of "helper" for binding to HTML control events? This would be similar to jQuery:
$('#foo').bind('click', function() {
alert('User clicked on "foo."');
});
Hi,
I am creating a Control Library project.
I have some Cursor files which i want to add on resources.
Because on Resources.resx---Add resources is only for String, Icon (.ico), Text file(.txt),
Image (Png,bmp,jpeg,gif, tiff) files.
So where i can add *.cur files.
How can i do it?
thanks
My form has several numeric up down controls. All of these controls, when changed, call the same method:
private void SetColors(object sender, EventArgs e)
How do I determine which control called the method?
Is there a way to get the form active control?
I was checking in the help for the "Support.GetActiveControl" method but it isn't supported :) for the Compact Framework.
I suppose that I can track the focus by adding a custom GotFocus event handler to all the form controls, but I'm looking for a more generic way that can be implemented for any form.
I have a wx.lib.calendar.Calendar control (not wx.lib.calendar.CalendarCtrl!). I am selecting a number of days using the following function call:
self.cal.AddSelect([days], 'green', 'white')
This works, and draws the days highlighted. However, I cannot work out how to reverse this (i.e., clear the selection so the days go back to their normal colouring).
Any hints, please?
I'm looking for a free, syntax-highlighting, possibly autocompleting 'code editor's textbox' style control for use in a Visual Studio winforms or wpf project. It should work with C# and self-defined languages. There are pay-for solutions available - something like http://www.syncfusion.com/products/user-interface-edition/windows-forms/Edit would work fine - but I am looking for something simpler, and don't need to pay for unnecessary functionality. Any ideas?
I have a hyper link control and I set the NavigateURL and the ImageURL property at runtime. I also need to set the class of the image tag that it generates but I cannot figure out how I can do that. The solution mentioned here
http://stackoverflow.com/questions/1428879/apply-css-class-to-image-in-asphyperlink
does not work because the image url is hard coded.
any ideas?
We have a requirement to control access to our SaaS based web application based on IP addresses (i.e. We will have to limit access to Company A users only if the request originates from the PCs in their subnet). How do you solve this issue?
Hi,
I developing a usercontrol in csharp in which i will be using a textbox and CheckedListBox control once the usercontrol is done suppose if i want to use some of the methods of Checkedlistbox in my usercontrol what should i do...
Thanks in advance
Hi All.
i am create a Event Calender using MonthCalender control in window application asp.net
can any one tell me how can i highlight multiple dates in MonthCalender
thanks in advance
I have an asp.net menu control in my application.Each node is an image of different color and the styles of the subnodes are set in the sitemap.How can I set the mouse hovering of back ground color for each subnode which is of different color?
I am using a repeater control to populate data from SqlDataSource into my custom designed display-box.
<asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1" OnDataBinding="Repeater_ItemDataBound">
<HeaderTemplate>
</HeaderTemplate>
<ItemTemplate>
<div class="bubble-content">
<div style="float: left;">
<h2 class="bubble-content-title"><%# Eval("CommentTitle") %></h2>
</div>
<div style="text-align: right;">
<asp:Label ID="lbl_category" runat="server" Text=""><%# Eval("CommentType") %>
</asp:Label>
</div>
<div style="float: left;">
<p><%# Eval("CommentContent") %></p>
</div>
</div>
</ItemTemplate>
<FooterTemplate>
</FooterTemplate>
</asp:Repeater>
<asp:SqlDataSource ID="mySqlDataSource" runat="server"
ConnectionString="<%$ ConnectionStrings:myConnectionString %>"
SelectCommand="SELECT [CommentTitle],[CommentType],[CommentContent] FROM [Comments] WHERE ([PostId] = @PostId)">
<SelectParameters>
<asp:QueryStringParameter Name="PostId" QueryStringField="id" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
Now, there can be three types of "CommentTypes" in the database. I want to change the CssClass property of "lbl_category" based on the value of [CommentType].
I tried doing this:
<asp:Label ID="lbl_category" runat="server" CssClass="<%# Eval("CommentType") %>" Text=""><%# Eval("CommentType") %></asp:Label>
But this gives an error: "The server control is not well formed"
and haven't been able to find a way to achieve this in the code behind. Can someone please help?
Hi I am using bootstrap styles for my asp.net web application and I have a menu control at the top. I want to insert a search text box at the top right on the same line as the menu bar. Following is my code. Can anyone please suggest how to do this? Thanks.
<div id="container">
<form runat="server" class="navbar-form navbar-left" role="search">
<div class = "navbar">
<div class="navbar-inner">
<div class="container">
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
<a class="btn btn-navbar" data-target=".nav-collapse" data-toggle="collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<div class="nav-collapse collapse">
<asp:Menu ID="NavigationMenu" runat="server" EnableViewState="false"
IncludeStyleBlock="false" Orientation="Horizontal"
CssClass="navbar"
StaticMenuStyle-CssClass="nav"
StaticSelectedStyle-CssClass="active"
DynamicMenuStyle-CssClass="dropdown-menu">
<Items>
<asp:MenuItem Text="Home" ToolTip="Home"></asp:MenuItem>
<asp:MenuItem Text="Music" ToolTip="Music">
<asp:MenuItem Text="Classical" ToolTip="Classical" />
<asp:MenuItem Text="Rock" ToolTip="Rock" />
<asp:MenuItem Text="Jazz" ToolTip="Jazz" />
</asp:MenuItem>
<asp:MenuItem Text="Movies" ToolTip="Movies">
<asp:MenuItem Text="Action" ToolTip="Action" />
<asp:MenuItem Text="Drama" ToolTip="Drama" />
<asp:MenuItem Text="Musical" ToolTip="Musical" />
</asp:MenuItem>
</Items>
</asp:Menu>
<div class="form-group">
<input type="text" class="form-control" placeholder="Search"/>
<button type="submit" class="btn btn-default">Submit</button>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
`
I am extending the textBox control, and i want to call a javascript function on its OnLoad(EventArgs e). how can i do this?
public partial class MyTextBox: TextBox
{
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
//call to javascript function?
}
}
I am trying to send an asp control (textbox) to a javascript function.
onblur="CalculateLossRatio(this.value,<%=txtLossRatioCurrentYear.ClientID%>)"
Is is the right way to do this.