|
what are you going on about? makes little sense.
you want to know how to fire event when combo box value changes?
|
|
|
|
|
Yes!
Do you help me?Thanks
|
|
|
|
|
there are many events you can use for this.
but i think on selectedIndexChanged is the best for you.
you could also just create a 'Go' button to open pages, and that way you can free type url's in the combo box
|
|
|
|
|
No, you're mistaken. This guy has been asking this for days. He has a web browser control, inside that he has a drop list, in HTML, but he wants to catch the event in C#. Pretty bizarre if you ask me, but I'm sure he has a good reason for doing it this way. you gotta hope, at least.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I see...
Sounds a bit dodgey. Must mean they are not his webpages else he could code them to do the work, surely.
you plan on having this on other peoples machines?
|
|
|
|
|
See how he goes quiet ? he'll ask this again in a few days, I am sure.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Sounds like you're responding to an old question and that you're sufficiently lost that you think that the people doing your work for you, all talk to one another. Try either responding to the original answers, or reiterating the question, with what you've since tried.
I believe your core issue is that you are trying to catch events in a web form. This is not trivial, you can't just write event code because you can't hook C# to an event in a web browser.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Their design interface a Windows Form in which a dialog Combox and an object WebBrower.
You through dialog combobox on Windows Form to control the dialog box select the HTML on the WebBrowser to how?
Thank you
|
|
|
|
|
Hi,
hmm, sorry but I don't get your question... Do you want to select sth. in a combobox (URL etc.) that will change the URL of the WebBrowser?
If yes then add a SelectedIndexChanged-event to your combobox (double click in edit mode VS2008) and set the URL property of the webbroweser-control to the selected one in the generated event handler.
If this is not the solution, please rewrite your question in simple words (using e.g. numbers 1. click combox, 2. select url from combobox, 3. set url in webbrowser).
Regards
Sebastian
|
|
|
|
|
I could not understand your comments.
For example:
I designed the interface in VS.NET 2008 with C # language include:
1 WebBrowser, 1 combobox control box to select ( ... appear in the WebBrowser control when I run the program.
But I do not know what events to use the box to combobox Select the object (HTML) in WebBrowser will be under control
I used events: Onchange but not successful
|
|
|
|
|
Hi
iam trying to implement a calendar control.i want to design like this.
i have 3 drop down list(for day,month,year) at the top followed by a calendar control.
and 3 link buttons(prev,today,next) at the bottom.
if i select the particular day,month and year the calendar has to display accordingly,the same
should happen with the link buttons also.
can anyone tell me how to do this.iam not using any ajax controls.iam using
asp .net calendar control.
the code goes like this....
cal.aspx...
<table id="table1" width="100%">
<tr></tr>
<tr>
<td align="center">
<asp:DropDownList ID="cboDay" runat="server" AutoPostBack="True">
<asp:ListItem Value="1"></asp:ListItem>
<asp:ListItem Value="2"></asp:ListItem>
<asp:ListItem Value="3"></asp:ListItem>
<asp:ListItem Value="4"></asp:ListItem>
<asp:ListItem Value="5"></asp:ListItem>
<asp:ListItem Value="6"></asp:ListItem>
<asp:ListItem Value="7"></asp:ListItem>
<asp:ListItem Value="8"></asp:ListItem>
<asp:ListItem Value="9"></asp:ListItem>
<asp:ListItem Value="10"></asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="cboMonth" runat="server" AutoPostBack="True">
<asp:ListItem Value="January"></asp:ListItem>
<asp:ListItem Value="Febraury"></asp:ListItem>
<asp:ListItem Value="March"></asp:ListItem>
<asp:ListItem Value="April"></asp:ListItem>
<asp:ListItem Value="May"></asp:ListItem>
<asp:ListItem Value="June"></asp:ListItem>
<asp:ListItem Value="July"></asp:ListItem>
<asp:ListItem Value="August"></asp:ListItem>
<asp:ListItem Value="September"></asp:ListItem>
<asp:ListItem Value="October"></asp:ListItem>
<asp:ListItem Value="November"></asp:ListItem>
<asp:ListItem Value="December"></asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="cboYear" runat="server" AutoPostBack="True">
<asp:ListItem Value="2000"></asp:ListItem>
<asp:ListItem Value="2001"></asp:ListItem>
<asp:ListItem Value="2002"></asp:ListItem>
<asp:ListItem Value="2003"></asp:ListItem>
<asp:ListItem Value="2004"></asp:ListItem>
<asp:ListItem Value="2005"></asp:ListItem>
<asp:ListItem Value="2006"></asp:ListItem>
<asp:ListItem Value="2007"></asp:ListItem>
<asp:ListItem Value="2008"></asp:ListItem>
<asp:ListItem Value="2009"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
<table id = "table2" width="100%">
<tr></tr>
<tr>
<td align="center">
<asp:Calendar ID="Calendar1" runat="server" BackColor="White" BorderColor="#999999" CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" Height="180px" Width="200px" OnSelectionChanged="Calendar1_SelectionChanged">
<SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
<TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
<SelectorStyle BackColor="#CCCCCC" />
<WeekendDayStyle BackColor="#FFFFCC" />
<OtherMonthDayStyle ForeColor="#808080" />
<NextPrevStyle VerticalAlign="Bottom" />
<DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
<TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
</asp:Calendar>
</td>
</tr>
</table>
<table id = "table3" width="100%">
<tr></tr>
<tr>
<td align="center">
<asp:LinkButton ID="lnkPrev" runat="server" OnClick="lnkPrev_Click">< Prev</asp:LinkButton>
<asp:LinkButton ID="lnkToday" runat="server" OnClick="lnkToday_Click">Today</asp:LinkButton>
<asp:LinkButton ID="lnkNext" runat="server" OnClick="lnkNext_Click">Next ></asp:LinkButton>
<%--<asp:Label ID="lblshow" runat="server" Text="Label"></asp:Label>--%>
</td>
</tr>
</table>
</td>
</tr>
</table>
cal.aspx.cs file...
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
cboDay.SelectedValue = Calendar1.SelectedDate.Date.ToString();
cboMonth.SelectedValue = Calendar1.SelectedDate.Month.ToString();
cboYear.SelectedValue = Calendar1.SelectedDate.Year.ToString();
}
and i want the calendar to change according to the selected date,month,year in the drop down.plz help me out...
pintoo
|
|
|
|
|
InvalidForumException has been thrown by your question. Please post it at correct forum.
|
|
|
|
|
Is there a way to populate a combobox with a Dictionary please?
|
|
|
|
|
ComboBox class has Items property which allows to add items to it. You can iterate over the items in dictionary and add them to the combobox.
|
|
|
|
|
Hi,
I haven't done this, but I would try something like myComboBox.DataSource=myDictionary.Keys;
|
|
|
|
|
Hi,
I've string which contains valid XML (not as XML file), Is there any reliable way to parse that string by using XPath class.
Thanks in advance.
|
|
|
|
|
Hi,
what about using the xmlDocument and CreateNavigator to get XPathNavigation on that string?
<br />
XmlDocument xmlDoc = new XmlDocument();<br />
xmlDoc.LoadXml(sMyXmlString);<br />
XPathNavigator myNav = xmlDoc.CreateNavigator();<br />
Does this help you?
Regards
Sebastian
|
|
|
|
|
If you're using .Net 3.5, you can using System.XML.Linq; and use the XElement object to parse it.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
how can i add a .svc file to a service project with visual studio 2008 when developing a wcf application?
--- Thanks
|
|
|
|
|
Hi,
just right-click on the solution -> add new item -> select "Text File" and change the suggested name into "MyService.svc".
Regards
Sebastian
|
|
|
|
|
hi friends..
i want to retrieve the word document from sql server..
i know to store a document into sql server..
but i dont know how to retrieve the stored document..
i need coding for that in c#
its urgent..
thax
gopal
|
|
|
|
|
|
Hi..
i have successfully stored my word document in SQL server. now i need to retrieve the same document from database. and i want show the same file in my front end..
thaks in advance.....
|
|
|
|
|
That's what you said in your question. Did you have a look at the link I posted?
|
|
|
|
|
I am a novice of .net, It seems that the interface does not do anything ,could you pls tell me above it? I'll very appreciate you if you give some code for compare(one include interface,the other not using interface)
Thanks
|
|
|
|