Showing posts with label web. Show all posts
Showing posts with label web. Show all posts

Saturday, March 31, 2012

Text Box Control MaxLenght Property Is Not Working

Hi All,

I have developed one web application.
In that I used aspnet web textBox control.
I have set maxlength property for that text box 300 and TextMode property as
multiline .

When i typed more than 3 or 4 line each line contains 30 to 40 characters,
If i clicked button for passing textbox value, that time my web page is not
responsding (no action taken).

The same page without refereshing if i delete some characters from my
textbox.
It is working.

Can someone help me for this?

--
Regards,
DhanaDhana,

What browser are you using?

"Dhana" <dhana@.celtycs-consulting.com> wrote in message
news:O4c8lqgDGHA.1028@.TK2MSFTNGP11.phx.gbl...
> Hi All,
> I have developed one web application.
> In that I used aspnet web textBox control.
> I have set maxlength property for that text box 300 and TextMode property
> as multiline .
> When i typed more than 3 or 4 line each line contains 30 to 40 characters,
> If i clicked button for passing textbox value, that time my web page is
> not responsding (no action taken).
> The same page without refereshing if i delete some characters from my
> textbox.
> It is working.
> Can someone help me for this?
> --
> Regards,
> Dhana
A TextBox in MultiLine mode is rendered as a TextArea HTML control. TextArea
as opposed to an Imput control does not have a maxlength property. It will
be ignored in the TextBox.

There are some 3rd party controls and projects out there that attempt to
control length with javascript for a multiline textbox. I haven't used any
of them so can't comment.

--

Andrew Robinson
www.binaryocean.com
www.bellinghamdotnet.org

"Dhana" <dhana@.celtycs-consulting.com> wrote in message
news:O4c8lqgDGHA.1028@.TK2MSFTNGP11.phx.gbl...
> Hi All,
> I have developed one web application.
> In that I used aspnet web textBox control.
> I have set maxlength property for that text box 300 and TextMode property
> as multiline .
> When i typed more than 3 or 4 line each line contains 30 to 40 characters,
> If i clicked button for passing textbox value, that time my web page is
> not responsding (no action taken).
> The same page without refereshing if i delete some characters from my
> textbox.
> It is working.
> Can someone help me for this?
> --
> Regards,
> Dhana
Ah yeah...

Try using a javscript function like:

function limitTextarea(textarea, maxlength) {
if (textarea.value.length > maxlength)
textarea.value = textarea.value.substring(0, maxlength);
}

and set the onchange attribute (either programatically with
textbox.attribute.add() or declaratively) on the textbox to call the
function.

"Andrew Robinson" <nemoby@.nospam.nospam> wrote in message
news:%23FQJ$5hDGHA.3820@.TK2MSFTNGP10.phx.gbl...
>A TextBox in MultiLine mode is rendered as a TextArea HTML control.
>TextArea as opposed to an Imput control does not have a maxlength property.
>It will be ignored in the TextBox.
> There are some 3rd party controls and projects out there that attempt to
> control length with javascript for a multiline textbox. I haven't used any
> of them so can't comment.
> --
> Andrew Robinson
> www.binaryocean.com
> www.bellinghamdotnet.org
>
> "Dhana" <dhana@.celtycs-consulting.com> wrote in message
> news:O4c8lqgDGHA.1028@.TK2MSFTNGP11.phx.gbl...
>>
>> Hi All,
>>
>> I have developed one web application.
>> In that I used aspnet web textBox control.
>> I have set maxlength property for that text box 300 and TextMode property
>> as multiline .
>>
>> When i typed more than 3 or 4 line each line contains 30 to 40
>> characters,
>> If i clicked button for passing textbox value, that time my web page is
>> not responsding (no action taken).
>>
>> The same page without refereshing if i delete some characters from my
>> textbox.
>> It is working.
>>
>> Can someone help me for this?
>>
>> --
>> Regards,
>> Dhana
>>
>>
>>

Text Box Control MaxLenght Property Is Not Working

Hi All,
I have developed one web application.
In that I used aspnet web textBox control.
I have set maxlength property for that text box 300 and TextMode property as
multiline .
When i typed more than 3 or 4 line each line contains 30 to 40 characters,
If i clicked button for passing textbox value, that time my web page is not
responsding (no action taken).
The same page without refereshing if i delete some characters from my
textbox.
It is working.
Can someone help me for this?
Regards,
DhanaDhana,
What browser are you using?
"Dhana" <dhana@.celtycs-consulting.com> wrote in message
news:O4c8lqgDGHA.1028@.TK2MSFTNGP11.phx.gbl...
> Hi All,
> I have developed one web application.
> In that I used aspnet web textBox control.
> I have set maxlength property for that text box 300 and TextMode property
> as multiline .
> When i typed more than 3 or 4 line each line contains 30 to 40 characters,
> If i clicked button for passing textbox value, that time my web page is
> not responsding (no action taken).
> The same page without refereshing if i delete some characters from my
> textbox.
> It is working.
> Can someone help me for this?
> --
> Regards,
> Dhana
>
>
A TextBox in MultiLine mode is rendered as a TextArea HTML control. TextArea
as opposed to an Imput control does not have a maxlength property. It will
be ignored in the TextBox.
There are some 3rd party controls and projects out there that attempt to
control length with javascript for a multiline textbox. I haven't used any
of them so can't comment.
Andrew Robinson
www.binaryocean.com
www.bellinghamdotnet.org
"Dhana" <dhana@.celtycs-consulting.com> wrote in message
news:O4c8lqgDGHA.1028@.TK2MSFTNGP11.phx.gbl...
> Hi All,
> I have developed one web application.
> In that I used aspnet web textBox control.
> I have set maxlength property for that text box 300 and TextMode property
> as multiline .
> When i typed more than 3 or 4 line each line contains 30 to 40 characters,
> If i clicked button for passing textbox value, that time my web page is
> not responsding (no action taken).
> The same page without refereshing if i delete some characters from my
> textbox.
> It is working.
> Can someone help me for this?
> --
> Regards,
> Dhana
>
>
Ah yeah...
Try using a javscript function like:
function limitTextarea(textarea, maxlength) {
if (textarea.value.length > maxlength)
textarea.value = textarea.value.substring(0, maxlength);
}
and set the onchange attribute (either programatically with
textbox.attribute.add() or declaratively) on the textbox to call the
function.
"Andrew Robinson" <nemoby@.nospam.nospam> wrote in message
news:%23FQJ$5hDGHA.3820@.TK2MSFTNGP10.phx.gbl...
>A TextBox in MultiLine mode is rendered as a TextArea HTML control.
>TextArea as opposed to an Imput control does not have a maxlength property.
>It will be ignored in the TextBox.
> There are some 3rd party controls and projects out there that attempt to
> control length with javascript for a multiline textbox. I haven't used any
> of them so can't comment.
> --
> Andrew Robinson
> www.binaryocean.com
> www.bellinghamdotnet.org
>
> "Dhana" <dhana@.celtycs-consulting.com> wrote in message
> news:O4c8lqgDGHA.1028@.TK2MSFTNGP11.phx.gbl...
>

