|
|
Hello everyone,
I want to put streaming video files(.wmv) on my server and want to access them from client computers. Also don't know how to access these videos from my web application.
Please help me on this
thanks in advance
Regards
Yrisi
|
|
|
|
|
hiii m using datatable.i want to get the row by its id.
for this i have coded:
public decimal GetItemTotal()
{
int intcounter = 0;
decimal decRunningTotal = default(decimal);
DataTable dt = Session("Cart");
DataRow dr = default(DataRow);
for (intcounter = 0; intcounter <= dt.Rows.Count - 1; intcounter++) {
dr = dt.Rows(intcounter);
decRunningTotal += (dr("ItemPrice") * dr("ItemQty"));
}
return decRunningTotal;
}
its gives error on line:
dr=dt.Rows(intcounter)
error:rows is property but is used like method.
tell me hw can i retrive row by its id.
|
|
|
|
|
mylogics wrote: dr = dt.Rows(intcounter);
try using like this,
dr = dt.Rows[intcounter];
|
|
|
|
|
I m adding columns in gridview at runtime ,but these get lost at postbask,I have to reload all at postback ,how should i add columns that it donot disappear at postback.
|
|
|
|
|
Are you binding to your data source in postback ? If you are, you'll lose your columns. If not, I'd have thought not.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
if i do like
if(!ispostback)
{
gridview.datasource=datasource;
}
all the columns disappear,I have to reload/bind with datasource at postback.
I m adding columns in grid like this
private void AddColumns()
{
TemplateField bfield = new TemplateField();
try
{
HeaderText = GetGlobalResourceObject("ViewQuotations", col.ColumnName).ToString(); //Assigns the name of the column in the lable.
}
catch (Exception e)
{
HeaderText = col.ColumnName;
}
//Initalize the DataField value.
bfield.HeaderTemplate = new GridViewTemplate(ListItemType.Header, col.ColumnName, HeaderText);
//Initialize the HeaderText field value.
bfield.ItemTemplate = new GridViewTemplate(ListItemType.Item, col.ColumnName);
//Add the newly created bound field to the GridView.
grdViewEqpCard.Columns.Add(bfield);
}
|
|
|
|
|
Your datasource should be dynamic. Make your datasourse (datatable, dataset) at runtime and bind it to the grid (grid should've it's property AutoGeneratedColumns to True)
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
I need to add some links and radiobuttons in gridview columns at gridview row bound event ,that 's the reason i myself adding fields in gridview,not setting its autogenerate columns ot true
|
|
|
|
|
You can still add link through rowdatabound event.
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
I need to add a column having radio button list.
how will this i add then
|
|
|
|
|
plz help me, i need to do this urgent
|
|
|
|
|
in rowdatabound create an object of radiobutton and add it to the column you want.
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
Thank you ,I think autogenerate =true is the solution
|
|
|
|
|
I am working on LMS application and I have added a scorm course in my application.
|
|
|
|
|
Member 4466059 wrote: I am working on LMS application and I have added a scorm course in my application.
OK, so you don't have a question at all then ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
I am working on LMS application and I have added a scorm course in my application. when I run scorm test then its works fine and showing my quiz result in its flash window.
|
|
|
|
|
If you've done this, why did you post twice to tell us ? Perhaps if it's so good, you could write an article. This area is for questions.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
how did you create SCOM course and also how did you manage to transfer data from scorm object to LMS. Could you provide some basic examples. There is so much information but nothing is simple and takes u not to have headace while reading. I would much appreicat it.
|
|
|
|
|
Hi Guys,
I have a problem resizing the iFrame at runtime. I need to resize it based on different screen resolutions.
This is the html tag of my iFrame:
<a id="iiframe" href="livechat.aspx iframe=true&amp;width=394&amp;height=520" rel="prettyPhoto[mixed]">
<img src="images/corner.png" width="190" height="205" />
</a></div>
hifiger2004
|
|
|
|
|
Heyy,
give width and height in % rather than pixels
|
|
|
|
|
I m showing Product image, description, specification in datalist through database........this is asp code.......
<asp:datalist id="DataList1" runat="server" width="80%" cssclass="Datalist">
<itemstyle backcolor="White">
<itemtemplate>
<asp:imagebutton id="ImageButton2" runat="server" height="230px"
="" width="230px" imageurl="<%#Container.DataItem("Picture") %>">
| <asp:label id="lblHeading" runat="server" cssclass="ProductHead"
="" text="< %#Container.DataItem("Name") %>">
<asp:label id="lblDesc" runat="server" cssclass="ProductDesc"
="" text="<%#Container.DataItem("Description") %>">
<asp:label id="lblProductDetails" runat="server" cssclass="ProductDetails"
="" font-underline="True" text="Product Details">
<asp:label id="lblItem" runat="server" font-bold="True" font-names="Verdana"
="" font-size="Small" forecolor="Gray" text="Item #">
<asp:label id="lblIt" runat="server" cssclass="ProductPD"
="" text="<%#Container.DataItem("ItemNo") %>">
<asp:label id="lblTI" runat="server" cssclass="ProductDetails"
="" font-underline="True" text="Tanzanite Info">
<asp:label id="lblQuality" runat="server" font-bold="True" font-names="Verdana"
="" font-size="Small" forecolor="Gray" text="Quality:">
<asp:label id="lblQ" runat="server" cssclass="ProductPD"
="" text="<%#Container.DataItem("Quality") %>">
<asp:label id="lblDimensions" runat="server" font-bold="True"
="" font-names="Verdana" font-size="Small" forecolor="Gray" text="(LengthxWidthxHeight):">
<asp:label id="lblW" runat="server" cssclass="ProductPD"
="" text="<%#Container.DataItem("length") %>">
<asp:label id="X1" runat="server" cssclass="ProductPD" text="x">
<asp:label id="lblH" runat="server" cssclass="ProductPD"
="" text="<%#Container.DataItem("width") %>">
<asp:label id="X2" runat="server" cssclass="ProductPD" text="x">
<asp:label id="lblD" runat="server" cssclass="ProductPD"
="" text="<%#Container.DataItem("height") %>">
|
<asp:label id="lblPrice" runat="server" font-names="Verdana" font-size="Medium"
="" forecolor="Gray" text="PRICE:">
<asp:label id="Label13" runat="server" cssclass="ProductPrice" text="$">
<asp:label id="lblPr" runat="server" cssclass="ProductPrice"
="" text="<%#Container.DataItem("Price") %>">
<asp:button id="btnAddToBasket" runat="server" backcolor="#2165B0"
="" bordercolor="Black" borderstyle="Double" borderwidth="1px" font-names="Verdana" forecolor="White" text="ADD TO BASKET" commandname="atb">
<asp:imagebutton id="ibWishlist" runat="server"
="" imageurl="~/Images/wishlist.gif">
<asp:linkbutton id="lbAddtoWishlist" runat="server" font-names="Verdana"
="" font-size="X-Small" forecolor="#4B7BB0">Add to Wishlist
|
This is page behind code........
Dim id As Integer = Request.QueryString("id")
Dim cmd As String = "Select * from Products where StoneID=" & id & ""
Dim rdr As IDataReader = db.ExecuteReader(CommandType.Text, cmd)
DataList1.DataSource = rdr
DataList1.DataBind()
Now wht i want is whnvr user took mouse over on image..........a button of Enlarge will show.............and on click the image got enlarge...........and background become change in black color.........how to do in datalist................plz guide me a bit.........
|
|
|
|
|
Yaar,
Please post only relevent code snippet ,
"itni ramayan kaun padhega "
|
|
|
|
|
protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
//TextBox t= (TextBox )GridView1.Rows[e.RowIndex ].FindControl ("txtId");
//TextBox t2=(TextBox )GridView1.Rows[e.RowIndex ].FindControl ("txtName");
GridViewRow row = GridView1.Rows[e.RowIndex];
TextBox t = (TextBox)row.FindControl("txtId");
TextBox t2 = (TextBox)row.FindControl("txtName");
con.Open();
cmd = new OdbcCommand("update table AdminAddNewItem set Node_Name= '" + t2.Text + "' where Node_Id=" + t.Text, con);
cmd.ExecuteNonQuery();
con.Close();
|
|
|
|