|
You might want to look for the subtext project. It is an open source blog written in C# using ASP.NET
|
|
|
|
|
Im getting the below error when im trying to build the Websetup project..
of my Webapplication...
Unable to build project output group 'Content Files from <myproject> (Active)'....
Please help me out....
|
|
|
|
|
hi,
Could you send me the steps details which u r performing while build the web setup project.
Regards
Anil Pal
|
|
|
|
|
Check this
http://support.microsoft.com/kb/835458[^]
Hope it Helps
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
Hello Friends,
I want to show an Div whose id is Div1 of Default2.aspx inside the iframe of a web page(Default.aspx).
<iframe src='Default2.aspx' scrolling="yes" height="200" width="200" style="border:0px solid">
</iframe>
but the code i've given above is bringing the whole page not that particular div because i've giving that page path so can anybody tell me how to call that particular div inside the iframe of Default.aspx
|
|
|
|
|
I don't think you can do that using an IFrame...
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Well, you sort of can...
If you have a script that's gonna hide all the other controls on default.aspx and just leave div1.
It just sounds really, well dirty.
But it could be done.
Why not put that div in a seperate aspx file, show that in the iframe and include did in default.aspx?
Or create a user control out of that div and scrap the whole iframe idea?
var question = (_2b || !(_2b));
|
|
|
|
|
hi..i am using checkboxes to select the rows from one gridview and i want those rows to get copied into another gridview..
i tried using datatable and then creating columns and inserting into and then later binding..below is the code..
DataTable dt = new DataTable();
DataRow dr;
dt.Columns.Add(new DataColumn("userid"));
dt.Columns.Add(new DataColumn("username"));
dt.Columns.Add(new DataColumn("city"));
foreach (GridViewRow gr in GridView1.Rows)
{
if (((CheckBox)gr.Cells[3].FindControl("chkbx")).Checked == true)
{
dr = dt.NewRow();
dr["userid"] = gr.Cells[0].Text;
dr["username"] = gr.Cells[1].Text;
dr["city"] = gr.Cells[2].Text;
dt.Rows.Add(dr);
}
}
GridView2.DataSource = dt;
GridView2.DataBind();
plz help with the code..am stuck here..
thanks..
scarface
|
|
|
|
|
What exactly is the problem or error?
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
there is no error message..when i compile it the data is displayed in the first gridview for which i have used sql data source..when i click on transfer i dont get the display of the second gridview..
scarface
|
|
|
|
|
Hi,
Your code seems ok. Can you send complete code (Page load). Or what error you are encouter.
Regards
Anil Pal
|
|
|
|
|
k..here's the code
here's the aspx code
<form id="form1" runat="server">
<div>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="userid"
DataSourceID="SqlDataSource1" Height="137px" Width="195px">
<Columns>
<asp:BoundField DataField="userid" HeaderText="userid" ReadOnly="True" SortExpression="userid" />
<asp:BoundField DataField="username" HeaderText="username" SortExpression="username" />
<asp:BoundField DataField="city" HeaderText="city" SortExpression="city" />
<asp:TemplateField HeaderText="select">
<ItemTemplate>
<asp:CheckBox ID="chkbx" runat="server" /></ItemTemplate></asp:TemplateField>
</Columns>
</asp:GridView>
</div>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT * FROM [user]"></asp:SqlDataSource>
<br />
<br />
<asp:Button ID="Button1" runat="server" Height="28px" OnClick="Button1_Click" Text="Transfer"
Width="82px" />
<br />
<br />
<br />
<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" >
</asp:GridView>
</form>
here's the c# code
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
{
DataTable dt = new DataTable();
DataRow dr;
dt.Columns.Add(new DataColumn("userid"));
dt.Columns.Add(new DataColumn("username"));
dt.Columns.Add(new DataColumn("city"));
foreach (GridViewRow gr in GridView1.Rows)
{
if (((CheckBox)gr.Cells[3].FindControl("chkbx")).Checked == true)
{
dr = dt.NewRow();
dr["userid"] = gr.Cells[0].Text;
dr["username"] = gr.Cells[1].Text;
dr["city"] = gr.Cells[2].Text;
dt.Rows.Add(dr);
}
}
GridView2.DataSource = dt;
GridView2.DataBind();
}
}
}
thank you..
scarface
|
|
|
|
|
am not getting any error message..
when i compile i just get the display of first gridview and when i click on transfer there's no display of the second gridview..
scarface
|
|
|
|
|
hmmm...............
Please either remove the "AutoGenerateColumns="False"". property of second GridView i.e GridView2. Or make it true.
Cheers!
Regards
Anil Pal
|
|
|
|
|
hey thanks a lot...awesome..
it worked..
scarface
|
|
|
|
|
You welcome always
Regards
Anil Pal
|
|
|
|
|
can you help me out in this one..
now once the rows are copied in second gridview i click on a button delete below gridview 2 then i want them transferred again in first gridview..
can you help me with the code..its urgent..
scarface
|
|
|
|
|
once the row coming from gridview1 why u want to re-transfer it to the first gridview.
you can just delete it from gridview2.
|
|
|
|
|
OK,
But here is one question for you. AS you copied the some checked rows from first grid to second grid right. Now you want to add all the rows from second grid to first on click of delete button.
My question is bcz you have copied not delete the rows from first grid, hence when u r going transfer rows froms seond to first grid then there will be a duplicasy og rows in first grid.
Regards
Anil Pal
|
|
|
|
|
the thing is that once i click the selected rows from first gridview to another i have set rows.visible=false..now if i delete any of those selected rows in second gridview i want the delete rows to go back to first gridview..this is the requirement for my application..
scarface
|
|
|
|
|
then on delete command set the visible of that row true which u make false..
|
|
|
|
|
well i did try that but it does not display..
scarface
|
|
|
|
|
then on delete command first copy the data of second grid to first then fire the
delete query to delete the data.
from my point of view thier is no other alternate.
Regards
Keyur Satyadev
|
|
|
|
|
well i just used another datatable for that..this method is not efficient though keyur..
scarface
|
|
|
|
|