|
I am searching for articles for discussion forums in ASP.net. I am developing a good social networking site. So i need the discussion forums.
|
|
|
|
|
ANybody alive here? No response
|
|
|
|
|
This is considered very rude and misdemeanor in discussion forums. Experts help out by volunteering their time and efforts for the benefit of others. If you would need a dedicated support, you better ought to lookup for a vendor or outsource your requirement rather than leeching on a discussion forum.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
Check out community-server website.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
Everything is always urgent.
Blog link to be reinstated at a later date.
|
|
|
|
|
Hi,
I have 4 repeaters display some information webpage.I am giving the code here below.please give me the solution.
I have 2 tables.I have display them one below other.I have 2 repeaters in each table.one to display head and other to contents.But when i run the code i could see one header only but the contents in itemtemplate of both repeaters are visible.But the other one which is not visible is rendered when i see in viewsource of the rendered page.
If i comment the databinding code of the other repeater i could see the repeater head which i didn't see before.
This is the code i have written in page load
void Page_Load()
{
repno=int.Parse(Session["repno"].ToString());
username=Session["uname"].ToString();
DataListHeaderBind();
DataListItemsBind();
}
private Void DataListHeaderBind()
{
SqlDataReader drrptAllUsersHead=CMS.GetAllUsers(int repno);
rptAllUsersHead.DataSource=drrptAllUsersHead;
rptAllUsersHead.DataBind();
SqlDataReader drrptUserHead=CMS.GetUserDetails(string username);
rptUserHead.DataSource=drrptUserHead;
rptUserHead.DataBind();
}
Private Void DataListItemsBind()
{
SqlDataReader drrptAllUsers=CMS.GetAllUsers(int repno);
rptAllUsers.DataSource=drrptAllUsers;
rptAllUsers.DataBind();
SqlDataReader drrptUser=CMS.GetUserDetails(string username);
rptUser.DataSource=drrptUser;
rptUser.DataBind();
}
<%@ Page language="c#" Codebehind="UserDetails.aspx.cs" AutoEventWireup="True" Inherits="CMS.UserDetails" MasterPageFile="~/CMS.Master"%>
<%@ MasterType VirtualPath="~/CMS.Master"%>
<asp:Content id="content1" ContentPlaceHolderID="MainContent" runat="server">
<h2><span>Enterprise List</span></h2>
<div class="clear"></div>
<div class="lvl2">
<asp:UpdatePanel runat="server" id="UpdatePanel1">
<ContentTemplate>
<div class="tableWrapper">
<div class="tableOverflow">
<div class="ie6fix">
<table id="Table1" border="0" cellspacing="0" cellpadding="0">
<thead>
<tr>
<asp:Repeater id="rptAllusersHead" runat="server">
<HeaderTemplate>
<th style="width: 5%;">Username</th>
<th style="width: 5%;">FirstName </th>
<th style="width: 6%;">LastName</th>
<th style="width: 9%;">FatherName</th>
</HeaderTemplate>
</asp:Repeater>
</tr>
</thead>
<tbody>
<asp:Repeater ID="rptAllusers" runat="server" >
<ItemTemplate>
<tr class="alignCenter">
<td style="width: 5%" align="center" title='<%# DataBinder.Eval( Container.DataItem, "username" )%>'> </td>
<td style="width: 5%" align="center" title='<%# DataBinder.Eval( Container.DataItem, "firstName" )%>'> </td>
<td style="width: 5%" align="center" title='<%# DataBinder.Eval( Container.DataItem, "lastName" )%>'> </td>
<td style="width: 5%" align="center" title='<%# DataBinder.Eval( Container.DataItem, "fatherName" )%>'> </td>
</tr>
</ItemTemplate>
</asp:Repeater>
</tbody>
</table>
<div><h2> User Details</h2><br/></div>
<table id="Table1" border="0" cellspacing="0" cellpadding="0">
<thead>
<tr>
<asp:Repeater id="rptuserHead" runat="server">
<HeaderTemplate>
<th style="width: 5%;">Username</th>
<th style="width: 5%;">Address </th>
<th style="width: 6%;">City</th>
<th style="width: 9%;">Zip</th>
</HeaderTemplate>
</asp:Repeater>
</tr>
</thead>
<tbody>
<asp:Repeater ID="rptuser" runat="server" >
<ItemTemplate>
<tr class="alignCenter">
<td style="width: 5%" align="center" title='<%# DataBinder.Eval( Container.DataItem, "username" )%>'> </td>
<td style="width: 5%" align="center" title='<%# DataBinder.Eval( Container.DataItem, "address" )%>'> </td>
<td style="width: 5%" align="center" title='<%# DataBinder.Eval( Container.DataItem, "city" )%>'> </td>
<td style="width: 5%" align="center" title='<%# DataBinder.Eval( Container.DataItem, "zip" )%>'> </td>
</tr>
</ItemTemplate>
</asp:Repeater>
</tbody>
</table>
</div>
</div>
<div id="Paging" runat="server" class="pagination">
<asp:Label runat="server" id="lblTotalPages"/>
<asp:TextBox id="txtPageIndex" runat="server" width="50px" visible="false" />
<a id="imgPrev" runat="server" onserverclick="SetCurrentPage" title="Previous"><< Prev</a>
<asp:placeholder id="pages" runat="server"></asp:placeholder>
<a id="imgNext" type="image" onserverclick="SetCurrentPage" runat="server" title="Next">Next >></a>
<asp:Label runat="server" id="lblRecordsPerPage"/>
</div>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</asp:Content>
Please give me the solution i have wasted whole day for this.
I even tried taking onther table and putting table1 and table2 in separate rows.It didn't work for me.
I tried by taking two repeaters instead of 4, using HeaderTemplate and ItemTemplate of the same repeater to display header and Contents(Before i used separate repeater to display header and Items) it also not worked.
I could see one header on top of the page even it is in Second table.
Thanks Inadvance,
Ravi
|
|
|
|
|
Please,any one reply me............
|
|
|
|
|
Hi,
I m trying to put ajax timer control in griview. The gridview is in update panel. I have added an asynchronous post back trigger on Tick event of timer in which I m calling gridview bind so as I can update the time regularly.
I have a function which calculates the time left(its an count down timer).
But doing this the whole pages is being refreshed and also the ticks are not smooth, I mean ticks are running as 2,4,6,3 not like 1,2,3,4 and so on.
Any suggestion???
Regards
Vijay V.
Yash Softech
|
|
|
|
|
Hi, thanks for looking
I have this website layout (3 columns)
container is a div that contains leftColumn, content and rightColumn
In IE, the site looks fine with the background image, but in Firefox the image doesnt show up
Any suggestions??
Thanks in advance
CSS file
#container
{
background-image: url(Images/pageBackground.jpg);
background-repeat: repeat-y;
width: 800px;
}
#leftColumn
{
float: left;
width: 150px;
}
#content
{
float: left;
width: 500px;
}
#rightColumn
{
float: right;
width: 150px;
}
Alexei Rodriguez
|
|
|
|
|
As always when there is a difference in the rendering between Firefox and Internet Explorer, Firefox renders the code correctly, and Internet Explorer renders it incorrectly.
As you only have floating elements in the #container element, there is nothing that gives it any height. As the height becomes zero, you don't see the background image.
There is a rendering error in Internet Explorer that makes the #container element grow to the size of it's children, eventhough they are all floating elements and should not affect the size of the parent.
Specify a height for the #container element, of put a clearing div after the three others. You can use this style for the clearing div:
.Clear {
clear: both;
height: 0;
overflow: hidden;
}
Specifying the overflow is needed because of another rendering bug in IE. Without it, IE will always make the element at least one character high, even if you specify a smaller height.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hey, thanks a lot, the clearing div did it
Actually, i had a footer after the container, and i just moved the footer inside the container as well and added the clear
And i was thinking that IE was rendering right and that it was a firefox problem
Thanks again
Alexei Rodriguez
|
|
|
|
|
AlexeiXX3 wrote: i was thinking that IE was rendering right and that it was a firefox problem
That is a common misconception.
I think that it comes from the combination of several factors; that IE happens to be the most common browser at the moment, that microsoft has chosen to make it accept a lot of non-standard code, and that it interprets some code in a manner that is more logical in some ways but still is non-standard.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi
I have written the following asp.net page and creating the xml file through a method everything is fine it is creating the file but i have a problem. May be you can help for that. it is about the xml file output when it created it showing TABLE and TABLE1 as node in xml how i can change it to meaningful name. My Code is as follows. XML file is at the bottom of the code
using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Xml;
using System.IO;
public partial class _Default : System.Web.UI.Page
{protected void Page_Load(object sender, EventArgs e){
GetEmployees("London");
}
public static void GetEmployees(string City){
//String sConnection = "server=HTCWEBDEMO;database=hometrust;user id=ht_admin;password=htc_tr!st";
String sConnection = "server=ZAFAR-PC\\SQLEXPRESS;Integrated Security=SSPI;database=northwind";
SqlConnection mySqlConnection = new SqlConnection(sConnection);
mySqlConnection.Open();
// Get the same data through the provider.
//string mySQLStatement = "SELECT Title,FirstName,LastName,PhoneNumber,Faxnumber, email from contactlist where TeamName='" + TeamName +"'; select FirstName, LastName from contactlist where TeamMorty ='True' and teamname='" + TeamName + "';";
string mySQLStatement = "SELECT FirstName,LastName,Title,City from employees where city= '" + City + "';select FirstName, LastName from employees where city='" + City + "';";
//SqlDataAdapter mySqlDataAdapter = new SqlDataAdapter(mySQLStatement, sConnection);
SqlDataAdapter mySqlDataAdapter = new SqlDataAdapter(mySQLStatement, sConnection);
DataSet myDataSet2 = new DataSet();
myDataSet2.DataSetName = "Contacts";
mySqlDataAdapter.Fill(myDataSet2);
// Write data to files: data1.xml and data2.xml for comparison.
myDataSet2.WriteXml("c:/temp/ContactList.xml");
mySqlConnection.Close();
}
}
XML FILE OUTPUT
<?xml version="1.0" standalone="yes" ?>
- <Contacts>
- <Table>
<FirstName>Steven</FirstName>
<LastName>Buchanan</LastName>
<Title>Sales Manager</Title>
<City>London</City>
</Table>
- <Table>
<FirstName>Michael</FirstName>
<LastName>Suyama</LastName>
<Title>Sales Representative</Title>
<City>London</City>
</Table>
- <Table>
<FirstName>Robert</FirstName>
<LastName>King</LastName>
<Title>Sales Representative</Title>
<City>London</City>
</Table>
- <Table>
<FirstName>Anne</FirstName>
<LastName>Dodsworth</LastName>
<Title>Sales Representative</Title>
<City>London</City>
</Table>
- <Table1>
<FirstName>Steven</FirstName>
<LastName>Buchanan</LastName>
</Table1>
- <Table1>
<FirstName>Michael</FirstName>
<LastName>Suyama</LastName>
</Table1>
- <Table1>
<FirstName>Robert</FirstName>
<LastName>King</LastName>
</Table1>
- <Table1>
<FirstName>Anne</FirstName>
<LastName>Dodsworth</LastName>
</Table1>
</Contacts>
|
|
|
|
|
Hello All,
I am beginner in ASP .NET
I had used SQL2000, GridView and SQLDataSource. While creating SQDataSource1 query was mentioned "Select top 5 EmployeeId, FirstName from Employee". As page is loaded it show data without error.
Now I had added button on its click event I had used mentioned query "Select top 5 ProductId, ProductName from Product".
My question is can again GridView can be bind with DataKeyNames. If yes how can i do it. I had try code in vb & c#. Please help.
Thanks in advance
Shazz here to help you...
|
|
|
|
|
hi,
do you want to bind the grid with product columns now? I think not possible, I think you should call a user control on click event, use grid view on that control and bind your product columns on that.
|
|
|
|
|
Hi..
I am building a asp.net based website and i am using C# and VB both in this project. I am confused about the web.config setting. In order to go with two languages what settings need to be done in web.config?
|
|
|
|
|
Hi all,
I want to use a DropDownList control and set this property
In Page_Load event:
ddl.DataTextField="Adminicle";
ddl.DataValueField="CodeAdminicle";
ddl.DataBind();
In SelectedIndexChanged event:
row=ddl.SelectedItem.Value
but no row was selected.
what should i do?
|
|
|
|
|
Set 0 index value as default after the bind. Please be ensue list should be 1 value.
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
This is example,
//This is one way to u should bind to dropdown with list.
foreach(string text in TextList)
{
dropdown.Item.Add(new ListItem(text.Name.ToString(),text.ID.ToString()));
}
//when u select value from dropdown,in the selectedIndexChanged Event
string value=dropdown.SelectedValue.ToString();
may be this will help u.
|
|
|
|
|
Hy,
I have created a email page by using the following code
MailMessage msg = new MailMessage();
msg.To = txtTo.Text;
msg.From = txtFrom.Text;
msg.Subject = txtSubject.Text;
msg.Body = txtContent.Value;
lblStatus.Text = "Sending...";
SmtpMail.Send(msg);
but when i run the page the mail is not sent....
do i have to use SmtpMail.SmtpServer for sending the mail?
plz help...
regards
|
|
|
|
|
first of all you have to Configure your SMTP Server for sending mail.
raghvendrapanda wrote: msg.To = txtTo.Text;
You can't do like this, because its take only type of MailAddress or MailAddressCollection object.
So use
msg.To=new MailAddress(TxtTo.Text)
For sending Mail
SmtpClient _smtServer=new SmtpClient("MyServer");
_smtServer.Send(msg);
cheers,
Abhijit
|
|
|
|
|
Hy,
Thankz for replying to my querry..but can u tell me that how can i Configure my SMTP Server for sending mail.
|
|
|
|
|
|
Hy,
I configured the SMTP but it didnt help...I found a virtual directory where a default setting was present ..on tracking i found all my mail where stored in a folder(C:\Inetpub\mailroot\Queue)..and were not sent to the mail..what sholud i do in order to send them?
you suggested me a code..
SmtpClient _smtServer = new SmtpClient("MyServer");
when i used this i get an exception that mail sending failed..
|
|
|
|
|
raghvendrapanda wrote: SmtpClient _smtServer = new SmtpClient("MyServer");
Did you put your SMTP server name over "MyServer"
cheers,
Abhijit
|
|
|
|