- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
80 Posted Topics
hi i have a simple website that includes a WebService and a Webform page. i'm trying to call my web service from the web form using jquery. when i type the web service's url using https, i get "Access denied" error from internet explorer. the call works just fine when … | |
in my application i have a tabcontrol with two tabs. when i run the program the focus is on the first tab. how can i change the focus to the second tab, so the second tab is shown on certain event ? | |
I'm having doubts about a need to use a singleton pattern in a web service. I'm building a web service that is acting as a server side for multiple clients. I was thinking about making my business logic classes a singleton classes but i'm having doubts because of the following … | |
how can i conver ascii code to string. for example i want to conver 65 to "A". | |
hi i'm trying to write something i have done many time but still i encounter with a problem. i'm writing a web service that is protected with network credentials. in my web service application i added the following config: [CODE=xml]<authorization> <deny users="?" /> <allow users="computername\username" /> <deny users="*" /> </authorization>[/CODE] … | |
hi I'm trying to implement a custom forms authentication based on existing objects. i have created the following classes classes: [CODE=c#][Serializable] public class MyIdentity : IIdentity { // my custom members and properties } [Serializable] public class MyPrincipal : IPrincipal { // my custom members and properties }[/CODE] i'm using … | |
i am trying to draw a line between two points like this: [CODE=syntax]private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { Graphics MyGraphics = e.Graphics; Pen NewPen = new Pen(Color.Red,5); MyGraphics.DrawLine(NewPen,StartDraw,EndDraw); }[/CODE] it gives me an error: Object reference not set to an instance of an object. what have i done wrong … | |
hi everyone i would like to fill an array with random numbers i know i can use the next line srand( time(NULL) ); return 1 + rand() % 10 ; but the problem is that it fills my array with only one number what can i do ? | |
hi as i learned, asp .net login control has a built in required field validators but how can i use a regular expression validators to validate the UserName and Passwords textboxes ? is there a way ? | |
hi i created an outlook 2003 Addin project and i want to install he Addin on a computer that doesn't have visual studio installed. i created all the necessary registry keys in the setup project, before running the setup project on the target pc i installed visual studio 2005 tools … | |
how can i create GridView Template column with a textbox programmatically from code behind ? | |
hi i'm trying to run an exe file on the client side using the following code: [CODE=javascript]var oShell = new ActiveXObject("Shell.Application"); var prog = "C:\\Program Files\\Microsoft Office\\Office12\\Excel.exe"; oShell.ShellExecute(prog,"","","open","1");[/CODE] when i run the code it fails with "Access denied" error which i cannot resolve. i modified my ie (8) settings to … | |
Re: [QUOTE=nidhi.knit09;1162731]Hi, pls let me know how you created a setup project for 2007 addin which files needs to be added to my add-in project. In 2003 add-in project by default you get a setup project but in 2007 you did not get...... Please help me on this......[/QUOTE] In Outlook AddIn … | |
hi I'm new to outlook add ins. i developed an outlook 2007 add in project and added a setup project so i will be able to install the add in to other computers. when i install the add in (using the installer from the setup project) it works fine on … | |
hi i created a new OutlookAddIn project. the project adds a custom toolbar button to outlook. when run the project in debug mode, i see the custom button and everything works. i want to install the poject in another computer, i added a new SetupProject to the solution and targeted … | |
is there any way to show a powerpoint presentation on a webbrowser control ? office 2007 .net 3.5 ? | |
hi i realy cant guess what i'm doung wrong i'm trying to fire a simple oninit event. [CODE=asp]<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body oninit="alert('hi');"> <form id="form1" runat="server"> <div> <asp:ContentPlaceHolder ID="cph2" runat="server"> </asp:ContentPlaceHolder> </div> </form> </body> </html>[/CODE] this works perfectly with onload event. | |
hi i wanted to write a windows application that sends keyboard strokes to another application something like a virtual keyboard. i researched the subject and read few articles. i managed to find a code that partially works. in the sample code above i'm trying to send strokes to a word … | |
hi i have a WinForm with DataGridViewControll. one of the datagrid columns is a DataGridViewCheckBoxColumn. how can i Check or uncheck the Checkbox column of a certain row ? | |
is there a way to convert a java.util.Date to format dd/mm/yyyy HH:mm:ss ? | |
hi i have a j2me application with a display set to Canvas. when i try to change the midlet's display to another Canvas using the following command: Display.getDisplay(this).setCurrent(Canvas2); nothing happens. how can i efficiently change a display to another Canvas ? | |
how can i compare between two objects using getType method i want to know if two objects are from the same class or from the same base class | |
hi a have a gridview with datafield column which is bound to a datetime column. i want the grid column to show the date when the day is first, like this: 24/2/2009 i tried the following format: [CODE=asp]DataFormatString="{0:dd/MM/YYYY}"[/CODE] but the grid is still shows the date when the month is … | |
hi i would like to write a trigger for the basic operations on a table : insert, delete, update. i know the basic syntax: [CODE=sql]create trigger on tbl_MyReports for insert,delete,update as[/CODE] my question is how can i know which rows changed ? if i inserted or deleted or updated a … | |
hi my html form contains a table tag <table id="MainTable">. i would like to populate this table using a javascript function. my probllem is that i created a table that contains another table inside on of the <td> tags. i tried to write the most basic code: [CODE=javascript]var myTable = … | |
hi i use a gridview control with a template column which contains textbox as itemtemplate. i'm trying to change the textbox's border color in runtime like this: [CODE=asp]((TextBox)MyGrid.Rows[i].FindControl("txtEnter")).BorderColor = Color.Red;[/CODE] but it doest change anything. what am i duing wrong ? | |
hi my page contains a button with a javascript click event. when i click the button i want to check if the page is valid, and if the answer is yes, to perform the event function. if the page is not valid i want the error message to show in … | |
hi I'm trying to execute a stored procedure which returns a datatable my code is: [CODE=asp.net]try { string conStr = WebConfigurationManager.ConnectionStrings[0].ConnectionString; SqlDataAdapter adapter; DataTable ans = new DataTable(); SqlConnection connection = new SqlConnection(conStr); SqlCommand command = new SqlCommand(); command.CommandType = CommandType.StoredProcedure; command.CommandText = "usp_GetUserDetails"; command.Parameters.Add("@UserName", SqlDbType.VarChar); command.Parameters.Add("@Password", SqlDbType.VarChar); command.Parameters["@UserName"].Value = … | |
hi i want to call a sql server stored procedure from my webform. the stored procedure return parameters. how can i "catch" these parameters and use hem ? | |
hi i have an ajax calendar extender control that is set to a textbox. how can i get the current selected date value from the calendar ? | |
is it possible to catch an exception in a try-catch block and show the message in the page's validation summary ? | |
hi i'm trying to dynamically add columns to my gridview control. i tried this code: [CODE=asp]BoundColumn col = new BoundColumn(); col.DataField = myDataTable.Columns[0].ColumnName; col.HeaderText = "last exit time"; col.DataFormatString = "{0:mm-dd-yyyy}"; GridView1.Columns.Add(col);[/CODE] the datafied property is taken from datatable which will be the source of the gridview. the build gives … | |
hi i want to create a trigger for update in mssql. in my trigger i want to know which row was updated how can i achieve this info ? | |
hi i have a table which contains a datetime type column. i want to create a stored procedure that gets a surtain month and year as parameters and returns all the rows with the date column in the month and year range i sent as parameter. for example if i … | |
hi i'm trying to edit gridview rows. the grid columns are template columns. i added the commandfield buttons for update. i wrote a rowupdating event: [CODE=asp]MonthTable.Rows[e.RowIndex]["FirstEnter"] = ((TextBox)(MonthGridView.Rows[e.RowIndex].Cells[6].Controls[0])).Text;[/CODE] on runtime i get this error: Unable to cast object of type 'System.Web.UI.LiteralControl' to type 'System.Web.UI.WebControls.TextBox'. what have i done wrong ? | |
hi i'm trying to edit gridview rows. the grid columns are template cplumns. i added the commandfield buttons for update. i wrote a rowupdating event: [CODE=asp]MonthTable.Rows[e.RowIndex]["FirstEnter"] = ((TextBox)(MonthGridView.Rows[e.RowIndex].Cells[6].Controls[0])).Text;[/CODE] on runtime i get this error: Unable to cast object of type 'System.Web.UI.LiteralControl' to type 'System.Web.UI.WebControls.TextBox'. what have i done wrong ? | |
hi. I'm trying to work with formview control and add edit and cancel buttons. i see the edit template from the smart tag, but how can i actually add these template ? | |
hi i have an existing table . i'm working with sql management studio. how can i change columns properties ? set column as idenity true. set column as indexable. | |
hi I'm trying to use this code that i found to send an email message using c# application. i have an iis service running on my computer and the smtp server is configured as my providers smtp server. the problem is that when i try to send mail i get … | |
hi. i installed an iis service on my computer with a smtp server option. my problem is that when i open iis control panel i can see only the name of my computer without the smtp server option. can anyone help me ? | |
I'm looking for a control in c# that looks like a panel but allows you to write header text on his border. i attached a picture to show you what i mean. does anyone knows this control ? | |
hi i'm using oledb to read from an excel file into dataset. my program is showing the dataset using datagridview, when i'm trying to change the cell content and update the dataset i get an error : "Update unalbe to find tablemapping['Table'] or DataTable ['Table'] my code is: [CODE=c#]public static … | |
hi my code is using javascript to dynamically build an html table and fill the table with html buttons. my code: [CODE=javascript]<html> <head> <title>javascript1</title> </head> <script lnaguage="javascript"> function Init() { var table = document.createElement("tbody"); var newrow,newcol,tmp; var array = new Array(16); for (var i=0 ; i<16 ; i++) array[i] = … | |
hi i'm using a datagrid view control which get's his datasource from a dataset control. my code is: [CODE=c#]dataGrid = new DataGridView(); dataGrid.DataSource = dataSet.Tables["Vertexes"]; this.Controls.Add(dataGrid);[/CODE] the datagridview in shown fine. the problem is that when i try to cahnge cells color like this: [CODE=c#]for (int x = 0; x … | |
i'm trying to open an existing excel worksheet. my code is: [CODE=c#]Microsoft.Office.Interop.Excel.Application excelApp; Microsoft.Office.Interop.Excel.Workbook excelWorkbook; Microsoft.Office.Interop.Excel.Worksheet ExlWrkSheet; private object Opt = Type.Missing excelApp = new ApplicationClass(); excelWorkbook = excelApp.Workbooks.Open("..//..//Data.xls", Opt, Opt, Opt, Opt, Opt, Opt, Opt, Opt, Opt, Opt, Opt, Opt, Opt, Opt);[/CODE] on the last line i get an … | |
hello is there a way i can read from a table in microsoft exel file into an array or matrix in c# ? | |
hello how can i display an information messagebox in asp.net with message and title ? | |
hi. i'm trying to write a reversi game with a smart computer player. i want to use an alpha beta pruning minimax algorithm. i wrote the code but the computer is not smart. can somebody help me with my code ? [CODE=java]public int[] Play(String s,GameBoard gb,Color c) { int alpha … | |
hi. i would like to work on my computer without connecting to server. i installed the ms sql management studio 2005 express. how can i create a local host server to work on ? | |
i have a problem with a simple program. my program has a label. i tryed to add event handlers for both mouse down event and mouse double click event. it seems that when these two handlers are defined, only the mouse down event is responding. the double click event simply … |
The End.