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


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

What is a dynamic page

Posted By: TotalDotNet     Posted Date: September 18, 2010    Points:2   Category :ASP.Net
I just want to ask ,suppose i want to pick data from the database
on related topic like c#,Asp. C# is given with and category id=4
and Asp categoryid=2. Now ,using single page i want to render the data.


Responses
Author: Akhil Raj       [Moderator]      
Posted Date: September 20, 2010     Points: 5   

hi friend,
please explain what you needed. i dint get the question correctly

Author: Deco             
Posted Date: September 20, 2010     Points: 5   

you can have a datagrid and using stored procedure you can fetch the data from the
database according to your condition and can display it in the grid

Regards,
Deco
Author: Asha.MP             
Posted Date: September 20, 2010     Points: 5   

Hi..

You can use dropdown list with two values in that dropdown list as ASP and C#.
<table>
<tr>
<td>
<asp:DropDownList ID="ddlData" runat ="server" >
<asp:ListItem Text="ASP" Value="2" ></asp:ListItem>
<asp:ListItem Text="C#" Value ="4"></asp:ListItem>
</asp:DropDownList>
<td>
<td>
<asp:Button ID="BtnSubmit" runat ="server" Text="Submit" />
</td></tr></table>

In code behind--> use BtnSubmit.Click event
in that event--> you can get the selected value using Me.ddlData.SelectedValue
Using that value you can get the details from database by comparing that value with Categoryid.

Thanks and Regards,
Asha.mp
Author: TotalDotNet             
Posted Date: September 20, 2010     Points: 5   

Let me explain my question.

Likewise, i click a C# interview question in gridview which are getting generated from data base.

The database has following column Question title,posted by, category(like c#),posted date,catid(id of c#),questionid(id of question in c#),question.

what i want to do is make a single .aspx page and whenever i click any question of any category,it should
take me to single .aspx page with content of posted by,posted date,question title,answer.....


Regards
www.totaldotnet.com



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

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