|
This will capitalize the the first letter in every work in the text. Of course it won't differentiate between proper names and other words.
private string ToSentenceCase(Match match)<br />
{<br />
return match.Value[0].ToString().ToUpper() + <br />
match.Value.Substring(1);<br />
}<br />
<br />
string text = Regex.Replace(TextBox.Text, @"\w+", ToSentenceCase);
only two letters away from being an asset
|
|
|
|
|
Hi
Is there any community portal development 3rd party tools in ASP.net to develop sites like Facebook, orkut etc.......
kamalnath
|
|
|
|
|
I don't think that any controls are available. For implementing Blogs and Forums, you may check Community server[^]
|
|
|
|
|
yes there are many , but u have to buy them
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
can you list the best community portal development tools sites.
kamalnath
|
|
|
|
|
Hi
I am jagsir singh.
I need to functionality of url rewriting in my web application.
I need to add the url name(from db) into original url
what i want to implement is as
suppose my original path is
http://www.path.com/default.aspx
and my url from db is abc
so url path would be
http://www.path.com/abc
and for xyz
http://www.path.com/xyz
this path should be same for whole application
Is there any body can help me please.
Jagsir Singh (Sanam)
|
|
|
|
|
Hi,
Member 4596027 wrote: http://www.path.com/xyz
this path should be same for whole application
as per yr comments http://www.path.com/ is same for yr application.
So you can do Response.Redirecthttp://www.path.com/" + "Get from database");
Hope it will help you.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Thanks for reply
but here is another situation
actually here xyz is the account name
and whole path will be same
for example if one person creates an account and his account name is xyz
and another person creates another account and his account name is abc
then
for first case url will be http://www.path.com/xyz and it will same for his application instance
and for second case url will be http://www.path.com/abc and it will be same for his application instance
No page should be displayed
thanks
Jagsir Singh (Sanam)
|
|
|
|
|
hi
i have a login page and inthat page i create a cookie name "admin" my problem is that when the admin login then in every page of admin section this cookie check if exist or not if not exist return the admin to login page
thank u in advance
|
|
|
|
|
I think it will help u
this is in vb.net
If(Request.Cookies("admin") IsNotNothing)Then
do
else
Response.Redirect("Login.aspx")
end if
Jagsir Singh (Sanam)
|
|
|
|
|
Hi,
Can we use two validation controls for the same field?
i.e)For a textbox containing username the field should not be empty and
also the field should accept atleast 6 characters.I tried by using required
field validator and range validator.Both of them are working but it is
not directing to the next page.Only with required field validator
it works smoothly.Plz reply me.
|
|
|
|
|
hi dear, u can use any number of validator in asp.net.. for ur problem u must have to use requirefield validator and regularexpression validator.
range validator would not be used in the condition of strings.
also alternative to regular expression u can use custom validator and call javascript function to validate the lenght for ur input box..
regards
sulabh
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
Hi All,
I want to pass a textbox value from .aspx page to .ascx page(User Control).Can any body tell hoe to do it.I am using .NET 1.1
Regards
|
|
|
|
|
Hi,
you can create public property in ascx file and can access it from aspx file.
Hope it will help you.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Do I need to create an instance of .ascx page into .aspx page and then call it from .aspx page.I did what you said,but not working.I will copy the code below:
at the ascx page:
public int Quantity
{
get
{
return quantity;
}
set
{
quantity = value;
}
}
How to assign value from aspx page?
Can you please expalin via some code.
Hello There
|
|
|
|
|
You can use the user control id to access the property.
|
|
|
|
|
Can you please elaborate it more?
Hello There
|
|
|
|
|
Assume your user control id is UserControl1, and Property name is MyProperty, then it can be accessed like UserControl1.MyProperty
|
|
|
|
|
Navaneeth Thanks,
I read ur reply.I have lots os controls into (Menu.ascx)eg - hyperlink,label etc.
Actually I have created one Menu(Menu.ascx) as a user control,in which I have one label control.At my web page(Products.aspx),i am receiving a value from a textbox,which I want to pass on to a user-control's label value.So that when ever value is changing in textbox,label value should also get incremented accordingly.
I hope now the scenario will be more clearer.
Hello There
|
|
|
|
|
Hi,
you must drag and drop yr cnotrol to aspx page ?
here in code behind you can get that control's ID,
so, control.Property = "set property"
Or anything else you need ?
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Actually I have created one Menu as a user control,in which I have one label control.At my web page(Products.aspx),i am receiving a value from a textbox,which I want to pass on to a user-control's label value.So that when ever value is increasing in textbox,label value will also get incremented accordingly.
Hello There
|
|
|
|
|
what latest version of sql server ?
still sql server 2005 or other version has come.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
Hi,
check this link..
Its really useful to u...
Link[^]
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Hi,
I am fillilng a dropdown list which is inside a updatepanel through a button click event. But after clicking the button again to fill the dropdown only the updateprogress moving icon gets displayed. i think the page hangs.
kindly help.
|
|
|
|
|
Hi,
how many data you are binding to dropdown ?
Are you fetching from database ?
Have to checked without updatepanel ?
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|