|
In Both of your post nothing is understandable . can you please confirm your query ?
Member 3128874 wrote: Subject:Hi all i have a seriou problem plz help me
It should not be the subject. Always try to give proper subject that every body can understand your main query objective from Subject itself.
cheers,
Abhijit
|
|
|
|
|
Member 3128874 wrote: one serious problem
You actually have several serious problems.
1. You posted the same question twice within a very short time
2. Your subject is meaningless
3. It appears the shift and various other keys don't work on your keyboard. There is no additional charge per character here on CP, so PLZ USE ALL UR KEYS pROPErly
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hello i have one serious problem
Product name is : T. Owens Action Figure" (It has a double quote at last)
when the product is browsed through the web the page is not rendered correctly because of the presence of the double quotes in the Product name.
and the product name is binded to the control at runtime.
i want the product should be rendered correctly even the product name contains (") quotes.
(this is the code written in the .aspx page.)
Zoom
This is the code captured after the page is renderd(See Below)
because of the double quotes the script is not rendered .
<a href ="javascript:LoadLargeImage( 'http://localhost/DallasStore/CatalogImages/18-41-Large_Image.jpeg','T. Owens Action Figure - Dallas Cowboys""')">Zoom</a>
How to resolve this issue..Plz help
|
|
|
|
|
No one here cares if it is urgent.
Blog link to be reinstated at a later date.
|
|
|
|
|
Hi all,
I have a simple page on which I've place a gridview which is bound to a generic List that contains ShoppingCartItem objects.
the code for my aspx file looks like this:
]]>
<asp:content id="Content3" contentplaceholderid="ArticleContent" runat="server" xmlns:asp="#unknown">
<asp:label id="lblShoppingCartStatus" runat="server" text="">
<asp:gridview onrowediting="gridCart_RowEditing">
OnRowCancelingEdit="gridCart_RowCancelingEdit"
OnRowUpdating="gridCart_RowUpdating"
OnRowCommand="OnRowCommand"
OnRowUpdated="gridCart_RowUpdated"
ID="gridCart" runat="server"
AutoGenerateColumns="false" EnableViewState="true">
<columns> <asp:boundfield readonly="true" datafield="Description" headertext="Product">
HtmlEncode="False">
<itemstyle width="300px">
<asp:boundfield readonly="true" datafield="Price" headertext="Price">
HtmlEncode="False">
<itemstyle width="100px">
<asp:boundfield readonly="false" datafield="Quantity" headertext="Quantity">
HtmlEncode="False">
<itemstyle width="100px">
<asp:commandfield buttontype="Link" edittext="Modify" showeditbutton="true" causesvalidation="false">
My code behind code looks like this:
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
namespace Customer
{
public partial class PrimeShopCheckout : System.Web.UI.Page
{
private List<shoppingcartitem> ShoppingCartItems
{
get
{
if (ViewState["shoppingCartItems"] != null)
{
return (List<shoppingcartitem>)ViewState["shoppingCartItems"];
}
return new List<shoppingcartitem>();
}
set
{
ViewState["shoppingCartItems"] = value;
}
}
private void BindGrid()
{
gridCart.DataSource = ShoppingCartItems;
gridCart.DataBind();
}
protected void gridCart_RowEditing(object sender, GridViewEditEventArgs e)
{
gridCart.EditIndex = e.NewEditIndex;
BindGrid();
}
protected void gridCart_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
{
gridCart.EditIndex = -1;
BindGrid();
}
protected void gridCart_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
// get the information
int rowIndex = e.RowIndex;
var a = gridCart.Rows.Count;
}
protected void gridCart_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
e.KeepInEditMode = false;
}
protected void OnRowCommand(object sender, GridViewCommandEventArgs e)
{
var aaa = gridCart.Rows.Count;
}
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Hashtable shoppingCart = (Hashtable)WebProfile.Current.ShoppingCart;
List<shoppingcartitem> shoppingCartItems = new List<shoppingcartitem>();
IDictionaryEnumerator enumerator = shoppingCart.GetEnumerator();
while (enumerator.MoveNext())
{
var item = new ShoppingCartItem();
Product product = (Product)enumerator.Key;
int quantity = (int)enumerator.Value;
item.Description = product.Description;
item.Price = product.Price;
item.Quantity = quantity;
shoppingCartItems.Add(item);
}
ShoppingCartItems = shoppingCartItems;
gridCart.DataSource = ShoppingCartItems;
gridCart.DataBind();
}
}
}
[Serializable]
public class ShoppingCartItem
{
public string Description { get; set; }
public decimal Price { get; set; }
public int Quantity { get; set; }
}
}
The problem is that when I click the Update button to change the number of items for a specific product, in the RowUpdating event handler I get the number of rows as 0!!!!
I've read plenty of docs on the gridview, searched google for answers to my problem, saw implementations for the functionality I use .... according to what I read so far, everything should work fine. But it's not!
Can anyone let me know why the number of rows is zero in the row updating event?
Where am I losing the data in the gridview?
I need help with this as I am completly stuck at this moment - I don't have any clue what else to try....
Thanks in advance!
Andrei
|
|
|
|
|
Hello Friends,
I want to validate textbox of a GridView using the RequiredFieldValidator
So for it i'm using the following code but it's not working fine. As i click on the update button it show the error for a while but do a postback but it should not do any postback and should validate as well.......
Here i'm giving a bit of code below Please let me know the problem i'm creating
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="ElearningDataGridBody"
DataKeyNames="ID" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowEditing="GridView1_RowEditing"
OnRowUpdating="GridView1_RowUpdating" Width="100%" OnRowDeleting="GridView1_RowDeleting">
<Columns>
<asp:BoundField DataField="ID" HeaderText="ID" ReadOnly="True">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:TemplateField HeaderText="Category Name">
<EditItemTemplate>
<asp:TextBox ID="TextBox_CategoryName" runat="server" Text='<%# Bind("CategoryName") %>'></asp:TextBox>
<asp:RequiredFieldValidator ID="required_CategoryName" ErrorMessage="Please Enter Category Name Edit" ForeColor="red" ControlToValidate="TextBox_CategoryName" runat="server">*</asp:RequiredFieldValidator>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("CategoryName") %>'></asp:Label>
</ItemTemplate>
|
|
|
|
|
Hi,
I am new with SMTP, I want to configure my system with SMTP.
I have installed Windows 2000 Adv SErver.
From Where should I start ?
Thanks,
Rameez
|
|
|
|
|
|
Guys,
I am working on a project which is developed by someone and i found strange javascript code there
$(document).ready(function(){
$(document).pngFix();
});
Is something wrong ? or it is correct code?
Browser gives error - "Object expected"
|
|
|
|
|
Looks like they've used one of the JavaScript frameworks such as jQuery[^]
|
|
|
|
|
|
Hi Coders,
Can any one tell me answer of this question How can You trap a request come from another website to your website in ASP.net.
Any help will be appreciated!
Gautam
|
|
|
|
|
gautamamit8 wrote: How can You trap a request come from another website to your website in ASP.net.
Try checking the referrer. Request.UrlReferrer . Make sure you check for NULL before using it.
|
|
|
|
|
alter proc CopyObject
(@ObjectId int,
@NewParentId int)
as
declare @NewId int,
@NewName varchar
select @NewId = max(Id) + 1 from Object
select @NewName = [Name] + 'copy' from [Object] where Id = @ObjectId
-- copy object
INSERT INTO [Object]
([Id]
,[Name]
,[ParentId]
select @NewId,
@NewName,
@NewParentId
from [Object]
where Id = @ObjectId
-- copy children and set their parent to the newly created object
declare c cursor fast_forward for
select Id
from [Object]
where ParentId = @ObjectId
declare @ChildId int
open c
fetch next from c into @ChildId
while @@fetch_status = 0
begin
exec CopyObject
@ObjectID = @ChildId,
@NewParentId = @NewId
fetch next from c into @ChildId
end
close c
deallocate c
But htis throws an error that the cursor already exists:
Raghvendra
|
|
|
|
|
1 - Read this[^]. Specially point 5
2 - Goto correct forum.
|
|
|
|
|
Yors given link navigate to to some page
url of it is http://www.codeproject.com/script/Forums/View.aspx?fid=12076&select=2775545&tid=1278599
which shows nothing to me sir
Please give me some hint bcose it is really urgent to me
Raghvendra
|
|
|
|
|
I m eagerly waiting urs response sir
Raghvendra
|
|
|
|
|
stp tlking in txt, go to rite forum an u mite get an anser
|
|
|
|
|
You need to stick this in the SQL forum, but you might want to look at the fact that you are declaring a global cursor within a procedure that you recursively call from within the cursor...
|
|
|
|
|
Sir If u can Give me some help regarding i would be thankful to u bcos i nedd it urgent
i m facing same prob since last 2 days
Raghvendra
|
|
|
|
|
He did give you some help. Read the post and look at what you were told about global cursors.
Member 4659001 wrote: i nedd it urgent
Urgency is all in the eye of the beholder.
More urgently, you nedd a new keyboard, some of ur keys r mssing
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi
I want to know a way by which i can create a .txt file in another system having username and password connecting through a path
Eg:"ftp//68.288.132.109/UserName/Password"
|
|
|
|
|
As you have IP/Username/Pwd, WMI should allow u to connect to remote computer and create files in it. So google your problem with WMI in the search query and u should be able to get some code snippets
srinivaskonijeti wrote: Subject:Creating a .txt file in a web form (Urgent)
Urgent is beautifully ignored by all of us
-------------------------------------------
It's code that drives you - Shyam
|
|
|
|
|
srinivaskonijeti wrote: create a .txt file in another system having username and password connecting through a path
You can't. ASP.NET is not built for that.
|
|
|
|
|
Hi all
I am developing a web application wher i need to have some parent child relations.
I need a special gridview (something else doesn't matter) where i can do multiple add/update/delete events then in one click save all. My client cann't handle a server trip on each event.
Any Help !!!!
|
|
|
|