|
Thank you for the prompt reply. I did not get you clearly. I would be very happy if you could brief little more on this with some example code. I once again thank you for the reply. (I am waiting for your reply).
Nitya.
|
|
|
|
|
What was it that you didn't understand?
---
b { font-weight: normal; }
|
|
|
|
|
Response.Write(" " + "runat='server' SRC='bulletNew.gif' ALT='" + curCityName + "' id='Image1' onserverclick='Image1_ServerClick'>" + " ");
}
You said that i need to make the "image button" as a server control, which I had already done in the above code (the attribute in the bold text).
Also, I want to ask whether it is possible to call C# method from javascript.
Thanks in advance. Please reply soon. I am eagerly awaiting.
Nitya.
|
|
|
|
|
No, it's not a server control. It's just some text in a string. Just because the string contains "runat='server'" doesn't mean that anything happens. The string could just as well contain "kill all humans", but that wouldn't happen either.
To be a server control it has to be a real object, in this case an HtmlInputImage object.
There are generally two ways of creating server controls:
1. Put the tag in the aspx page so that it is parsed into the Page object.
2. Create the object in the code behind and add it to the page structure.
nitya_arysys wrote: Also, I want to ask whether it is possible to call C# method from javascript.
Not directly. Consider these two rules:
1. The server side code and the client side code never exist in the same place.
2. The server side code and the client side code never exist at the same time.
If you want a Javascript to make anything happen on the server, you have to post the page back to the server and make the C# code detect what it is supposed to do.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks Guffa for clarifying.
|
|
|
|
|
Hello,
I try to sort my ultragrid1 in a button_click methode but I've no idea how to handle the ultrawingrid.
Something like ultragird1. sort column["column"] ???
Can anybody help me.
|
|
|
|
|
Hi Frank,
use ultraGrid1.DisplayLayout.Bands[0].SortedColumns.add(YourColumn col)
hope that helped
GanDad
|
|
|
|
|
I am trying to use the C++ funtions in C# through DLL reference.
I need to pass values by reference to these functions.
How is this possible in C#?
Thanks and Regards
Madhu
|
|
|
|
|
how to get the multile values from a listbox in html and javascript.
and how to pass muliple option from a drop down to the stored procedure as a comma separated string and then pass the values to the conditional clause of the procedure.
sathy
|
|
|
|
|
i'm trying to add my own custom section in my config file, i've found some articles on this in VB that work, but when i rewrite it into C# i get an error, can someone please help?
this is the config file:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="myGroup">
<section name="myCustomSection"
type="System.Configuration.NameValueSectionHandler,
System, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"/>
</sectionGroup>
</configSections>
<myGroup>
<myCustomSection>
<add key="mykey" value="myvalue" />
</myCustomSection>
</myGroup>
</configuration>
this is my C# code:
NameValueCollection nvc = new NameValueCollection();
nvc = ((NameValueCollection)ConfigurationSettings.GetConfig("myGroup/myCustomSection"));
string Value = nvc["mykey"];
this is the error i get from line 2 of code:
An unhandled exception of type 'System.Configuration.ConfigurationException' occurred in system.dll
Additional information: Could not create System.Configuration.NameValueSectionHandler,
System, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
Of all the things i've lost i miss my mind the most...!
-- modified at 4:29 Monday 23rd January, 2006
|
|
|
|
|
You should change this line in your .config file from:
<br />
<section name="myCustomSection"<br />
type="System.Configuration.NameValueSectionHandler,<br />
System, Version=1.0.5000.0, Culture=neutral,<br />
PublicKeyToken=b77a5c561934e089"/><br />
to
<br />
<section name="myCustomSection" type="System.Configuration.NameValueSectionHandler, <br />
system, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null" /><br />
<br />
DevIntelligence.com - My blog for .Net Developers
|
|
|
|
|
Excelent, it works!
Thank You...!!!!!!!!!!!!!!!!
|
|
|
|
|
|
At first, I apologize for my english.
I have a problem, which now I don't have any kinds of solution of it.
My program is minimizing into the tray and becomes invisible in the Windows taskbar. It happends this way:
this.WindowState = FormWindowState.Minimized;
this.ShowInTaskbar = false;
And after this actions I cannot shutdown the computers or restart the system until I unload (close)my program by hand.
Could you give me an advise what to do to solve my trouble.
Thanks in advance.
|
|
|
|
|
I take it you're handing the form's Closing event and cancelling the Close so you can, instead, minimize the form? This is where your problem is. Since your cancelling the Close, your app never closes and it causes Windows to abort the Logoff/Shutdown.
You might want to read this[^] little tidbit under "System Notification Tray".
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-- modified at 12:05 Monday 23rd January, 2006
|
|
|
|
|
Thank you for your wish to help!
It's very interesting link you pointed.
But unfortunately I have not found the answer on my question in this article.
|
|
|
|
|
The point of that article was that there is no startup form! Your app creates the NotifyIcon and continues from there.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Is C# a pure object oriented language?
Vikas Amin
Embin Technology
Bombay
|
|
|
|
|
|
I would say "yes", but, as with any other language, someone will find a way to prove me wrong
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
Yes.
C# is developed as an object oriented language from start, not as C++ or Delphi, that are originally procedure oriented languages (C and Pascal) with object orientation added to the syntax.
---
b { font-weight: normal; }
|
|
|
|
|
i have a number of Richtext boxes which i have arranged
in a tabular manner and i want to print the contents of
these richtextboxes with the formatted text in them.
i have tried the selecting each character one by one and
passing the character, it's font and color to
the Graphics.Drawstring() method.
The problem that i am facing is the font and color applied
to the whole text is that of the first character in the richtextbox
Please if anyone can help me to print the words with
it's own font and color.
Thanks
Pramod
|
|
|
|
|
Look up the EM_FORMATRANGE , EM_DISPLAYBAND and EM_SETTARGETDEVICE messages. See here for details.
Steve
|
|
|
|
|
I have seen the EM_FORMATRANGE but i have already used it
for the main Richtextbox i.e the editor that i have created.
now when i use the same method for the richtextbox of the table
the text in the last cell of the Table is printed on the main page
and the table cells are displayed blank
any other idea or code will be very useful for me
Thanks
Pramod
|
|
|
|
|
Take a look here[^] for an extended RichTextBox that can perform printing.
Regards,
mav
|
|
|
|