|
What is the control? Flash or ActiveX Object?
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!
|
|
|
|
|
|
Hello Experts,
I develope one wep application in asp.net.Below my menu there are some flash banners .when I open submenues they open behind the flash banners .
give me some suggetions.
Thanking You,
Ajit
|
|
|
|
|
This is no ASP.Net question.
You should beter ask this in Web Development forum.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
You may need to have the following param:
<param name="wmode" value="transparent">
In the EMBED tag for non-MS browsers add an attribute wmode="transparent"
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!
|
|
|
|
|
Hi Experts
I have flash objects below my menu.so when i click menu they go behind my flash objects.....i want to bring my dropdownmenu in front of my flash ...please help.
|
|
|
|
|
|
dear sir,
i have a nested gridview.parent gridview contain item code, status and detail.and if status is "s" and "a" then in detail column there should be expand sign and if status is "no change" then expand sign should not be there.
i am trying this by following method.
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
string icode2 = ((DataRowView)e.Row.DataItem)["Item_Code"].ToString();
string status = ((DataRowView)e.Row.DataItem)["Status"].ToString();
if (status == "W"||status == "No Change" )
{
ClientScript.RegisterStartupScript(GetType(), "onload", "image('div" + ((DataRowView)e.Row.DataItem)["Item_Code"].ToString() + "','one','" +
((DataRowView)e.Row.DataItem)["Status"].ToString() + "');");
}
}
and the java script function is this
function image(obj,row,status)
{
var div = document.getElementById(obj);
var img = document.getElementById('img' + obj);
if(status=="W" || status =="No Change")
{
img.src="";
}
}
but with this i have a problem .
the problem is that in parent gridview the first "no change" will not have expand sign but the second "no change"
will contain expand sign.
please help me.
please help me how it will possible without javascript
modified on Friday, July 3, 2009 5:30 AM
|
|
|
|
|
You can do it without javascript
If you are using the RowDataBound Then you caN DO IT DIRECTLY
DKMISRA
TECHNICAL
<script type="text/javascript"><!--
google_ad_client = "pub-7634524932535617";
/* 728x90, created 7/26/08 */
google_ad_slot = "4863734097";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
|
|
|
|
|
Hi
Can any one please let me know, how to integrate yahoo calendar service with ASP.NET, can any let me know which API of yahoo to user for this or any one can provide me the code snippet, kindly reply asap, thanks in advance.
regards,
|
|
|
|
|
Hi
I am getting this error "Internet explorer can not open the internet site. Operation aborted." whenever i try to update my contents on some pages. On that page i am using Google map API.So plz do the needfull
|
|
|
|
|
first i make a gridview it is visible when i made some changes in it,it hides. it visible property is true.plz help
|
|
|
|
|
you have to write your bind coding inside postback or after the (some changes)event. So the reason for grid view not visible is the gridview bind method is not called....
|
|
|
|
|
|
can you please send the code....
|
|
|
|
|
Yea,I also think this might be binding issue.Post your code so that problem can be actually find.
himanshu
|
|
|
|
|
public partial class Default2 : System.Web.UI.Page
{
SqlConnection cnx = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|Coupon Management.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True");
SqlDataAdapter da1 = new SqlDataAdapter();
DataSet ds = new DataSet();
SqlCommand cmd = new SqlCommand();
DataTable dataTable;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
FillVendorGrid();
}
}
private void FillVendorGrid()
{
dataTable = new DataTable();
cmd.Connection = cnx;
cmd.CommandText = "SELECT CouponType.CouponName, Coupon_Info.Coupon_TypeID FROM CouponType INNER JOIN Coupon_Info ON CouponType.CouponTypeID = Coupon_Info.Coupon_TypeID";
da1 = new SqlDataAdapter(cmd);
da1.Fill(dataTable);
GridView1.DataSource = dataTable;
GridView1.DataSourceID = String.Empty;
}
protected void ResultGridView_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
FillVendorGrid();
}
protected void deleting(object sender, GridViewDeleteEventArgs e)
{
cmd.Connection = cnx;
cmd.CommandText = "DELETE FROM Coupon_Info WHERE RecievingDate='" + GridView1.DataKeys[e.RowIndex][0] + "'";
cnx.Open();
cmd.ExecuteNonQuery();
cnx.Close();
FillVendorGrid();
}
}
and this is asp code
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
AutoGenerateColumns="False" AutoGenerateDeleteButton="True"
AutoGenerateSelectButton="True" CellPadding="4" DataSourceID="SqlDataSource1"
ForeColor="#333333" GridLines="None" onrowdeleting="deleting"
style="z-index: 4; top: 425px; left: 280px; position: absolute; height: 312px; width: 691px">
<FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#E3EAEB" />
<Columns>
<asp:BoundField DataField="Date" HeaderText="Date" SortExpression="Date" />
<asp:BoundField DataField="Coupon" HeaderText="Coupon"
SortExpression="Coupon" />
<asp:BoundField DataField="Serial Start" HeaderText="Serial Start"
SortExpression="Serial Start" />
<asp:BoundField DataField="Serial End" HeaderText="Serial End"
SortExpression="Serial End" />
<asp:BoundField DataField="Recieved By" HeaderText="Recieved By"
SortExpression="Recieved By" />
</Columns>
<PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
<HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<EditRowStyle BackColor="#7C6F57" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
|
|
|
|
|
haleemasher wrote: GridView1.DataSource = dataTable; GridView1.DataSourceID = String.Empty;
i dono where the error is... but try to include
private void FillVendorGrid()
{
dataTable = new DataTable();
cmd.Connection = cnx;
cmd.CommandText = "SELECT CouponType.CouponName, Coupon_Info.Coupon_TypeID FROM CouponType INNER JOIN Coupon_Info ON CouponType.CouponTypeID = Coupon_Info.Coupon_TypeID";
da1 = new SqlDataAdapter(cmd);
da1.Fill(dataTable);
GridView1.DataSource = dataTable;
GridView1.DataBind();
}
|
|
|
|
|
thnx 4 help but it doesn't work
|
|
|
|
|
Hi,
As you mention in original post when i made some changes in it.What changes you have made??If it is some kind of database operation make sure datable is filling or not..
himanshu
|
|
|
|
|
changes like change color of gridview not in data source or database
|
|
|
|
|
haleemasher wrote: changes like change color of gridview
where is the code for that.... in which you you are writing the code for color change...
|
|
|
|
|
In your .aspx code - you give the "DataSourceID="SqlDataSource1"" - r u bind with this sqldatasource in aspx page, where is that code ?Post your full code with Sqldatasource.
|
|
|
|
|
SqlConnection cnx = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|Coupon Management.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True");
SqlDataAdapter da1 = new SqlDataAdapter();
DataSet ds = new DataSet();
SqlCommand cmd = new SqlCommand();
DataTable dataTable;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
FillVendorGrid();
}
}
private void FillVendorGrid()
{
dataTable = new DataTable();
cmd.Connection = cnx;
cmd.CommandText = "SELECT CouponType.CouponName, Coupon_Info.Coupon_TypeID FROM CouponType INNER JOIN Coupon_Info ON CouponType.CouponTypeID = Coupon_Info.Coupon_TypeID";
da1 = new SqlDataAdapter(cmd);
da1.Fill(dataTable);
GridView1.DataSource = dataTable;
GridView1.DataSourceID = String.Empty;
}
protected void ResultGridView_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
FillVendorGrid();
} protected void deleting(object sender, GridViewDeleteEventArgs e)
{
cmd.Connection = cnx;
cmd.CommandText = "DELETE FROM Coupon_Info WHERE RecievingDate='" + GridView1.DataKeys[e.RowIndex][0] + "'";
cnx.Open();
cmd.ExecuteNonQuery();
cnx.Close();
FillVendorGrid();
}
and asp code is
asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConnectionString="<%$ ConnectionStrings:Coupon ManagementConnectionString2 %>"
SelectCommand="SELECT CouponType.CouponName, Coupon_Info.Coupon_TypeID FROM CouponType INNER JOIN Coupon_Info ON CouponType.CouponTypeID = Coupon_Info.Coupon_TypeID"></asp:SqlDataSource>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
AutoGenerateColumns="False" AutoGenerateDeleteButton="True"
AutoGenerateSelectButton="True" CellPadding="4" DataSourceID="SqlDataSource1"
ForeColor="#333333" GridLines="None" onrowdeleting="deleting"
style="z-index: 4; top: 425px; left: 280px; position: absolute; height: 312px; width: 691px">
<FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#E3EAEB" />
<Columns>
<asp:BoundField DataField="Date" HeaderText="Date" SortExpression="Date" />
<asp:BoundField DataField="Coupon" HeaderText="Coupon"
SortExpression="Coupon" />
<asp:BoundField DataField="Serial Start" HeaderText="Serial Start"
SortExpression="Serial Start" />
<asp:BoundField DataField="Serial End" HeaderText="Serial End"
SortExpression="Serial End" />
<asp:BoundField DataField="Recieved By" HeaderText="Recieved By"
SortExpression="Recieved By" />
</Columns>
<PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
<HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<EditRowStyle BackColor="#7C6F57" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
|
|
|
|
|
i think code is perfect, but change the datasource id, i.e
asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConnectionString="<%$ ConnectionStrings:Coupon ManagementConnectionString2 %>"
Here your are giving id="SqlDataSource2"
but in grid your are using "DataSourceID="SqlDataSource1" "
|
|
|
|