.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

create RandomNumber from 1 - 100 by prssed random button

Posted By:      Posted Date: September 07, 2010    Points: 0   Category :Windows Application
How I can create RandomNumber from 1 - 100 by prssed random button   can you help me as soon as possibel I have an assignment   Thanks Yousf  

View Complete Post

More Related Resource Links

Create user button in Create user wizard

Hey May i know how i can change postion of  Create user button in Create USer Wizard as i want to change according to requirement!!!

How to create some button template using WPF ?

Hi, I want to create some button template using WPF - The template will contain special button with the look and feel and special event that i need to my application. I don't understand if the i need to do it as ResourceDictionary or as user control and what is the different between them. And i also don't understand how can i add event to the ResourceDictionary ? Thanks for any help.

How to create a button with image and text


Currently I have button on a form and I need to make buttons image but maintain the click event functions that they have. For instance I have a button that says Update. Is there a way to add an image and put text in that image that says Update and maintain it's functionality. here is the code for the button:

<asp:Button ID="btnUpdate" runat="server" Text="Update" Visible="False" />


create link button dynamically in gridview


Hi All,

I am trying  to add/insert linkbutton dynamically inside gridview row, below is the code

protected void Page_Load(object sender, EventArgs e)
        DataTable dt = new DataTable();
        DataColumn dcol = new DataColumn("Measure", typeof(System.String));

        DataColumn dcol1 = new DataColumn("ID",typeof(LinkButton));
        DataRow drow = dt.NewRow(); 

            LinkButton btn = new LinkButton();
            btn.ID = "testbtn";
            btn.Text = "1";
            btn.Visible = true;


            //drow = dt.Rows[0];

            drow[0] = "testmeasure";
            drow[1] = btn;

        catch{ }


        GridView1.DataSource = dt;


Problem I facing is that the data table is getting created fine with teh linkbutton as well but the gridview is not showing the linkbutton. upon executing I am only the column which is of string type.

Please help me in this case. what I am doing wrong? please help. this is urgent.


Create new page in asp.net on button click


There is a Textbox and a button when user clicks on the button after entering the data in the textbox I want that new page is created . The page must be .aspx Can anyone help !!!!!!!!!

SharePoint 2010 Central Admin--Create/Extend Web Application button on Ribbon are disabled


My Dev Environment is  SharePoint 2010 on WIN 7. I have 2 users

1) Built in Administrator- Member of FARM Administrator

2) Dinesh02\Dd – Also member of FARM Administrator

Now when I Sign-in with my account and use Manage Web Application link, on the Top Ribbon none of Button is enabled. I can not create Web APP nor Extend it.  When I select web application from list, some button are enabled but not all. Also I can see role as Contributor

This does not happen When I sign-in with Built-in\Administrator account.

Create HTML logout button



Is there a way to create a button that logs a user out (erasing session data) and redirects them using a list tag of this sort:

<li><a href="Login.aspx">Login</a></li>


How to create a new button in the ribbon

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
 <CustomAction Id="Ribbon.List.Actions.AddAButton" Location="CommandUI.Ribbon" RegistrationId="100" RegistrationType="List" Title="My Custom Ribbon Button">
    <CommandUIDefinition Location="Ribbon.List.Actions.Controls._children">
     <Button Id="Ribbon.List.Actions.NewRibbonButton" Command="MyNewRibbonButtonCommand" LabelText="My custom button" TemplateAlias="o1"/>
    <CommandUIHandler Command="MyNewRibbonButtonCommand" CommandAction="javascript:alert('This is my custom button!');" />

With this code i create a new button in the ribbon:


And i get the following result:


How can i place my button inside a different tab or

Create Toggle button for View RowDetails in a DataGrid



How can I create a toggle button for view a rowdetail in a datagrid.

I don´t want it when user clicked over de row, only in one button inside the row.

How to Create WPF button dynamically + route button event dynamically





 Window1 : Window





 sender, RoutedEventArgs e)
  // do something





 sender, RoutedEventArgs e)
   string xml = "<Button xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation'";
xml += " xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'";
xml += " Height='26' Margin='45,0,0,30'";
xml += " Name='button3'";
xml += " VerticalAlignment='Bottom'";
xml += " HorizontalAlignment='Left' Width='65'>Test</Button>";

Stream strm = new MemoryStream(ASCIIEncoding.Default.GetBytes(xml)); Button myButton = (Button)System.Windows.Markup.XamlReader

Create an "Upload a Document" button web part in other document libaries


I am trying to create an "Upload a Document" button in a SharePoint document library using the code from the Document Center landing page in order to display the upload form. 

I have added a content editor web part in a different document library and edited the path to the document library but I find the button action does not work. 

<div class="ms-uploadbtnlink"><button onclick="javascript:OpenNewFormUrl(&#39;Documents /Forms/upload.aspx&#39;);return false;" type="submit"><nobr><img alt="Upload a Document" src="/_layouts/Images/uploaddoc.png"/>&#160;<span>Upload a Document</span></nobr></button> </div>

Is there something I am missing, is this not as simple as it seems?

create workflow base on asp.net button?



I have web application in VS.2008 for send comments to manager for sharepoint 2007 site. When user click on send button i want to send email for manager to approve this comments.

how i can start workflow base on click on asp.net button in comments.aspx page & how i can access to Comments.textbox & others field in my workflow?

I can't perform this senario with sharepoint designer 2007, right?

can you give me a sample or related link to my problem?

thanx alot.


How to create a "back" button


How do i create a "back" botton which will take the user to the "previous" page?


Problem to group radio button across gridview rows

In general no one can easily group or make a single selection from radio button list inside gridview rows. There are a lot of way to make a single or unique selection from list. Here i want to share how i can address this problem in the most easiest way. Googling the problem most of the cases i saw the grouping in horizontal way. Thats why i tried to group the radio buttons in vertical manner. Let i have a requirement like below:

Maintain HTML Radio Button Selection Inside GridView After Postback

Long time ago I wrote an article about getting the value of the selected RadioButtons inside the GridView control. The code did not addresssed the postback issue which means that the selected radio button was cleared after the postback occurs.

A Simple and Extensible Radio Button Style GridView

The GridView is one of the significant controls in ASP.NET 2.0 and later versions. No doubt it reduces a lot of work time. However, customizing the GridView control is not an easy task. For example, it's hard to add a radio button column to the GridView. This article demonstrates the reason why a radio button column cannot act as normal and how to create a simple and extensible radio button GridView.

How to create 3 tier application using LINQ

As you know that in 3 tier architecture there are three layers

User interface layer. (Is our Form in Windows application and .aspx page in Web application)
Data Access layer. (Which provides interface between Business logic layer and Database)
Business Logic layer.(Which stores your application logic)
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend