|
How do i do character casing for a textbox in asp.net.
I dont find any property for this.
Please let me know abt this
Praveen Chintamani
|
|
|
|
|
Hi, praveenc80
You can define your own CSS class in your stylesheet and add it to the CssClass property or you can apply the style attribute, ie.:
TextBox1.Attributes.Add("style","text-transform: uppercase;");
TextBox1.Attributes.Add("style","text-transform: lowercase;");
TextBox1.Attributes.Add("style","text-transform: capitalize;");
TextBox1.Attributes.Add("style","font-variant: small-caps;
Even better you can subclass TextBox and implement ie. a casing property.
Have a nice day!
Andreas W. H. Kongelstad
System developer
www.portalcontext.com
|
|
|
|
|
Hey its not working for me.
I have added attributes of the one which you have given..
Even i shoild write something in .aspx page
|
|
|
|
|
Hi
This is my first question to this forum.
The scenario is like this.
We have an application. The user will login at first page(ofcourse).
The problem is how we should identify the user in all the pages without using session.
Is there any specified object which will handle this??
Regards,
Praveen Chintamani
|
|
|
|
|
You can use cookies...
But why wouldnt you want t use Sessions?
theJazzyBrain
Excelence is not an act, but a habbit Aristotle
|
|
|
|
|
Hi Thanks for the response.
See here I want to know abt the principal object.
Please Let me know if you have any idea on this
Praveen Chintamani
|
|
|
|
|
What are you using? ASP, ASP.NET, PHP???
If it were asp.net you could just use the web.config file to set the security on the folder/pages and use forms or windows based authentication.
|
|
|
|
|
I have a bit of a minor question, I have a table displaying document data, some records have a path and some don't. I have not been able to work out how to hide my document link to path for the records that don't have a path. Any feedback would be great! Here is my current code,
I know it needs to be something like this, but can't get the right combination,
<% if (Doc_Search.Fields.Item("Docu_Path").Value == (Request("null"))) { %>
">Document Link
<% } // if (Doc_Search.Fields.Item("Docu_Path").Value == (Request("null"))) %>
Thanks Guys!
You are only as good as your last project.
|
|
|
|
|
I'm still struggling to get my web service functioning. I have narrowed down the problem to the following line of code
m_FXConn = new OracleConnection( "Data Source=XXXX;User ID=XXXX; Password=XXXX" );
When this line of code is executed in the WebService, it throws the following exception
System.DllNotFoundException: Unable to load DLL (OraOps9.dll). In this case the OracleConnection is a class from the Oracle Data Provider for .NET. If instead I change and use the OracleConnection class provided by .NET, I still get the same exception thrown, except it is for a different file
System.DllNotFoundException: Unable to load DLL (Oci.dll). Both of these DLL's are native Win32 DLL and are not managed code. Is this a possible problem and if so how does one correct that? Oh and before you ask, "Is the PATH set correctly", I've checked that in the same code by obtaining the PATH from the environment variables and having that put to a trace output file. The Oracle /bin directory in the path does in fact contain these two files. Does anyone have any thoughts on what I might try to solve this problem. Thanks.
Chris Meech
We're more like a hobbiest in a Home Depot drooling at all the shiny power tools, rather than a craftsman that makes the chair to an exacting level of comfort by measuring the customer's butt. Marc Clifton
VB is like a toolbox, in the hands of a craftsman, you can end up with some amazing stuff, but without the skills to use it right you end up with Homer Simpson's attempt at building a barbeque or his attempt at a Spice rack. Michael P. Butler
|
|
|
|
|
The problem stems from the installation of IIS. It will create a local user ASP_NET that is used to run an executable that will load and run the web service. In my case the local group that this user was put into was Users and this group probably does not have access to Oracle? I'm guessing here because I modified the group membership for ASP_NET to Administrators and now the service runs like a champ. Obviously this will not be the final solution, but it solved my dilema.
I especially would like to thank Guillermo Rivero who provided some much needed assistance and even went so far as to take my code and compile so that we could test things on another environment. It's when someone provides this kind of assistance that I wish CP had a helper ranking system, cause Guillermo you have my 5. Thanks.
Chris Meech
We're more like a hobbiest in a Home Depot drooling at all the shiny power tools, rather than a craftsman that makes the chair to an exacting level of comfort by measuring the customer's butt. Marc Clifton
VB is like a toolbox, in the hands of a craftsman, you can end up with some amazing stuff, but without the skills to use it right you end up with Homer Simpson's attempt at building a barbeque or his attempt at a Spice rack. Michael P. Butler
|
|
|
|
|
Hi.
Is there a way to increase the time the acronym popup-text is shown, when a user places the mouse pointer over a label with acronym-tagg? I imagine there may be a setting in the webbrowser controlling this, but I have not found where I can increase the time. Ideally I would want to set this in the html-code but that does not seem possible.
Thanks
/EnkelIk
|
|
|
|
|
I think that this is a system setting (info box) that could possibly be tweaked through the registry or something like that ... otherwise you could use something like this:
http://webfx.eae.net/dhtml/tooltip/tooltip.html
or this
http://webfx.eae.net/dhtml/helptip/helptip.html
to control the delay time ...
Wally Atkins Newport News, VA, USA
|
|
|
|
|
Thanks for the tip. Is there a way I can control the display order? Now the tooltip-box is displayed under dropplists (<select></select) and half the text is hidden.
Thanks
/EnkelIk
|
|
|
|
|
I should think before I talk. The solution was already implemented in the javascript stuff.
Thanks again!
/EnkelIk
|
|
|
|
|
suppose my original text reads:
name: xxx
horoscope: yyyyy
but i want to change it such that my xxx and yyyyy are aligned together.
what code should i write?
|
|
|
|
|
Is this on an HTML page?
theJazzyBrain
Excelence is not an act, but a habbit Aristotle
|
|
|
|
|
Wrap in a table like this:
<table>
<tr>
<td>name:</td>
<td>xxx</td>
</tr>
<tr>
<td>horoscope:</td>
<td>yyyyy</td>
</tr>
</table>
|
|
|
|
|
Hi,
Do you know how to create instance of XML WebService automatically on IIS6.0 ?
When we access XML Webservice after machine running,
The instance of XML WebService is creating.
I'd like to create it automatically after machine runnning.
If you have some solutions( setting IIS or coding ...),
please tell me.
thanx in advance for your kindness.
best regards,
yu-yu,
|
|
|
|
|
Hello.
I've just finished installing an ASP fan fiction system and changed ONLY what the install file told me to do which is change the server settings and Access 2000 etc.
BUT now I have a problem:
Everytime I want to add something, it either doesn't show (like news and author) OR I get this error:
____________________________________________
Microsoft JET Database Engine error '80040e21'
Field 'Categories.CategoryName' cannot be a zero-length string.
/moonbrat/addcats.asp, line 60
_____________________________________________
the thing is, the obj.open only has str or something which is meant to read to the config file...it's very frustrating for me and I'm not sure how to fix it...
I really need help!
-Moonbrat
|
|
|
|
|
Let's have a look at addcats.asp. I'm guessing that you're seeing this after using the AddNew() method, and in the table 'Categories' you have the field 'CategoryName' set with the property that disallows a 0-length string. AddNew() creates a blank record which might be firing this error if your recordset type is Dynaset. Post a bit of your code here for a better look.
Heard in Bullhead City - "You haven't lost your girl - you've just lost your turn..." [sigh] So true...
|
|
|
|
|
Here's the entire Asp code (the rest was to generate the html so I left that out).
________________________________________________________
<title>Add a Category
<% If Request.QueryString("mode") = "doit" Then
If Trim(Request.Form("CategoryName")) = "" Then
Response.Write("
You didn't fill out one or more required fields. Use Back-Button of Browser to correct it or click here! ")
Else Set objConn Server.CreateObject("ADODB.Connection")
Set objRs = Server.CreateObject("ADODB.Recordset")
objConn.Open strConn
objRs.Open "SELECT * FROM Categories", objConn, 3, 3
objRs.AddNew
objRs("CategoryName") = Trim(Request.Form("SubName"))
objRs.Update
objRs.Close
objConn.Close
Set objRs = Nothing
Set objConn = Nothing
Response.Write("
Sub successfully added. Click to continue! ")
End If
End If
%>
____________________________________________________________
Sorry if it looks a mess but it looks better in the edit screen I use for the file as everything is connected.
Anyways, I have the add problem with EVERY script.
I can login but nothing else wants to do anything, like add authors, add news, add categories and add subcategories.
It's annoying me so much!
Thanks for looking at it...I hope you can find the problem where I can't.
At least if it's found in this script I can compare it to the rest of them.
Thanks.
-Moonbrat
|
|
|
|
|
Oh and here's the strConn it's meant to read:
strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=e:\1aa\moonbrat\~db\fanfiction.mdb;" 'MS Access 2000 using absolute path
|
|
|
|
|
Moonbrat wrote:
If Trim(Request.Form("CategoryName"))
Moonbrat wrote:
objRs("CategoryName") = Trim(Request.Form("SubName"))
What's going on here? Your script doesn't define or test SubName. Perhaps you should use:
objRs("CategoryName") = Trim(Request.Form("CategoryName"))
Heard in Bullhead City - "You haven't lost your girl - you've just lost your turn..." [sigh] So true...
|
|
|
|
|
Is there an object in the DOM that accesses the Chache of the browser? I would like to do a bookmarklet (www.bookmarklets.com[^]) to clear the cache with one click and not to walk throgh the Dialogs.
I search this possibility especially for mozilla, as I use it at Home.
Greets
Roland
|
|
|
|
|
Hi all
How to trim a string in javascript (remove spaces at beggining and end of a string)
I need a function like Trim$() in vbScript
thank you.
|
|
|
|