I am using the following code to test the speech api, using SpeechLib; using System.Security ; [SuppressUnmanagedCodeSecurityAttribute()] private void Button1_Click(object sender, System.EventArgs e) { try { SpVoice voice = new SpVoice(); voice.Speak("Hello",SpeechLib.SpeechVoiceSpeakFlags.SVSFDefault); } catch(Exception ex) { Response.Write(ex.ToString()) ; } } I have added a reference to Microsoft Speech API through Add Reference tab-Com Componentes, i have also added the aspcompat=true @Page attribute But it is giving the error: System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x8004503A Please help me to get the code to Speak. Thanks in advance This is naresh
naresh_pandey13
Posts
-
Please help : Speech API COM Component .Net -
Please help : COM Component .NetI am using the following code to test the speech api, using SpeechLib; using System.Security ; [SuppressUnmanagedCodeSecurityAttribute()] private void Button1_Click(object sender, System.EventArgs e) { try { SpVoice voice = new SpVoice(); voice.Speak("Hello",SpeechLib.SpeechVoiceSpeakFlags.SVSFDefault); } catch(Exception ex) { Response.Write(ex.ToString()) ; } } I hav e added a reference to Microsoft Speech API through Add Reference tab-Com Componentes, i have also added the aspcompat=true @Page attribute But it is giving the error: System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x8004503A Please help me to get the code to Speak. Thanks a lot Thanks in advance This is naresh
-
How to do this : com componentI am using the following code to test the speech api, using SpeechLib; using System.Security ; [SuppressUnmanagedCodeSecurityAttribute()] private void Button1_Click(object sender, System.EventArgs e) { try { SpVoice voice = new SpVoice(); voice.Speak("Hello",SpeechLib.SpeechVoiceSpeakFlags.SVSFDefault); } catch(Exception ex) { Response.Write(ex.ToString()) ; } } I hav e added a reference to Microsoft Speech API through Add Reference tab-Com Componentes, i have also added the aspcompat=true @Page attribute But it is giving the error: System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x8004503A Please help me to get the code to Speak. Thanks a lot :laugh: This is naresh This is naresh -- modified at 6:49 Monday 9th January, 2006
-
Urgent help required : Speech API problemI am using the following code to test the speech api, using SpeechLib; using System.Security ; [SuppressUnmanagedCodeSecurityAttribute()] private void Button1_Click(object sender, System.EventArgs e) { try { SpVoice voice = new SpVoice(); voice.Speak("Hello",SpeechLib.SpeechVoiceSpeakFlags.SVSFDefault); } catch(Exception ex) { Response.Write(ex.ToString()) ; } } I hav e added a reference to Microsoft Speech API through Add Reference tab-Com Componentes, i have also added the aspcompat=true @Page attribute But it is giving the error: System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x8004503A Please help me to get the code to Speak. Thanks a lot This is naresh -- modified at 4:19 Monday 9th January, 2006
-
Refresh Page ProblemHi Friends, ;) I want to change text contents of some parts of the HomePage(for example left part and footer) after every 10 seconds.But I dont want to refresh the entire Page.Only the specified portions. Please help me in solving this problem. Thanks a lot naresh This is naresh
-
Problem in Layout of ControlsHi Kalyan, ;) Yes Now it is working the way i wanted. Thanx a lot for ur help. Regards Naresh :) This is naresh
-
Problem in Layout of ControlsHi Friends, I have a DataGrid in my form and 3 Buttons below the DataGrid. My Problem is that whenever the datagrid is filled, if the grid has very fewer no. of records say 2 or 3,then the grid shrinks in size vertically But the 3 Buttons below the grid doesn't shrink relative to the Grid.The 3 buttons remains at their original location. Similarly , When the Grid contains large no. of records the grid overlaps those 3 buttons. Please tell me the way to overcome this problem. Thanks a lot Naresh :-O This is naresh
-
How can i write event handlers for a dynamic created controlI have created some controls dynamically at run time On Page Load. for example Text box and drop down list. How can i attach event handlers for them.... Plz tell me ASAp... Thanxx in advance:-D This is naresh
-
How to display messages after clicking on a linkHi all,:) I want to create a Forum/discussion board. I want messages to be displayed at the same place after clicking on a link...Like in this message board....wat i have to do..Plzz Help me or ive hint so as i can devlop the application..... Currently i m displaying User respones as links only Using dynamically generated TableCells..but i dont know how to display details of that link on the same place after clicking on the link... i will be very thankfull to all of U plz tel asap byee :rolleyes: naresh
-
Problem in Creating Dyamic Web ControlsHi friends, The code is given beolow....I want to add number of controls according to the value selected in dropdownlist. But as i m inccrementing the value of ViewState variable in SelectedIndexChanged event depening on the selection.if i print that value then it is showing the correct value...but it is taking this value in the 2nd postback....not in the (current)postback caused by SelectedIndexChanged event ..... Plz tell me wat should i have to do to correct this problem..... Also if any idea about how to handle events on dynamic controls ... Thanks a lot in advance friends.:omg: public class WebForm3 : System.Web.UI.Page { protected System.Web.UI.WebControls.PlaceHolder PlaceHolder1; protected System.Web.UI.WebControls.DropDownList dd; private void Page_Load(object sender, System.EventArgs e) { if(!Page.IsPostBack) { this.NumberOfControls = 0; } else { createControls(); } } protected int NumberOfControls { get{return (int)ViewState["NumControls"];} set{ViewState["NumControls"] = value;} } public void createControls() { int cnt = this.NumberOfControls ; for (int i=0; i"));); } } //dd is a DropDownList containing values 1,2 ,3,4,5,6..... //This event is incrementing the ViewState variable to some value so as to add some more controls private void dd_SelectedIndexChanged(object sender, System.EventArgs e) { this.NumberOfControls = this.NumberOfControls + Convert.ToInt32(dd.SelectedItem.Text); //here if i print the numberofcontrols then it gives correct value.. // but on postback it is taking effect(means Taking this incremented value) after one more PostBack //TELL ME WAT SHOULD I HAVE TO DO TO CREATE DYNAMIC CONTROLS ON SELECTION FROM THIS DROPDOWNLIST } } naresh
-
MTSHow To REgister MTS in My Personal PC it's referance is not comming in the VB. My OS is win 2000 and IIS Server is also installed in it. Pls. Send me reply ASAP..... thanks This is naresh
-
Handling Events of Dynamic Controls in ASP.Net(c#)Hi All, Plz tell me i m creating 3 textboxes in a row dynamically..using ASP.Net(C#) Then I want to change the Text Value of 3rd text box of a row according to some calculation on the 1st 2 text Boxes...how can i acheive this....means how to do event handling on the dynamic controls.... I will be very Thankful to u friends .Its very Urgent . So Plzz tell me ASAP.... Thanx alot in Advance naresh This is naresh This is naresh
-
Its Urrgent ..How to Manipulate Properties Dynamically Created ControlsHi Prakash, actually i want it to handle from server side(ASP.Net).... and i want to handle the events on dynamic created controls ,also.... like to set value in 3rd TextBox ,on basis of 1st 2 textboxes values. Plzz tell me how to do that dear friend.. (if possible tell me the client side solution too) naresh This is naresh
-
Its Urrgent ..How to Manipulate Properties Dynamically Created ControlsHi All,:) (1)I want to crate n rows of 3 text boxes, where n is selected from a dropdownlist controls as 1 or 2 or 3....Wat Should i have to do..means will i place those text boxes inside a Table or without Table.. (2)Then I want to change the Text Value of last text box of a row according to some calculation on the 1st 2 text Boxes...how can i acheive this.... I will be very Thankful to u peoples .Its very Urgent .I have alreay wasted my 3-4 days in it.. So Plzz tell me ASAP.... Thanx alot in Advance ;P naresh This is naresh
-
How to Access Dynamicaly created controlsHi all, i m asking in case of ASP.Net... where in the page i m dynamically creating Table & inside tables i m adding text box & drop down combo as literal controls... and then i add the Table to page's controls collection Now i call the function which creates the dynamic table .. in Page Load it works fine for 1st time... but during Post Back its not creatig the page again nor i can change/set the value inside the text box dynamically. how can i access the values inside the Text Boxes the code is something like this namespace Motel { public class WebForm5 : System.Web.UI.Page { //Variables declarations here.... private void Page_Load(object sender, System.EventArgs e) { if(this.IsPostBack == true) { tot1 = (int.Parse(Request["dpersonsid"])); tot0 = (int.Parse(Request["dpid"])); if(tot1 <= 1) { tot2=int.Parse(Request["rent1"].ToString()) ; } else { tot2=int.Parse(Request["rent2"].ToString()) ; } int tot3 = (tot0)*(tot2); this.total.Text = tot3.ToString(); TextBox1.Text = tot3.ToString(); } else { //if not post back setPage(); } void setPage() { while(areader.Read()) { tb=new Table(); TableRow tr=new TableRow(); TableCell tcell=new TableCell(); tcell.Controls.Add(new LiteralControl("Room Type "+areader["RoomType"].ToString())); tr.Cells.Add(tcell); tb.Rows.Add(tr); myPlaceHolder.Controls.Add(tb); dpRooms = new DropDownList(); dpRooms.AutoPostBack =true; dpRooms.ID = "dpid"; dpRooms.Items.Add(i.ToString()); tcell=new TableCell(); tcell.Controls.Add(dpRooms); tr.Cells.Add(tcell); dpersons = new DropDownList(); dpersons.AutoPostBack = true; dpersons.ID = "dpersonsid"; dpersons.Items.Add("1");dpersons.Items.Add("2"); dpersons.Width = 70; tcell=new TableCell(); tcell.Controls.Add((dpersons)) ; tr.Cells.Add(tcell); total = new TextBox() ; total.ID = "totalid"; total.Enabled = true; total.AutoPostBack =true; tcell=new TableCell(); tcell.Controls.Add((total)) ; tr.Cells.Add(tcell); } tb.Rows.Add(tr); myPlaceHolder.Controls.Add(tb); Page.EnableViewState = true; return; Plz Reply ASAP. Tahnx a lot :-O This is naresh
-
How to access dynamically created controlsHi all, in my ASP.Net page i have dynamically created a table and i added dynamically created controls such as text box, list box etc. inside tables tags using literal controls My Prob is this... (1)I have call the proc to create dynamic page in Page Load, but it is not working after a post back occurs....i have to call it again outside Page Load. (2) How to acces values in those textboxes & combos (3) How to set a new value based on some calculation into the TextBoxes during/after Post back. I will be very thanful fo any valuaable suggestions. Thannxx :-D naresh This is naresh
-
Dynamically Accessing the Name of TextBoxI m making a web form having 28 TextBoxes .The names of textboxes are below txtData1 ... to txtData14 txtURL1..... to txtURL14 I m using the following code for getting the values from these textbox .Bkz If i use all textboxex i have to write 14 insert statement .I m trying to use the name of textboxex dynamically .But I m not able to do ... The code is using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using System.Data.OleDb; using System.Configuration; namespace NewSai { public class Admin : System.Web.UI.Page { System.Data.OleDb.OleDbConnection SqCon; protected System.Web.UI.WebControls.DropDownList cmbBlock; protected System.Web.UI.WebControls.TextBox textData1; protected System.Web.UI.WebControls.TextBox txtURL1; protected System.Web.UI.WebControls.TextBox textData2; protected System.Web.UI.WebControls.TextBox txtURL2; protected System.Web.UI.WebControls.TextBox textData3; protected System.Web.UI.WebControls.TextBox txtURL3; protected System.Web.UI.WebControls.TextBox textData4; protected System.Web.UI.WebControls.TextBox txtURL4; protected System.Web.UI.WebControls.TextBox textData5; protected System.Web.UI.WebControls.TextBox txtURL5; protected System.Web.UI.WebControls.TextBox textData6; protected System.Web.UI.WebControls.TextBox txtURL6; protected System.Web.UI.WebControls.TextBox textData7; protected System.Web.UI.WebControls.TextBox txtURL7; protected System.Web.UI.WebControls.TextBox textData8; protected System.Web.UI.WebControls.TextBox txtURL8; protected System.Web.UI.WebControls.TextBox textData9; protected System.Web.UI.WebControls.TextBox txtURL9; protected System.Web.UI.WebControls.TextBox textData10; protected System.Web.UI.WebControls.TextBox txtURL10; protected System.Web.UI.WebControls.TextBox textData11; protected System.Web.UI.WebControls.TextBox txtURL11; protected System.Web.UI.WebControls.TextBox textData12; protected System.Web.UI.WebControls.TextBox txtURL12; protected System.Web.UI.WebControls.TextBox textData13; protected System.Web.UI.WebControls.TextBox txtURL13; protected System.Web.UI.WebControls.TextBox textData14; protected System.Web.UI.WebControls.Button cmdNew; protected System.Web.UI.WebControls.Button cmdAdd; protected System.Web.UI.WebControls.Button cmd
-
System.PlatformNotSupportedException: 'ResourcePool' is not supported on the current platform.Hi Serge, I m getting what u want to say .As per my understanding about ur question is If u r asking about Connection string then I have stored connection string in my WEB.CONFIG file.I have added a key in web.config and added the value in the following manner jitendra_s wrote: add key="dsn" value="server=192.168.1.158;uid=sa;pwd=sa;database=qcdb;"/ and when i want to make any connection i use the following methid SqlConnection newSq=new SqlConnection(ConfigurationSettings.AppSettings["dsn"]) SO the connection string will auto apperas in the above code. We can replace the line below SqlConnection newSq=new SqlConnection(ConfigurationSettings.AppSettings["dsn"]) with below SqlConnection newSq=new SqlConnection("server=localhost;uid=sa;pwd=sa;database=mydb;") Hope u will be understanding what i wanna say Thanks This is Jitendra
-
Asp.Net securityThanks Kluch Can u give me a simple example that how can I make global array of users and use it from Web.Config Web.Config file. Thanks This is Jitendra
-
Session Terminating ProblemThanks AryaD I m trying to implement it Thanks Again Have a Nice future This is Jitendra