text box validation

I am using html text box, and the text area in my asp.net applicatioon c# rather than using the web form "text bpxes"

I then put a validator the typical one that VS.net provides and a web form submit

the validator makes sure that the text boses are fill...but when I hit submit nothing happens even when I fill the boxes ... I can see that the page is not even going back to the server

any ideas

WashingtonHi,

please provide the code that doesn't work out for you and be sure to use the apropriate tags (view post 98605).

On the other hand, I don't think it's possible to set theControlToValidate Property of a normal html textbox that isn't registered as a htmlcontrol (with the attribute runat="server").

Grz, Kris.
There is a bug in the client-side scripting for ASP.NET 1.1 SP1. Please see this thread for a solution:http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=739537

Text Box Values in Repeater being Added on Input

Hello,

I have an existing repeater on my web application that has descriptions, item numbers, and prices. The marketing person at my company wants me to add a field so that the sales people can enter discounted prices next to the regular prices. So I'm going to have to add a asp:textbox to the repeater.

What would be the easiest way of adding text fields in the repeater so that when there is input the values would add up in a label. I won't know how many items there will be in the repeater.

I'll probably need to write some javascript for this but I'm wondering what the best way of doing this is?

Thanks!
JamesIt might help if I knew how to check to see if a control exists or not? Anyone know?
The repeater should have a .Controls property with a .Length or .Count. (Count, I beleive).

From there, just start a standard FOR loop and check each control. The .ToString on the control indexer (myRepeater.Controls[i].ToString()) will tell you what TYPE of control it is. Only check the textbox types...

Text box values are not being considered?

Currently i m working on a web page that edits the user information. The already stored info. from the database is being displayed in diffrent text boxes so that user can edit it. The problem is that even when user changes the information in the any of the text-boxes & clicks the submit button, then instead of current value of text-boxes the previously assigned value is being considered. Whats the possible cause of this error?

Possibly... your records arent getting updated


bh_84:

Currently i m working on a web page that edits the user information. The already stored info. from the database is being displayed in diffrent text boxes so that user can edit it. The problem is that even when user changes the information in the any of the text-boxes & clicks the submit button, then instead of current value of text-boxes the previously assigned value is being considered. Whats the possible cause of this error?

Are they data bound controls? That could be your problem. Since the page load method will run before the click handler, if those databound controls are populated on every post back, they are likely being overwritten there. You will need to only data bind the text boxes when the page isn't posting back.


No they r simple text box controls. values are being assigned to them using text property & not through data binding but still on submiting, the not the current values but the previous ones are being considered.

Doesn't matter if you are databinding or assigning the values yourself. Probably what is happening is the user changes the value and then hits submit to post back the page. At that point your code is setting the Text property for these text values to whatever the initial value is just like it does when you first load the page and is overwriting whatever change the user made. You are probably always setting the values even on postback so you never get the values the user specifies. In your code you need to only set the values if it is not a postback. So something like:

If (!IsPostBack)

{

// Set all textboxes to initial values here.

}

That is C# so if you're using VB you'll need to do the similar thing in VB. This will make sure that when the page is posted back the textboxes don't get overwritten witih the initial values and have whatever values were entered at the browser.

Wednesday, March 28, 2012

text box, command button and required field Validator

