Paste the code you are using.
Nirandas, a developer from India. http://www.nirandas.com
Paste the code you are using.
Nirandas, a developer from India. http://www.nirandas.com
What is the exact error you getting? Also constructing sql commands this way is not recommended. Instead use something like following: SqlCommand cmd =new SqlCommand("select * from tablename where id=@id",connection); cmd.Parameters.AddWithValue("@id",3); cmd.ExecuteReader(); //or whatever you want.
Checkout my blog at http://www.nirandas.com/blog/
Can't you use the built in profile provider for this?
Nirandas, a developer from India. http://www.nirandas.com
You need the NotifyIcon control for to be able to do this. Google it and you should find many examples. I think the MSDN page itself has an example. HTH
Nirandas, a developer from India. http://www.nirandas.com
You may want to take a look at this blog post. http://nirandas.com/blog/index.php/ways-to-set-short-cut-keys-for-controls-on-a-windows-forms-net-application/[^] HTH
Nirandas, a developer from India. http://www.nirandas.com
If you want to show a open or save dialog box, try the content-type application/x-force-download
Nirandas, a developer from India. http://www.nirandas.com
Convert those html pages into .aspx pages and reference the proper master page.
Nirandas, a developer from India. http://www.nirandas.com
Best thing to do would be to take the function out into it's own class and put it inside the app_code folder and use it from both the pages. HTH
Nirandas, a developer from India. http://www.nirandas.com
Try using Server.MapPath to resolve the virtual path in to physical path from the dll. You should reference the System.Web.dll before trying to do that. HTH
Nirandas, a developer from India. http://www.nirandas.com
Hi Gayatri, Why can't you use just
this.Title = "Score";
There is no need to reference the master page to set the title. Let me know if I didn't get you.
Nirandas, a developer from India. http://www.nirandas.com
You will have to set the title programmatically using code. Or you can create a base page and customize it to format the title as required and provide this functionality to all the pages. You may want to check my blog on this topic asp.net pages and proper titles HTH
Nirandas, a developer from India. http://www.nirandas.com
The Request.Forms collection contains all the form fields submitted by the client. HTH
Nirandas, a developer from India. http://www.nirandas.com
Can't you use pure javascript for this? That will be lot better I think. If you want to use C# for this, the TimeSpan class and it's properties will be useful.
Nirandas, a developer from India. http://www.nirandas.com
Try setting the UseMnemonic property of the Label to true. I believe your developing a desktop application. Right?
Nirandas, a developer from India. http://www.nirandas.com
Instead of onButtonClick, use onClientClick.
Nirandas, a developer from India. http://www.nirandas.com
The DataTable's Rows property contains all the rows in the table. Just loop through it.
Nirandas, a developer from India. http://www.nirandas.com
Use int.TryParse() method.
string str = "123";
nt num;
if( int.TryParse( str, out num))
{//successfully parsed the string. Now the num variable contains the numeric value if you need it.
//Ok the number is numeric do what ever you want.
}
Nirandas, a developer from India. http://www.nirandas.com
Try this:
Select count(*) from z where x=l;
Would return the number of rows which meets the where clause.
Nirandas, a developer from India. http://www.nirandas.com
You will have to write some code inside the KeyDown event of the form, and take the required action when the space key is pressed. The form's KeyPreview property must be set to true to get the KeyDown events even the focus is on any child control. You can check my blog post for an example of handling this event for creating various shortcut keys. http://www.nirandas.com/blog/index.php/ways-to-set-short-cut-keys-for-controls-on-a-windows-forms-net-application/[^] Remember! if the focus is on a text field, users will not be able to type a space if it is used for triggering any other action.
Nirandas, a developer from India. http://www.nirandas.com
You may hide the first form (Closing your start up form will close the application). Also code will stop executing at the call ".ShowDialog()", and will only continue after the user has closed the second form.
Nirandas, a developer from India. http://www.nirandas.com