|
is that a question???????
|
|
|
|
|
the question was in the subject line, does anyone use
Mono[^]
|
|
|
|
|
Is it the right place to question this.
This is ASP.NET.
|
|
|
|
|
I believe so but if you can think of a better place please let me know.
Mono is the Linux version of asp.net, the code is the same that is why I asked here.
I'm looking for input from people like me, people that primarily windows developers.
|
|
|
|
|
Mono is actually not related with ASP.NET. It can build any type of supported applications.
You can use MONO in MAC as well.
I think a better place should be "General IT Issues", where you can discuss about Mono.
|
|
|
|
|
Hi. I have table in the database. I want to show the table row as column in the gridview. How can i do that?
|
|
|
|
|
|
I think you need to do it in database..
Use TSQL PIVOT function to convert row into columns and vice-versa.
Check this
http://msdn.microsoft.com/en-us/library/ms177410.aspx
for more help.
|
|
|
|
|
|
How to bind data to a gridview located in the footer row?
|
|
|
|
|
protected void GridView_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.Footer)
{
e.Row.Cells[0].Text = //your bind data
}
}
|
|
|
|
|
protected void GridView_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.Footer)
{
DropDownList objDDL=new DropDownList();
objDDL.TextField="DisplayFieldName";
objDDL.ValueField="ValueFieldName";
objDDL.datasource="yourdatasoruce" ;
objDDL.DataBind();
e.Row.Cells[0].Controls.Add(objDDL);
}
}
Hope this helps!
|
|
|
|
|
protected void gvMandal_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.Footer)
{
DropDownList ddlAssembly = (DropDownList)gvMandal.FooterRow.FindControl("ddlAssembly");
DataView dvAssembly = objGeneral.GetAssemblyNames(ddlDistrict.SelectedValue.ToString());
ddlAssembly.DataSource = dvAssembly;
ddlAssembly.DataTextField = "sAssemblyName";
ddlAssembly.DataValueField = "nAssemblyID";
ddlAssembly.DataBind();
}
}
I used the code like this
It is showing the error--> Object reference not set to an instance of an object.
|
|
|
|
|
Which line is giving error?
Check if "dvAssembly" is null, if so fill it first with data.
|
|
|
|
|
there is error at the line where we find the dropdownlist
|
|
|
|
|
DropDownList ddlAssembly = (DropDownList)e.Row.FindControl("ddlAssembly");
try this.
|
|
|
|
|
|
Great
My pleasure!!
|
|
|
|
|
4anusha4 wrote: DropDownList ddlAssembly = (DropDownList)gvMandal.FooterRow.FindControl("ddlAssembly");
is this the line where the error is generated....
|
|
|
|
|
|
How can I initiate from AspPage2.aspx.cs the other project page AspPage1.aspx.cs to post-back(reload) itself?
Чесноков
|
|
|
|
|
Chesnokov Yuriy wrote: How can I initiate from AspPage2.aspx.cs the other project page AspPage1.aspx.cs to post-back(reload) itself?
Can you explain me the scenario ? If you are in Page1 you can can reload the page2 by simple redirecting. I think your requirement is some think different. Can you please explain ?
Thanks !
|
|
|
|
|
|
Chesnokov Yuriy wrote: How can I initiate from AspPage2.aspx.cs
Means you want to postback from CodeBehind... This is weird.
Are you looking for Server.Execute ?? So that you could get the response of another page from code behind.??
|
|
|
|
|
I've got 2 pages that are opened. In the second page I do some modifications to Session object, then I need to reload first page so that changes would appear in it.
The 2 pages uses the Session object and simply the first one needs to be notified after the changes done from the second one.
Чесноков
|
|
|
|