|
|
any understandble thing which is enough for understanding me.
in simple words , i want a simple example of asp.net(using c#) with some control.
--------------------------------------------------------------------------------
|
|
|
|
|
That is the Worst English i have ever seen in Writting lol Before you write something you must take your time and make sure that someone will understand what you wrote
lol
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Probably a 6-year old kid.
|
|
|
|
|
Hello, I am new to THE CODE PROJECT. I have a question...
How do I make a console application that runs a screensaver?
FYI: I use Microsoft Visual C# 2008 with the .NET Framework 3.5
Thank You,
Josh
|
|
|
|
|
|
hi to all
i want to call javascript function and store the returnable value to a variable from my codebehind file when the grid edit button's click.
Thanks
(with regards)
B.Balachandhar
|
|
|
|
|
You're looking for the ASP.NET forum. You can't call a client-side Java function from the codebehind because that's running on the web-server, not the client.
|
|
|
|
|
Hi there !!
calling Javascript using your codebehond file is easy, all you have to do is to add the onClick attribute to your button. ( myButton.attributes.add("Onclick","JavascriptCode or funcion's name but you must register the script")
maintaining the return value would be easy if you create a hidden text fields and set it value with the script return value.
Hope that will help
WaelA
Senior Software Engineer
abu_wer@hotmail.com
|
|
|
|
|
Hi all,
How to identify Date in a String ?
The string may contains different sysmbols and alpha numeric values including Date
(like hj/dfsks jh/f12/353 @@2df 23/11/2008 kjdl jf\ioi jr4398 rjeo i")
Please suggest me how to find that.
Thanks in advance
|
|
|
|
|
You can use regular expressions to parse strings and extract data formatted in specific ways.
You will need to create a Regex[^] object with the require pattern you want to match.
There is a guide to .net regular expressions here[^].
This is also quite a good resource for regular expressions:
http://www.regular-expressions.info/[^]
You might want to consider downloading something like Expresso[^] to test your regular expression patterns.
Simon
|
|
|
|
|
Rather than using the regex aproach i would suggest Date.TryParse(in "string containing date", out date_object) ... as date varies on localization it might be a lil overhead building a regex to handle all kinds of formatting and might require, depending on case, a lot more processing time.
Code? Yeah i love it fried together with a glass of wine.
|
|
|
|
|
Based on the string you provided...
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
namespace TestConsole
{
class Program
{
static void Main(string[] args)
{
string myString = "hj/dfsks jh/f12/353 @@2df 23/11/2008 kjdl jf\\ioi jr4398 rjeo i";
string[] parts = myString.Split(' ');
DateTime dateFound;
CultureInfo culture = CultureInfo.CreateSpecificCulture("en-US");
DateTimeStyles styles = DateTimeStyles.None;
foreach (string part in parts)
{
DateTime date;
if (DateTime.TryParseExact(part, "dd/MM/yyyy", culture, styles, out date))
{
dateFound = date;
break;
}
}
}
}
}
"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
|
|
|
|
|
Hi ,
I am CommandBar class for creating Addin, in which I want to call function Control.Add(). This function take 4 parameter of type object and all parameters are Optional type. I have to pass only one parameter but it is not allowed to me.
Code is as
Controls.Add(MsoControlType.msoControlPopup);
This function is worked in VB.Net but not in C#.net. So is there any different way to call optional parameter in C#.
Thanks
aaa
|
|
|
|
|
C# doesn't support optional parameters. Either pass null or Missing.Value
Simon
|
|
|
|
|
Hi Simon,
Is there any other way to pass optional parameter in C#.I tried with null and Missing.value but it is not working. CommandBar is .Net framework class and some functions have optional parameter defined, so they use in C#.Net.
Thanks
aaa
|
|
|
|
|
Currently C# does not support optional parameters. It is being considered for inclusion in .net 4.0[^]
It supports overloading, but that's different. If you are calling an overloaded method, then just leave out the other parameters and the appropriate overload will be called automatically.
I've never come across a CommandBar class in the .net framework. There's one in the office object model, but that's not written in .net.
Post some of your code so I can see what you are doing.
Simon
|
|
|
|
|
|
Your answer was unacceptable!
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
Dammit. Rejected again. When am I going to learn to give the answer the poster wants, and not the correct one.
[Thanks for the booster vote ]
Simon
|
|
|
|
|
Wait for .Net Framework 4.0
it is supported
WaelA
Senior Software Engineer
abu_wer@hotmail.com
|
|
|
|
|
Hi,
I use a DateTimePicker in my project.
In the valuechange event I wrote some code.
The problem is that when I click on < (previous month) or > (next month) buttons or change the year, this event will fire. I want this event only when the date is click not in change month or year.
How its possible, please help me.
thanks in advance.
Justin
vchvchbv
|
|
|
|
|
You can use CloseUp event. It is fired when drop-down calendar is closed.
--
"My software never has bugs. It just develops random features."
|
|
|
|
|
Thank you
Justin Jose
|
|
|
|
|
hi
i have three page, in my page1 has search option if i did search then results shown in gridview in the page1. the grid has edit button, if i click the edit button, then the page2 is displayed all the relevent data with a update button. if i click the update button then the page3 is shown, in that page has link button to page2. again i came from page3 to page 2 and go to page3. and came to page2 now i want to go page1 without any loss in the page1 gridview.
please give ur idea.
thanks
with regards
b.balachandhar
modified on Friday, November 14, 2008 1:53 AM
|
|
|
|