|
I doing the work on the C#.net 2005 Windows Application. In Windows Application their is control named web browser which is i used.
I want to get another data(Value) in the web browser where a data(Value) is already in it.i want to change the data(Value) dynamically(I mean update the webbrowser according to the click happend in the data grid view)? how can i done this? Please help me.
MURALEEKRISHNAN.K
|
|
|
|
|
This question didn't make sense last time you asked it. Did you bother to read the replies you got ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
so that i make clear the question which is i asked
MURALEEKRISHNAN.K
|
|
|
|
|
ItIf you have a datagrid, you have an ASP.NET website. This will run inside your web browser, how do you want to interact with it, in code ? You want to insert values ? OK, in that case, you need to access the HTML of the current page, parse it and modify it.
I found this with google:
http://bytes.com/forum/thread254118.html[^]
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
I am writing a web app where I have a staff heirarchy, coaches, business manager, ect.
I have an area where you fill in contact information for these people, along with parents and any other contacts you may have.
I want to be able to have a button on one page that says "Choose Coach" for example, and it brings up the list of people I entered, lets me select one, and then save it.
I can do all the selecting and saving side of it. I don't know how to have that page come up and then page it back to the parent page.
I am using ASP.NET. Any ideas?
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
so you didn't notice our ASP.NET forum ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Hi there.
How can we collapse a node in treeView (WinForm) ?
Thank you.
|
|
|
|
|
Hi,
Please try this code snippet:
void CollapseTree(TreeNode ParentNode)
{
if(ParentNode.IsExpanded)
ParentNode.Toggle();
for(int i=ParentNode.Nodes.Count-1;i>=0;i--)
{
if(ParentNode.Nodes[i].Nodes.Count>0)
{
if(ParentNode.Nodes[i].IsExpanded)
ParentNode.Nodes[i].Toggle();
CollapseTree(ParentNode.Nodes[i])
}
}
}
For more details please visit the following link:
Article1[^]
Hope this helps .
Regards,
John Adams
ComponentOne LLC
|
|
|
|
|
So you used Toggle() method.
Thank you
|
|
|
|
|
Hello
1-i have a method of weather web service, but i do not know how using it in my client windows form.
URL:http://www.deeptraining.com/webservices/weather.asmx
2-I have a C# code about weather web service,but i do not know how using it in my server for making web service.
URL:http://barnamenevis.org/forum/showthread.php?t=47550&highlight=%D9%87%D9%88%D8%A7
thanks
|
|
|
|
|
Hello.
Well,here[^] there are many useful posts.
Why don't you use them ?
|
|
|
|
|
hello
I know them,but i do not know how using them.
I want help about them.
thank you
|
|
|
|
|
Hi there.
I have a code like this :
Regex.IsMatch("sth", textBoxSearchTxt.Text.Trim(), RegexOptions.IgnoreCase)
Thus I must extrude ESCAPE CHARACTERS from textBoxSearchTxt.Text
How can I do this by C#
As always thanks in advance.
modified on Monday, August 11, 2008 8:28 PM
|
|
|
|
|
Mohammad Dayyan wrote: Thus I must extrude ESCAPE CHARACTERS from textBoxSearchTxt.Text ( Like + * ( ) ... )
I am confused, + * ()... are not escape chars? what are you trying to exclude none alpha chars?
this RegEx will remove all except alpha-numeric.
string newString = Regex.Replace(oldString, "[^A-Za-z0-9]", "");
Yusuf
|
|
|
|
|
Oh, I'm sorry.
I mistook.
Yusuf wrote: string newString = Regex.Replace(oldString, "[^A-Za-z0-9]", "");
Thank you.
|
|
|
|
|
How do I get the current Date and Time in .NET fw.
Please let me know.
Thanks,
Happy Programming!
Regards,
ctrlnick !
|
|
|
|
|
Is this your purpose?
DateTime time = DateTime.Now;
Console.WriteLine(time);
Console.ReadKey();
|
|
|
|
|
You use DateTime.Now to get the current date and time on the local machine.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
use the above code and add a timer object so that you can refresh your clock ok? choose timer tick event and add the code to it.
nelsonpaixao@yahoo.com.br
|
|
|
|
|
Hello,
I was trying to load data from xml files to SQL Server tables.
I am using XMLTextReader to read from the files. my code's working and loading information to two tables. Except, few fields.
They show no values when read - even though the file contains values for them.
I notice all of them are either unsignedByte or unsignedInt type in the xml schema.
I changed them to strings just to test, but it's doing the same.
I think the datatype is not making any difference, but these elements don't have any attributes and the values are directly in the tags.
So, could be I'm missing something. Here's part of my code:
while (reader.Read())
{ switch (reader.NodeType)
{ case XmlNodeType.Element:
if (reader.Name.ToLower().Equals("decimals"))
{ dec = reader.Value; }
..... break;
case XmlNodeType.Text:
...nothing break;
case XmlNodeType.EndElement:
break;
}
}
Any idea, what's wrong?
Thanks.
|
|
|
|
|
Did you step through your code to see what's happening ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Yes i did. I even used the reader.HasValue property and it's coming up with false.
For some reason, it's not recognizing there's any value - when I do have values.
|
|
|
|
|
I think I found the reason.
For elements that hava values directly in it, no attributes - the control goes to XmlNodeType.Text. So, I need to write my code under this case =>
Case XmlNodeType.Text:
.....
.....
But here, how do I refer to the name of the element? the reader.Name property doesn't work here.
Thanks.
|
|
|
|
|
<b>Hello fellow coders,
Anyone know how to implement a C# script into a html href tag so when someone clicks the link, the script executes?
I've done it with javascript, but I cant get it to work under C#. I'm using asp .net IIs and all the things I need.</b>
<pre> string path = "C:\\Program Files\\Common Files\\Microsoft Shared\\Help 9\\dexplore.exe";
string keyword = "default";///get the keyword from the code somehow...this is just an example
string argumentos = "/helpcol ms-help://ms.vscc.v90 /LaunchFKeywordTopic " + keyword;
/// "/usehelpsettings VisualStudio.9.0";
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo(path, argumentos);
System.Diagnostics.Process.Start(startInfo);</pre>
<b>I need that piece of code to be executed when I click a html link, that btw is created dinamically by code.
...
The page source code is this:</b>
<pre>
<![CDATA[<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>]]>
<script runat="server">
public void opendexplore(){
string path = "C:\\Program Files\\Common Files\\Microsoft Shared\\Help 9\\dexplore.exe";
string keyword1 = "String"; ///"default";get the keyword from the code somehow...this is just an example
string argumentos = "/helpcol ms-help://ms.vscc.v90 /LaunchFKeywordTopic " + keyword1;
/// "/usehelpsettings VisualStudio.9.0";
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo(path, argumentos);
System.Diagnostics.Process.Start(startInfo);
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<a href="Default.aspx" onclick="opendexplore()">CLICK</a>
</div>
</form>
</body>
</html>
</pre>
<b>Thanks you for your help</b><pre></pre>
|
|
|
|
|
charlieyv wrote: Anyone know how to implement a C# script into a html href tag so when someone clicks the link, the script executes?
Somebody kill me.
My friend, nothing personal. But please atleast read and do a bit of research before starting to prgram something.
|
|
|
|