there is one text box, command button and one required
field validator control on a web form.
i want user to enter the data in text box i.e it is
mandatory field. so i had used required validator for
this purpose. all works perfectly it gave me the
message that please insert the data etc. but the
problem is that after that i want focus to be put back
on the control. [ please give me the solution keeping
in mind that there could be many such controls on the
form and i want to set focus on respective text box if
user doesn't enter the value for mandatory fiels ]If you want focus back on the textbox, you're in for a lot of work. Its not hard to put focus on the control using javascript, that's easy enough.

The problem stems from what you later ammend to your question (there could be many such controls). Ok... so if there's only one control, that control gets the focus. But if there are five, the fifth one will get focus (because each will apply focus, but the last one to attempt to do so will be the one that wins). And if the last control gets focus, what's the point really - you want it to be user friendly, and the user is going to want to start at the top, not at the bottom of the page.

So you now have a problem - how do you get focus on the first control on what could be a possible list of included controls. For that - you need a way to store the collection of the controls, and some code to determine which is the top-most (first rendered) control that flunked validation and requires focus.

You will need to tip-toe through the server-client architecture, using a combination of code-behind and javascript to do so.

If you wish to explore it further - you best describe more on what your control is (you mention a textbox, validator, and a button - button for each control or one button on the entire page?)

Text boxes in web pages

Am I the only person in the world or are there others that experience this problem.

When programming a web page, I create a table with text boxes in it. The background color of the boxes change to a yellow colr when the app is run.

I have even tried resetting the color in code but it still changes to yellow.

This has happened in several versions of VB .net that I have used.

Any solutions would be greatly appretiated as I have tried all that I know.

PeterGThread Moved
It's not ASP.NET - it's the Google toolbar, or any other autocomplete toolbar, you have installed.
Yes, that is true. I just learned of this in another thread a few hours ago thanks to timeshifter.

Uninstall the google toolbar.

Text change management

We have a web application that has a lot of large textareas for data
collection. We need to track who makes changes, when and what changes
were made. Right now I'm storing the entire text in a separate SQL
table
before the changes are saved. Needless to say this table is growing
quite large and is beginning to cause performance problems.
A lot of the changes are small, like capitalization or punctuation. Is
there anything that is available that somehow calculates just the
change that occurs? It's kind of hard to explain, but I want to store
only the modifications. But I also need to rebuild the previous
document if necessary.
I know something has to exist but I can't even think of a term to
search for.
Any guidance would be great,
ADIndustry term.
Track Changes in Microsoft Word used to keep track of the changes you make
to a document.
You can then choose to accept or reject those changes.Let's say Bill creates
a document and emails it to his colleague, Gus, for feedback. Gus can edit
the document with Track Changes on. When Gus sends the document back to
Bill, Bill can see what changes Gus had made.
Track Changes is also known as redline, or redlining.
This is because some industries traditionally draw a vertical red line in
the margin to show that some text has changed.
It is easier if you have complete control of the editor being used to make
the changes. so you can keep track of the changes as they are entered.
record them and mark their position.
Otherwise you need to go through analysis to see what has changed.
What is causing the performance issue for you?
Sorry this is only a 1 cent contribution.
SA
<addoty@.gmail.com> wrote in message
news:1146593511.645751.300490@.v46g2000cwv.googlegroups.com...
> We have a web application that has a lot of large textareas for data
> collection. We need to track who makes changes, when and what changes
> were made. Right now I'm storing the entire text in a separate SQL
> table
> before the changes are saved. Needless to say this table is growing
> quite large and is beginning to cause performance problems.
> A lot of the changes are small, like capitalization or punctuation. Is
> there anything that is available that somehow calculates just the
> change that occurs? It's kind of hard to explain, but I want to store
> only the modifications. But I also need to rebuild the previous
> document if necessary.
> I know something has to exist but I can't even think of a term to
> search for.
> Any guidance would be great,
> AD
>
http://www.heikniemi.net/hc/archives/000124.html
<addoty@.gmail.com> wrote in message
news:1146593511.645751.300490@.v46g2000cwv.googlegroups.com...
> We have a web application that has a lot of large textareas for data
> collection. We need to track who makes changes, when and what changes
> were made. Right now I'm storing the entire text in a separate SQL
> table
> before the changes are saved. Needless to say this table is growing
> quite large and is beginning to cause performance problems.
> A lot of the changes are small, like capitalization or punctuation. Is
> there anything that is available that somehow calculates just the
> change that occurs? It's kind of hard to explain, but I want to store
> only the modifications. But I also need to rebuild the previous
> document if necessary.
> I know something has to exist but I can't even think of a term to
> search for.
> Any guidance would be great,
> AD
>
SA, thanks for the reply.
I have a web application that has lots of large textareas. These are
modified frequently and we need to track who makes what changes and
when. For example, one textarea could have 3000 words. Someone
browses to this record and add 7 words and saves it.
I'm currently saving all original 3000 words in a separate table.
Someone else browses to this 10 minutes later and changes the
capitalization of 4 words. I save all 3007 words in the change table.
Now multiply this by >100 changes a day and multiply it again by >1000
textareas and you can see my problem.
I need to figure out how to save just the modifications and not the
whole textarea.
AD
Thanks for the reply but this...
http://www.heikniemi.net/hc/archives/000124.html
doesn't really address my issue.
AD,
This is not very easy. I am just thinking with you here.
May record every text change made at the client side then save it on the
server side.
May compare all text with original, at server side, and note changes.
What happens when you make 100 changes to the changes... then you have to go
through the Changes-Transactions to get to the final one.
So there is a trade off here space vs. speed.
What you might also have is a Background Process in the middle of the night
that can compress your data.
to be viewed it has to be uncompressed. non compressed data are viewed with
no further processing.
What about Zipping things up and unzip before viewing. zipping can reduce
the size dramatically but required processing.
You still have to send all 3000 words down to the client no matter what.
What you are saying your speed is slow at the sql-server side?
SA
<addoty@.gmail.com> wrote in message
news:1146599884.294939.102930@.j73g2000cwa.googlegroups.com...
> SA, thanks for the reply.
> I have a web application that has lots of large textareas. These are
> modified frequently and we need to track who makes what changes and
> when. For example, one textarea could have 3000 words. Someone
> browses to this record and add 7 words and saves it.
> I'm currently saving all original 3000 words in a separate table.
> Someone else browses to this 10 minutes later and changes the
> capitalization of 4 words. I save all 3007 words in the change table.
> Now multiply this by >100 changes a day and multiply it again by >1000
> textareas and you can see my problem.
> I need to figure out how to save just the modifications and not the
> whole textarea.
> AD
>
Thanks for you help.
What I'm thinking is, say the text is 3000 words. Someone edits and
adds 7 words. Instead of saving the previous 3000 words, I could save
the new changes (3007 words) and somehow save a modification log or
change log that can be used to recreate the 3000 original 3000 words if
necessary. I don't know if it would be a text comparison or some sort
of binary comparison to create this modification log.
I'm thinking there has to be some sort of commericial tool that does
this.
AD
How about using ZIP for the OLD copy?
File1-Version 1.0
Zip this as File-1-mmddyyyyhhmiss.zip
Any changes implemented to original file
Zip this as File-1-mmddyyyyhhmiss.zip
That way you can always have single copy of the latest and rest of them
are saved as ZIP file.
I like this zip idea. Is there any way to implement this at the SQL
Server level?
AD

Text change management

We have a web application that has a lot of large textareas for data
collection. We need to track who makes changes, when and what changes
were made. Right now I'm storing the entire text in a separate SQL
table
before the changes are saved. Needless to say this table is growing
quite large and is beginning to cause performance problems.

A lot of the changes are small, like capitalization or punctuation. Is

there anything that is available that somehow calculates just the
change that occurs? It's kind of hard to explain, but I want to store
only the modifications. But I also need to rebuild the previous
document if necessary.

I know something has to exist but I can't even think of a term to
search for.

Any guidance would be great,
ADIndustry term.

Track Changes in Microsoft Word used to keep track of the changes you make
to a document.
You can then choose to accept or reject those changes.Let's say Bill creates
a document and emails it to his colleague, Gus, for feedback. Gus can edit
the document with Track Changes on. When Gus sends the document back to
Bill, Bill can see what changes Gus had made.

Track Changes is also known as redline, or redlining.
This is because some industries traditionally draw a vertical red line in
the margin to show that some text has changed.

It is easier if you have complete control of the editor being used to make
the changes. so you can keep track of the changes as they are entered.
record them and mark their position.

Otherwise you need to go through analysis to see what has changed.

What is causing the performance issue for you?

Sorry this is only a 1 cent contribution.

SA

<addoty@.gmail.com> wrote in message
news:1146593511.645751.300490@.v46g2000cwv.googlegr oups.com...
> We have a web application that has a lot of large textareas for data
> collection. We need to track who makes changes, when and what changes
> were made. Right now I'm storing the entire text in a separate SQL
> table
> before the changes are saved. Needless to say this table is growing
> quite large and is beginning to cause performance problems.
> A lot of the changes are small, like capitalization or punctuation. Is
> there anything that is available that somehow calculates just the
> change that occurs? It's kind of hard to explain, but I want to store
> only the modifications. But I also need to rebuild the previous
> document if necessary.
> I know something has to exist but I can't even think of a term to
> search for.
> Any guidance would be great,
> AD
http://www.heikniemi.net/hc/archives/000124.html

<addoty@.gmail.com> wrote in message
news:1146593511.645751.300490@.v46g2000cwv.googlegr oups.com...
> We have a web application that has a lot of large textareas for data
> collection. We need to track who makes changes, when and what changes
> were made. Right now I'm storing the entire text in a separate SQL
> table
> before the changes are saved. Needless to say this table is growing
> quite large and is beginning to cause performance problems.
> A lot of the changes are small, like capitalization or punctuation. Is
> there anything that is available that somehow calculates just the
> change that occurs? It's kind of hard to explain, but I want to store
> only the modifications. But I also need to rebuild the previous
> document if necessary.
> I know something has to exist but I can't even think of a term to
> search for.
> Any guidance would be great,
> AD
SA, thanks for the reply.

I have a web application that has lots of large textareas. These are
modified frequently and we need to track who makes what changes and
when. For example, one textarea could have 3000 words. Someone
browses to this record and add 7 words and saves it.

I'm currently saving all original 3000 words in a separate table.

Someone else browses to this 10 minutes later and changes the
capitalization of 4 words. I save all 3007 words in the change table.

Now multiply this by >100 changes a day and multiply it again by >1000
textareas and you can see my problem.

I need to figure out how to save just the modifications and not the
whole textarea.

AD
Thanks for the reply but this...

http://www.heikniemi.net/hc/archives/000124.html

doesn't really address my issue.
AD,

This is not very easy. I am just thinking with you here.

May record every text change made at the client side then save it on the
server side.

May compare all text with original, at server side, and note changes.

What happens when you make 100 changes to the changes... then you have to go
through the Changes-Transactions to get to the final one.

So there is a trade off here space vs. speed.

What you might also have is a Background Process in the middle of the night
that can compress your data.

to be viewed it has to be uncompressed. non compressed data are viewed with
no further processing.

What about Zipping things up and unzip before viewing. zipping can reduce
the size dramatically but required processing.

You still have to send all 3000 words down to the client no matter what.

What you are saying your speed is slow at the sql-server side?

SA

<addoty@.gmail.com> wrote in message
news:1146599884.294939.102930@.j73g2000cwa.googlegr oups.com...
> SA, thanks for the reply.
> I have a web application that has lots of large textareas. These are
> modified frequently and we need to track who makes what changes and
> when. For example, one textarea could have 3000 words. Someone
> browses to this record and add 7 words and saves it.
> I'm currently saving all original 3000 words in a separate table.
> Someone else browses to this 10 minutes later and changes the
> capitalization of 4 words. I save all 3007 words in the change table.
> Now multiply this by >100 changes a day and multiply it again by >1000
> textareas and you can see my problem.
> I need to figure out how to save just the modifications and not the
> whole textarea.
> AD
Thanks for you help.

What I'm thinking is, say the text is 3000 words. Someone edits and
adds 7 words. Instead of saving the previous 3000 words, I could save
the new changes (3007 words) and somehow save a modification log or
change log that can be used to recreate the 3000 original 3000 words if
necessary. I don't know if it would be a text comparison or some sort
of binary comparison to create this modification log.

I'm thinking there has to be some sort of commericial tool that does
this.

AD
How about using ZIP for the OLD copy?

File1-Version 1.0
Zip this as File-1-mmddyyyyhhmiss.zip
Any changes implemented to original file
Zip this as File-1-mmddyyyyhhmiss.zip

That way you can always have single copy of the latest and rest of them
are saved as ZIP file.
I like this zip idea. Is there any way to implement this at the SQL
Server level?

AD

Text Editing toolbar in asp.net 2.0

Hi..

Support & Guidence needed for developing text formatting Toolbar for asp.net form.

Generally it is seen in web mail -> compose mail side for changing font, size, color, Aligement, Paragraphs etc.

We also need help, How to store these data & call back with formatted values.

plz help.

http://xstandard.com/

Use the Lite version Text Editor its free...

Text Editor

Does anyone know of a rich text (WYSIWYG) editor to include in a web page for ASP.NET 2.0? I am using VS2005 and I am unable to get FreeTextBox to work. I need a different one, or if somebody know how to get FTB to work...I would greatly appreciate it!I thought that .net 2 could host 1.x apps/assemblies, in which case it should be able to correctly host FTB or any current 1.x control.
What sort of errors are you getting?

It says "Error Creating Control - Object reference not set to an instance of object". I followed all steps listed on the help. I also got it working fine in VS2003. Any ideas?

Saturday, March 24, 2012

text placing directly?

hi guys,

I would like to have my web user control take a piece of text directly from it's calling tag,eg:

<UserControl:Search id="Search" runat="server" SomeText="Text"></UserControl:Search
And have it render this text in it's .ascx file. The .cs file I have looks something like this:

namespace Searching
{
using System;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

protected string sometext;

public class Search : System.Web.UI.UserControl
{
public string SomeText
{
get { return sometext; }
set { sometext = value; }
}

private void Page_Load(object sender, System.EventArgs e)
{
}
}
}

My question is: How do I get just a plain string to render directly to, for example:

the HERE part?

The actual application of this code is to pass by tag argument the url of a single image and have it render as part of the ascx output.

Thanks,
Matt.Try this:

<%@. Control Language="C#" %>
<script runat="server"
protected string sometext;

public string SomeText
{
get { return sometext; }
set { sometext = value; }
}

private void Page_Load(object sender, System.EventArgs e)
{
thisLink.Attributes.Add( "href", SomeText + ".aspx" );
thisLink.InnerHtml = "goto " + SomeText + " page";
}

</script>
<html>
<head>
</head>
<body>
<form runat="server">
<a id="thisLink" runat="server"></a>
</form>
</body>
</html>

(I don't actually use C#, so the code might be of poor quality ...)

Text to speech (TTS) application on web server

Hi.All
I'm working on a TTS application.
It runs on my local pc (WindowXP pro) without any error.
Microsoft Visual Studio .NET 2003, Microsoft .NET Framework SDK v1.1,
Microsoft Speech Application SDK 1.1. are installed on my local pc.
My web server is Windows 2003 server Enterprise.
Microsoft .NET Framework Version:1.1 and Microsoft Speech Server 2004 are
installed on the server.
The TTS application on the server gives following error message.
Please help!
Best regards
Server Error in '/speech' Application.
----
--
Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.
Parser Error Message: File or assembly name Microsoft.Speech.Web, or one of
its dependencies, was not found.
Source Error:
Line 1: <%@dotnet.itags.org. Page language="c#" Codebehind="Default.aspx.cs"
AutoEventWireup="false" Inherits="ExploringTextToSpeech._Default" %>
Line 2: <%@dotnet.itags.org. Register TagPrefix="speech" Namespace="Microsoft.Speech.Web.UI"
Assembly="Microsoft.Speech.Web, Version=1.0.3200.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" %>
Line 3: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
Line 4: <HTML>
Source File: C:\myWWW\Copy_of_ExploringTextToSpeech\D
efault.aspx Line: 2
Assembly Load Trace: The following information can be helpful to determine
why the assembly 'Microsoft.Speech.Web' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Speech.Web, Version=1.0.3200.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35
(Fully-specified)
LOG: Appbase = file:///C:/myWWW/Copy_of_ExploringTextToSpeech
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===
LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file
(C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet.config).
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: Microsoft.Speech.Web, Version=1.0.3200.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/speech/4e84447f/7b1e538e/Microsoft.Speech.Web.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/speech/4e84447f/7b1e538e/Microsoft.Speech.Web/Microsoft.Speech.Web.DLL
.
LOG: Attempting download of new URL
file:///C:/myWWW/Copy_of_ExploringTextToSpeech/bin/Microsoft.Speech.Web.DLL.
LOG: Attempting download of new URL
file:///C:/myWWW/Copy_of_ExploringTextToSpeech/bin/Microsoft.Speech.Web/Micr
osoft.Speech.Web.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/speech/4e84447f/7b1e538e/Microsoft.Speech.Web.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/speech/4e84447f/7b1e538e/Microsoft.Speech.Web/Microsoft.Speech.Web.EXE
.
LOG: Attempting download of new URL
file:///C:/myWWW/Copy_of_ExploringTextToSpeech/bin/Microsoft.Speech.Web.EXE.
LOG: Attempting download of new URL
file:///C:/myWWW/Copy_of_ExploringTextToSpeech/bin/Microsoft.Speech.Web/Micr
osoft.Speech.Web.EXE.
Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET
Version:1.1.4322.2300Speech on a web server? What are you trying to do? Have users talk to you
web page? That, if you could even get it to work, would run on the client
Jeff
"Onur" <onur@.ottoturkey.com.tr> wrote in message
news:eeBvtRVXGHA.4144@.TK2MSFTNGP04.phx.gbl...
> Hi.All
> I'm working on a TTS application.
> It runs on my local pc (WindowXP pro) without any error.
> Microsoft Visual Studio .NET 2003, Microsoft .NET Framework SDK v1.1,
> Microsoft Speech Application SDK 1.1. are installed on my local pc.
> My web server is Windows 2003 server Enterprise.
> Microsoft .NET Framework Version:1.1 and Microsoft Speech Server 2004 are
> installed on the server.
> The TTS application on the server gives following error message.
> Please help!
> Best regards
>
> Server Error in '/speech' Application.
> ----
--
> Parser Error
> Description: An error occurred during the parsing of a resource required
> to service this request. Please review the following specific parse error
> details and modify your source file appropriately.
> Parser Error Message: File or assembly name Microsoft.Speech.Web, or one
> of its dependencies, was not found.
> Source Error:
> Line 1: <%@. Page language="c#" Codebehind="Default.aspx.cs"
> AutoEventWireup="false" Inherits="ExploringTextToSpeech._Default" %>
> Line 2: <%@. Register TagPrefix="speech"
> Namespace="Microsoft.Speech.Web.UI" Assembly="Microsoft.Speech.Web,
> Version=1.0.3200.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
> Line 3: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
> Line 4: <HTML>
> Source File: C:\myWWW\Copy_of_ExploringTextToSpeech\D
efault.aspx Line:
> 2
> Assembly Load Trace: The following information can be helpful to determine
> why the assembly 'Microsoft.Speech.Web' could not be loaded.
> === Pre-bind state information ===
> LOG: DisplayName = Microsoft.Speech.Web, Version=1.0.3200.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35
> (Fully-specified)
> LOG: Appbase = file:///C:/myWWW/Copy_of_ExploringTextToSpeech
> LOG: Initial PrivatePath = bin
> Calling assembly : (Unknown).
> ===
> LOG: Publisher policy file is not found.
> LOG: No redirect found in host configuration file
> (C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet.config).
> LOG: Using machine configuration file from
> C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
> LOG: Post-policy reference: Microsoft.Speech.Web, Version=1.0.3200.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35
> LOG: Attempting download of new URL
> file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
> Files/speech/4e84447f/7b1e538e/Microsoft.Speech.Web.DLL.
> LOG: Attempting download of new URL
> file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
> Files/speech/4e84447f/7b1e538e/Microsoft.Speech.Web/Microsoft.Speech.Web.D
LL.
> LOG: Attempting download of new URL
> file:///C:/myWWW/Copy_of_ExploringTextToSpeech/bin/Microsoft.Speech.Web.DL
L.
> LOG: Attempting download of new URL
> file:///C:/myWWW/Copy_of_ExploringTextToSpeech/bin/Microsoft.Speech.Web/Mi
crosoft.Speech.Web.DLL.
> LOG: Attempting download of new URL
> file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
> Files/speech/4e84447f/7b1e538e/Microsoft.Speech.Web.EXE.
> LOG: Attempting download of new URL
> file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
> Files/speech/4e84447f/7b1e538e/Microsoft.Speech.Web/Microsoft.Speech.Web.E
XE.
> LOG: Attempting download of new URL
> file:///C:/myWWW/Copy_of_ExploringTextToSpeech/bin/Microsoft.Speech.Web.EX
E.
> LOG: Attempting download of new URL
> file:///C:/myWWW/Copy_of_ExploringTextToSpeech/bin/Microsoft.Speech.Web/Mi
crosoft.Speech.Web.EXE.
>
> Version Information: Microsoft .NET Framework Version:1.1.4322.2300;
> ASP.NET Version:1.1.4322.2300
>

Text to speech (TTS) application on web server

Hi.All

I'm working on a TTS application.
It runs on my local pc (WindowXP pro) without any error.
Microsoft Visual Studio .NET 2003, Microsoft .NET Framework SDK v1.1,
Microsoft Speech Application SDK 1.1. are installed on my local pc.

My web server is Windows 2003 server Enterprise.
Microsoft .NET Framework Version:1.1 and Microsoft Speech Server 2004 are
installed on the server.

The TTS application on the server gives following error message.

Please help!

Best regards

Server Error in '/speech' Application.
------------------------

Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: File or assembly name Microsoft.Speech.Web, or one of
its dependencies, was not found.

Source Error:

Line 1: <%@dotnet.itags.org. Page language="c#" Codebehind="Default.aspx.cs"
AutoEventWireup="false" Inherits="ExploringTextToSpeech._Default" %>
Line 2: <%@dotnet.itags.org. Register TagPrefix="speech" Namespace="Microsoft.Speech.Web.UI"
Assembly="Microsoft.Speech.Web, Version=1.0.3200.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" %>
Line 3: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
Line 4: <HTML
Source File: C:\myWWW\Copy_of_ExploringTextToSpeech\Default.asp x Line: 2

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'Microsoft.Speech.Web' could not be loaded.

=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Speech.Web, Version=1.0.3200.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35
(Fully-specified)
LOG: Appbase = file:///C:/myWWW/Copy_of_ExploringTextToSpeech
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file
(C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspn et.config).
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\confi g\machine.config.
LOG: Post-policy reference: Microsoft.Speech.Web, Version=1.0.3200.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/speech/4e84447f/7b1e538e/Microsoft.Speech.Web.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/speech/4e84447f/7b1e538e/Microsoft.Speech.Web/Microsoft.Speech.Web.DLL.
LOG: Attempting download of new URL
file:///C:/myWWW/Copy_of_ExploringTextToSpeech/bin/Microsoft.Speech.Web.DLL.
LOG: Attempting download of new URL
file:///C:/myWWW/Copy_of_ExploringTextToSpeech/bin/Microsoft.Speech.Web/Microsoft.Speech.Web.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/speech/4e84447f/7b1e538e/Microsoft.Speech.Web.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/speech/4e84447f/7b1e538e/Microsoft.Speech.Web/Microsoft.Speech.Web.EXE.
LOG: Attempting download of new URL
file:///C:/myWWW/Copy_of_ExploringTextToSpeech/bin/Microsoft.Speech.Web.EXE.
LOG: Attempting download of new URL
file:///C:/myWWW/Copy_of_ExploringTextToSpeech/bin/Microsoft.Speech.Web/Microsoft.Speech.Web.EXE.

Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET
Version:1.1.4322.2300Speech on a web server? What are you trying to do? Have users talk to you
web page? That, if you could even get it to work, would run on the client

Jeff

"Onur" <onur@.ottoturkey.com.tr> wrote in message
news:eeBvtRVXGHA.4144@.TK2MSFTNGP04.phx.gbl...
> Hi.All
> I'm working on a TTS application.
> It runs on my local pc (WindowXP pro) without any error.
> Microsoft Visual Studio .NET 2003, Microsoft .NET Framework SDK v1.1,
> Microsoft Speech Application SDK 1.1. are installed on my local pc.
> My web server is Windows 2003 server Enterprise.
> Microsoft .NET Framework Version:1.1 and Microsoft Speech Server 2004 are
> installed on the server.
> The TTS application on the server gives following error message.
> Please help!
> Best regards
>
> Server Error in '/speech' Application.
> ------------------------
> Parser Error
> Description: An error occurred during the parsing of a resource required
> to service this request. Please review the following specific parse error
> details and modify your source file appropriately.
> Parser Error Message: File or assembly name Microsoft.Speech.Web, or one
> of its dependencies, was not found.
> Source Error:
> Line 1: <%@. Page language="c#" Codebehind="Default.aspx.cs"
> AutoEventWireup="false" Inherits="ExploringTextToSpeech._Default" %>
> Line 2: <%@. Register TagPrefix="speech"
> Namespace="Microsoft.Speech.Web.UI" Assembly="Microsoft.Speech.Web,
> Version=1.0.3200.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
> Line 3: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
> Line 4: <HTML>
> Source File: C:\myWWW\Copy_of_ExploringTextToSpeech\Default.asp x Line:
> 2
> Assembly Load Trace: The following information can be helpful to determine
> why the assembly 'Microsoft.Speech.Web' could not be loaded.
> === Pre-bind state information ===
> LOG: DisplayName = Microsoft.Speech.Web, Version=1.0.3200.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35
> (Fully-specified)
> LOG: Appbase = file:///C:/myWWW/Copy_of_ExploringTextToSpeech
> LOG: Initial PrivatePath = bin
> Calling assembly : (Unknown).
> ===
> LOG: Publisher policy file is not found.
> LOG: No redirect found in host configuration file
> (C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspn et.config).
> LOG: Using machine configuration file from
> C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\confi g\machine.config.
> LOG: Post-policy reference: Microsoft.Speech.Web, Version=1.0.3200.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35
> LOG: Attempting download of new URL
> file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
> Files/speech/4e84447f/7b1e538e/Microsoft.Speech.Web.DLL.
> LOG: Attempting download of new URL
> file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
> Files/speech/4e84447f/7b1e538e/Microsoft.Speech.Web/Microsoft.Speech.Web.DLL.
> LOG: Attempting download of new URL
> file:///C:/myWWW/Copy_of_ExploringTextToSpeech/bin/Microsoft.Speech.Web.DLL.
> LOG: Attempting download of new URL
> file:///C:/myWWW/Copy_of_ExploringTextToSpeech/bin/Microsoft.Speech.Web/Microsoft.Speech.Web.DLL.
> LOG: Attempting download of new URL
> file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
> Files/speech/4e84447f/7b1e538e/Microsoft.Speech.Web.EXE.
> LOG: Attempting download of new URL
> file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
> Files/speech/4e84447f/7b1e538e/Microsoft.Speech.Web/Microsoft.Speech.Web.EXE.
> LOG: Attempting download of new URL
> file:///C:/myWWW/Copy_of_ExploringTextToSpeech/bin/Microsoft.Speech.Web.EXE.
> LOG: Attempting download of new URL
> file:///C:/myWWW/Copy_of_ExploringTextToSpeech/bin/Microsoft.Speech.Web/Microsoft.Speech.Web.EXE.
>
> Version Information: Microsoft .NET Framework Version:1.1.4322.2300;
> ASP.NET Version:1.1.4322.2300
Have you installed Microsoft Speech Application SDK 1.1 on the server?

If that doesn't work, try posting to microsoft.public.speech.server

Anthony

"Onur" wrote:

> Hi.All
> I'm working on a TTS application.
> It runs on my local pc (WindowXP pro) without any error.
> Microsoft Visual Studio .NET 2003, Microsoft .NET Framework SDK v1.1,
> Microsoft Speech Application SDK 1.1. are installed on my local pc.
> My web server is Windows 2003 server Enterprise.
> Microsoft .NET Framework Version:1.1 and Microsoft Speech Server 2004 are
> installed on the server.
> The TTS application on the server gives following error message.
> Please help!
> Best regards
>
> Server Error in '/speech' Application.
> ------------------------
> Parser Error
> Description: An error occurred during the parsing of a resource required to
> service this request. Please review the following specific parse error
> details and modify your source file appropriately.
> Parser Error Message: File or assembly name Microsoft.Speech.Web, or one of
> its dependencies, was not found.
> Source Error:
> Line 1: <%@. Page language="c#" Codebehind="Default.aspx.cs"
> AutoEventWireup="false" Inherits="ExploringTextToSpeech._Default" %>
> Line 2: <%@. Register TagPrefix="speech" Namespace="Microsoft.Speech.Web.UI"
> Assembly="Microsoft.Speech.Web, Version=1.0.3200.0, Culture=neutral,
> PublicKeyToken=31bf3856ad364e35" %>
> Line 3: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
> Line 4: <HTML>
> Source File: C:\myWWW\Copy_of_ExploringTextToSpeech\Default.asp x Line: 2
> Assembly Load Trace: The following information can be helpful to determine
> why the assembly 'Microsoft.Speech.Web' could not be loaded.
> === Pre-bind state information ===
> LOG: DisplayName = Microsoft.Speech.Web, Version=1.0.3200.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35
> (Fully-specified)
> LOG: Appbase = file:///C:/myWWW/Copy_of_ExploringTextToSpeech
> LOG: Initial PrivatePath = bin
> Calling assembly : (Unknown).
> ===
> LOG: Publisher policy file is not found.
> LOG: No redirect found in host configuration file
> (C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspn et.config).
> LOG: Using machine configuration file from
> C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\confi g\machine.config.
> LOG: Post-policy reference: Microsoft.Speech.Web, Version=1.0.3200.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35
> LOG: Attempting download of new URL
> file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
> Files/speech/4e84447f/7b1e538e/Microsoft.Speech.Web.DLL.
> LOG: Attempting download of new URL
> file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
> Files/speech/4e84447f/7b1e538e/Microsoft.Speech.Web/Microsoft.Speech.Web.DLL.
> LOG: Attempting download of new URL
> file:///C:/myWWW/Copy_of_ExploringTextToSpeech/bin/Microsoft.Speech.Web.DLL.
> LOG: Attempting download of new URL
> file:///C:/myWWW/Copy_of_ExploringTextToSpeech/bin/Microsoft.Speech.Web/Microsoft.Speech.Web.DLL.
> LOG: Attempting download of new URL
> file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
> Files/speech/4e84447f/7b1e538e/Microsoft.Speech.Web.EXE.
> LOG: Attempting download of new URL
> file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
> Files/speech/4e84447f/7b1e538e/Microsoft.Speech.Web/Microsoft.Speech.Web.EXE.
> LOG: Attempting download of new URL
> file:///C:/myWWW/Copy_of_ExploringTextToSpeech/bin/Microsoft.Speech.Web.EXE.
> LOG: Attempting download of new URL
> file:///C:/myWWW/Copy_of_ExploringTextToSpeech/bin/Microsoft.Speech.Web/Microsoft.Speech.Web.EXE.
>
> Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET
> Version:1.1.4322.2300
>

Text to System.Web.UI.Control

Hi NG!

Is there a function in the .net FX that returns a
System.Web.UI.Control's inherited class for a specified text?
Means, if you specify

<a href="http://links.10026.com/?link=http://www.microsoft.com/" title="Microsoft">Microsoft
Corporation</a
it should return an instance of System.Web.UI.HtmlAnchor or
System.Web.UI.WebControls.LinkButton, where Href, Title, and InnerText
are set appropriately.

Thanks for any hint!

Best regards,

MichaelThere's nothing in .Net to do this...there might be third party tools
though...couldn't quickly find anything..

Karl

"Michael Kremser" <mkspamx-usenet@.yahoo.de> wrote in message
news:%23Q2L26rkEHA.3432@.TK2MSFTNGP14.phx.gbl...
> Hi NG!
> Is there a function in the .net FX that returns a
> System.Web.UI.Control's inherited class for a specified text?
> Means, if you specify
> <a href="http://links.10026.com/?link=http://www.microsoft.com/" title="Microsoft">Microsoft
> Corporation</a>
> it should return an instance of System.Web.UI.HtmlAnchor or
> System.Web.UI.WebControls.LinkButton, where Href, Title, and InnerText
> are set appropriately.
> Thanks for any hint!
> Best regards,
> Michael
Note, that in you example you don't have a server-side control in the first
place since there is no runat=server attribute.

Eliyahu

"Michael Kremser" <mkspamx-usenet@.yahoo.de> wrote in message
news:%23Q2L26rkEHA.3432@.TK2MSFTNGP14.phx.gbl...
> Hi NG!
> Is there a function in the .net FX that returns a
> System.Web.UI.Control's inherited class for a specified text?
> Means, if you specify
> <a href="http://links.10026.com/?link=http://www.microsoft.com/" title="Microsoft">Microsoft
> Corporation</a>
> it should return an instance of System.Web.UI.HtmlAnchor or
> System.Web.UI.WebControls.LinkButton, where Href, Title, and InnerText
> are set appropriately.
> Thanks for any hint!
> Best regards,
> Michael

Text to System.Web.UI.Control

Hi NG!
Is there a function in the .net FX that returns a
System.Web.UI.Control's inherited class for a specified text?
Means, if you specify
<a href="http://links.10026.com/?link=http://www.microsoft.com/" title="Microsoft">Microsoft
Corporation</a>
it should return an instance of System.Web.UI.HtmlAnchor or
System.Web.UI.WebControls.LinkButton, where Href, Title, and InnerText
are set appropriately.
Thanks for any hint!
Best regards,
MichaelThere's nothing in .Net to do this...there might be third party tools
though...couldn't quickly find anything..
Karl
"Michael Kremser" <mkspamx-usenet@.yahoo.de> wrote in message
news:%23Q2L26rkEHA.3432@.TK2MSFTNGP14.phx.gbl...
> Hi NG!
> Is there a function in the .net FX that returns a
> System.Web.UI.Control's inherited class for a specified text?
> Means, if you specify
> <a href="http://links.10026.com/?link=http://www.microsoft.com/" title="Microsoft">Microsoft
> Corporation</a>
> it should return an instance of System.Web.UI.HtmlAnchor or
> System.Web.UI.WebControls.LinkButton, where Href, Title, and InnerText
> are set appropriately.
> Thanks for any hint!
> Best regards,
> Michael
Note, that in you example you don't have a server-side control in the first
place since there is no runat=server attribute.
Eliyahu
"Michael Kremser" <mkspamx-usenet@.yahoo.de> wrote in message
news:%23Q2L26rkEHA.3432@.TK2MSFTNGP14.phx.gbl...
> Hi NG!
> Is there a function in the .net FX that returns a
> System.Web.UI.Control's inherited class for a specified text?
> Means, if you specify
> <a href="http://links.10026.com/?link=http://www.microsoft.com/" title="Microsoft">Microsoft
> Corporation</a>
> it should return an instance of System.Web.UI.HtmlAnchor or
> System.Web.UI.WebControls.LinkButton, where Href, Title, and InnerText
> are set appropriately.
> Thanks for any hint!
> Best regards,
> Michael

Thursday, March 22, 2012

text/image verification question

Anyone know of a software company where I can purchase to integrate into my web site ? This software presents a word in distorted images and user has to type in the corresponding characters for verification that its a real person and not a script.

what you want to search on is CAPTCHA

I used this in the past (http://blogs.clearscreen.com/migs/archive/2004/11/10/575.aspx)

TextArea in a Web Service

I added a TextArea to my aspx form to store user input. However, when I use

strComment = txtComment.text

I get an error saying 'text' is not a member of 'System.Web.UI.HtmlControls.HtmlTextArea'.
This is because TextArea is an HTML control. So how do I use a TextArea and store user input as a string?? I cannot get away with using a textbox in this situation.

Much Appreciated.txtComment.Value gets the string.

Textareas Height and Width not Sent to Firefox

Hello:

When my web application is invoked by Firefox the height and width
information is passed to Internet Explorer but not to Firefox.

The ASP.NET control is
<asp:textbox id="tbxNote" runat="server" Width="100%" Height="226px"
TextMode="MultiLine">
For IE it renders
<textarea name="tbxNote" id="tbxNote" style="height:226px;width:100%;">
For Firefix it renders
<textarea name="tbxNote" id="tbxNote"
Is there something I can do to induce ASP.NET to pass the style information
to Firefox?

I will be very grateful for your help.Hi,

you need just tweak browser detection within config files so that FireFox is
recognized better.
http://weblogs.mozillazine.org/gerv...ves/008336.html

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
set rows and columns for w3c compliance

"honcho" <goaway@.nospam.com> wrote in message
news:1121195322.46481282447c7dd42a8bb382e8a6d776@.b ubbanews...
> Hello:
> When my web application is invoked by Firefox the height and width
> information is passed to Internet Explorer but not to Firefox.
> The ASP.NET control is
> <asp:textbox id="tbxNote" runat="server" Width="100%" Height="226px"
> TextMode="MultiLine">
> For IE it renders
> <textarea name="tbxNote" id="tbxNote" style="height:226px;width:100%;">
> For Firefix it renders
> <textarea name="tbxNote" id="tbxNote">
> Is there something I can do to induce ASP.NET to pass the style
> information to Firefox?
> I will be very grateful for your help.
That was a very useful suggestion. Thank you.

"TJS" <nospam@.here.com> wrote in message
news:ee$JcDyhFHA.1968@.TK2MSFTNGP14.phx.gbl...
> set rows and columns for w3c compliance
>
> "honcho" <goaway@.nospam.com> wrote in message
> news:1121195322.46481282447c7dd42a8bb382e8a6d776@.b ubbanews...
>> Hello:
>>
>> When my web application is invoked by Firefox the height and width
>> information is passed to Internet Explorer but not to Firefox.
>>
>> The ASP.NET control is
>> <asp:textbox id="tbxNote" runat="server" Width="100%" Height="226px"
>> TextMode="MultiLine">
>> For IE it renders
>> <textarea name="tbxNote" id="tbxNote" style="height:226px;width:100%;">
>> For Firefix it renders
>> <textarea name="tbxNote" id="tbxNote">
>>
>> Is there something I can do to induce ASP.NET to pass the style
>> information to Firefox?
>>
>> I will be very grateful for your help.
>>

TextBox

I am creating a back office shopping cart where the customer service can take orders over the phone. IN the web application because customer service will be using it so often that I want to give an option of quickly adding rows with 2 empty textboxes. One for Item# or product# and one for quantity with default value 1. On click on the quick add button...it should create 3 rows with each row containing the textboxes I described above. Which is the best approach. is there a sample code I can get from somewhere. I tried lot of online search but no luck. I need help on it fast. Please help.

Two possible approaches. I prefer the first

Option 1. in your layout, add the needed rows, make them actual table rows. you will add runat=server to the rows and give them an id. When you need them to be visible simply do a postback with the add rows button and make them visible when you need them.

If you need to do it without a postback, simply hide / show them using javascript instead of running the <tr> on the server

Option 2

add a placeholder where you need the textboxes to be and then add the textboxes in the code. Here is a sample.

private void AddTextBox(int TextBoxNumber)
{
txtItem = new TextBox();
txtItem.ID = "txtItem" + TextBoxNumber.ToString();
thePlaceHolder.Add(txtItem);
}


I thought about the option 1. But what if the customer service wants to add more records. I don;t want to restrict the textbox instead have them request as they need. I tried using the second option and on the button click I do get 3 rows of text boxes but if I try to click the button again it doesn;t add more textbox after the 3 was already added. Does that make sense? let me know I will try and re phrase the question.


This post shows you how to dynamically add rows to a table server-side:

http://forums.asp.net/thread/1264968.aspx

NC...


You must re-add the controls on each subsequent post-back. To do this, you will need a counter, and you will need a method that will add the number of textboxes in the counter.

example: create a label on the page and set the value = 0 and visible = false. This will be your counter.

create a method that runs in page_load that creates the same number of textboxes in your counter. When you click to add a textbox, increment your counter and add your new text box. Viewstate will still remember the values in the textboxes.


I am really new to this. Could you possibly provide me a sample code. Thanks.


Thanks for the pseudocode. It worked. Now I have another question. ON similar lines to the previous one, How do I create a table or table row with two text boxes in each row (in 2 different columns) based on button click. Any suggestions.

The link that I posted earlier shows exactly how to do that.

NC...


Here is the code sample and it gives me an error on the highlighted code in dark gray , saying "Value of type 'System.Web.UI.WebControls.TableRow' cannot be converted to 'System.Data.DataRow'. Help Please

Id. is the a number that passsed in this function. It is the counter which occurs on the click of the button

------------------

Dim

iAsInteger = 0DoWhile (i < dynamicTable.Rows.Count)Dim dataRowAs DataRow

DataRow = dynamicTable.Rows(i)

Dim newRowAs TableRow =New TableRowDim newCell00As TableCell =New TableCellDim textboxesAsNew TextBox

textboxes.ID =

"ProductId" + Id.ToString()

textboxes.Width = Unit.Pixel(32)

Dim literalControlAsNew LiteralControl

literalControl.Text =

"<p>"

form1.Controls.Add(literalControl)

form1.Controls.Add(textboxes)

Dim newCell01As TableCell =New TableCellDim textboxes1AsNew TextBox

textboxes.ID =

"ITemId" + Id.ToString()

textboxes.Width = Unit.Pixel(32)

Dim literalControl1AsNew LiteralControl

literalControl.Text =

"<p>"

form1.Controls.Add(literalControl)

form1.Controls.Add(textboxes)

newRow.Cells.Add(newCell00)

newRow.Cells.Add(newCell01)

Me.dynamicTable.Rows.Add(newRow)

i = (i + 1)

Loop


Duplicate post -- Please don't do that.

http://forums.asp.net/thread/1264968.aspx

NC...