|
Testbox size can be limited when its mode is "singleline" while if the the mode is multi line you use RegularExpressionValidator> i have mentioned the the re for the textarea.
<asp:RegularExpressionValidator ID="revMaxDescription" runat="server" ControlToValidate="txtDescription"
ErrorMessage="Test cannot be greater than 100 characters." ValidationExpression="(.|\n){0,100}"/>
|
|
|
|
|
private string ToSentenceCase(Match match)
{
return match.Value[0].ToString().ToUpper() +
match.Value.Substring(1);
}
string text = Regex.Replace(TextBox.Text, @"\w+", ToSentenceCase);
and in return function wat i have to send
|
|
|
|
|
jagadeeshkumar2106 wrote: private string ToSentenceCase(Match match)
{
return match.Value[0].ToString().ToUpper() +
match.Value.Substring(1);
}
string text = Regex.Replace(TextBox.Text, @"\w+", ToSentenceCase);
Private Function ToSentenceCase(ByVal m As Match) As String
Return m.Value(0).ToString().ToUpper() & m.Value.Substring(1)
End Function
Dim text As String = Regex.Replace(TextBox.Text, "\w+", AddressOf ToSentenceCase)
|
|
|
|
|
hi venky it is working fine thanks to u ...how i can covert the text the user what ever he enters into lower case is ti possible with this or any thing there
|
|
|
|
|
|
How do I do this suggestions:
I need to take repeated input from a textbox and load it into a displayed list with a checkbox everytime add item is clicked. the GUI will look something like this. My thought was to load a repeater, but I think persistence will not allow it to work. Any suggestion or experience with this?
I'm using Asp.net 2.0 with C#
Ckbox addeditem 1
Ckbox addeditem 2
Ckbox addeditem 3
Inbut box _______________ add item
|
|
|
|
|
Use static DataTable or DataSet to store the values and load it when you need it.
|
|
|
|
|
hi,
i need to know how to register a dll via INF file - i need it so i could do it when a web page downloads a CAB.
in the CAB there will be a DLL which i want to do like regsvr32 commad does.
this is my INF for now only for registering the DLL:
[Add.Code]
Dialer=Dialer
[Dialer]
RegisterDlls = DialerRegSvr
[DialerUninstall]
UnregisterDlls = DialerRegSvr
[DialerRegSvr]
11,,MyDLL.dll, 1
if i right - click it and try to install it pops a message that sais intallation failed.
how can i do it - and would it install the dll when i will click install to the INF?
thanks,
Samy
|
|
|
|
|
I need to call a javascript function from within an event of the ReorderList control of the AJAXControlToolkit. It appears this is not possible in certain cases.
In particular, I need to call the 'setConfirm()' javascript function from within the ItemReorder event of the ReorderList. So, I have the following javascript at the top of my page:
[code]
function setConfirm() {
needToConfirm = true;
}
[/code]
and inside of the ItemReorder event of the ReorderList I call:
[code]
ScriptManager.RegisterStartupScript(this, this.GetType(), "setConfirm", "setConfirm()", true);
[/code]
The problem is, the javascript is never called in this scenario (I have debugged the application and the RegisterStartupScript is indeed called, it is the javascript function itself that is never called). Strangely, if I place this call inside of the ItemDataBound event (instead of the ItemReorder event), it works perfectly. Unfortunately, that solution simply doesn't work because the javascipt is called on every page load.
Does this make any sense?
|
|
|
|
|
Can someone please check this out for me? I've looked at the markup until I've gone cross-eyed and there is NOTHING wrong with it. Yet it works (well, looks) perfectly fine in IE but its wrong in FF, and this is a first for me.
Can someone help me shed some light on the subject?
Thanks.
here's the link: http://mustafacodes.net/blog.aspx[^]
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
"There is no wealth like knowledge, no poverty like ignorance." Ali ibn Abi Talib
"Animadvertistine, ubicumque stes, fumum recta in faciem ferri?"
|
|
|
|
|
Download BlogEngine.Net[^] instead, and stop the wheel re-invention in its tracks!
"On one of my cards it said I had to find temperatures lower than -8. The numbers I uncovered were -6 and -7 so I thought I had won, and so did the woman in the shop. But when she scanned the card the machine said I hadn't.
"I phoned Camelot and they fobbed me off with some story that -6 is higher - not lower - than -8 but I'm not having it."
-Tina Farrell, a 23 year old thicky from Levenshulme, Manchester.
|
|
|
|
|
Its not a matter of re-inventing the wheel. Its more of a "I got inspired to write a new engine and I will be writing an article about it too" kinda thing. And it works like a charm too.
The one and only issue I have is that ONLY on the blog.aspx page it appears clunky and out of shape in FF but perfectly normal in IE.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
"There is no wealth like knowledge, no poverty like ignorance." Ali ibn Abi Talib
"Animadvertistine, ubicumque stes, fumum recta in faciem ferri?"
|
|
|
|
|
hi
how to enlarge an image present in datalist control on mouseover.
|
|
|
|
|
Add a javascript event to handle the mouseover to the control displaying the image
only two letters away from being an asset
|
|
|
|
|
I want to call a Java Script Function on Click_on a Server side button.
i am using
Button.Attributes.Add("onclick","Fucntion();")<code><br />
<br />
in page load(). but main problem is that it is calling Client Side Function first then Server side. <br />
but i need the opposite. <br />
<br />
Server side button click will run first the it call the client side funcion . <br />
<br />
Can any body help me out !!!!!
|
|
|
|
|
The server can't really make calls to a client, it just doesn't work like that.
1) Handle the button event on the server, then insert javascript to call you client-side funtion
2) Use AJAX methods to call server from client, then continue with client-side processing
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote: 1) Handle the button event on the server, then insert javascript to call you client-side funtion
can you kindly explain this point in details !!!
|
|
|
|
|
Thanks for your help. I have got the point !!!!!
Thanks.
|
|
|
|
|
hello,
How do I use classes and object from a existing DLL in my application asp.net usingc#
Anybody can solve my problem
thanks
|
|
|
|
|
simply just add the Dll File as Reference . [ Solluation Explorer -> References -> Right Click -> Browse Tab [ for select your dll file] -> ok
Then use
using DllNameSpace;
Then u can create Object for the same
DllClass myDllObject=new DllClass();
myDllObject.DllMethods();
Hope This will help
|
|
|
|
|
Set a reference to the assembly and use it.
only two letters away from being an asset
|
|
|
|
|
Hi All!
i have an excel file. i want to read data into data set. i have successfully read it into data set. but it doesn't images data. for image data it it returns database null. i want want to read data as well as image data into data set. can any one help me in this regards?
|
|
|
|
|
1. we need your code
2. we need your error message
3. this can be solved with Google
|
|
|
|
|
Thanks for such a valuable suggestions.
Thanks & Regards,
SAMir Nigam,
Software Engineer,
STPL, Lucknow, India.
|
|
|
|
|
iam assiging a value from a text box to a datatable row how i can convert the entered text of the textbox first letter should convert to an upper case and entered to the datarow of the datatable
|
|
|
|