|
Targeting WAP enabled devices is very different than a mobile web browser. In most cases there are two, or more sites/pages used to target different platforms. I would suggest starting there
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
hiii i am using datalist as a cart to show the items.
but the update functionality is not working.i m entering the quantity in textbox n updating it.
can u help me.
plz guide.
the code is:
protected void Update(object source, DataListCommandEventArgs e)
{
int ProductID = Convert.ToInt32(DataList1.DataKeys[e.Item.ItemIndex]);
TextBox txtqty;
txtqty = ((TextBox)e.Item.FindControl("txtqty"));
string connectionstring = ConfigurationManager.ConnectionStrings["SilverOnline"].ConnectionString;
SqlConnection conn = new SqlConnection(connectionstring);
SqlCommand cmd = new SqlCommand("Update Home Set ProductQty=@productqty Where ProductID=@productid", conn);
cmd.Parameters.Add("@productqty", SqlDbType.VarChar).Value = txtqty.Text;
cmd.Parameters.Add("@productid", SqlDbType.Int).Value = ProductID;
if (conn.State == ConnectionState.Closed)
conn.Open();
cmd.ExecuteNonQuery();
if (conn.State == ConnectionState.Open)
conn.Close();
DataList1.EditItemIndex = -1;
Session["cart"] = dt;
DataList1.DataSource = dt;
DataList1.DataBind();
lbltotal.Text = "Rs." + gettotal();
}
|
|
|
|
|
what is the error you are getting...
mylogics wrote: Session["cart"] = dt; DataList1.DataSource = dt; DataList1.DataBind();
if this session value has old value then what is the use of rebinding it in to datalist.
|
|
|
|
|
hi
How to call an interface from cs file
|
|
|
|
|
Hi all,
I dont think u can call interface from .cs file u can implement interface.
|
|
|
|
|
What do you mean by calling an interface?
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
interface cannot be called it can be implemented as multiple inheritance...
|
|
|
|
|
padmanabhan N wrote: it can be implemented as multiple inheritance
Interface is implemented and not inherited. It is no way related to multiple inheritance.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
sir,then what will be the difference between inheritance and interface....
|
|
|
|
|
You inherit a functionality. Interface does not gives you any kind of functionality. Even if I have a method say Sum in my interface, any class implementing it can write anything in the method definition. There is no way an interface can force you write code that will calculate sum if it has a method called sum.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
If Dog class implements IDog interface, then you can do something like:
IDog dog = new Dog();
dog.Bark();
I think this is what you are asking. You cannot "call" an interface directly. However, you can use an instance of an interface type to call a method provided the instance points to an object that implements that interface.
|
|
|
|
|
Dear All,
i am making an inhouse software to track all contract details, right from the sanction of the contract to the implementation of the project.
I have the a table named mtblcontract;
Proj_No - primary key
Funding Agency
Sanctioned Amount
Start Date
End Date
This above table stores the basic information of the project.
I have a form where we need to enter the sanction amount details. The structure of the form is given below. Below is the sanction details for the Project_No P001
[B]Project_ No: P001[/B]
S. No Head Sanctioned_Amount Estimated_Exp Profit
1 Salaries 20000 5000 5000
2. Travel 5000 2500 2500
I would want the user to enter the above details in a grid. How do i do it? I am also confused as to how to create a table (table structure: fields) to store the above data.
Would be great if any one of you could help me in this....
Thanks
Sajit
|
|
|
|
|
make a template field in the grid and insert a textbox in that template field and insert the values.......
|
|
|
|
|
Hi
Use Grid view to allow the user to enter the information. Access the grid row from CodeBehind and Save the Entered Data.
Please use the following line to access the data grid textbox value from code behind
Convert.ToString(CType(GridView1.Rows(i).FindControl("Text1"), Textbox).Text)
Thanks,
Raja.S
modified on Tuesday, November 10, 2009 8:22 AM
|
|
|
|
|
hello,
how can i run my site in local iis server? 
|
|
|
|
|
|
HI All,
can any one give me idea abt how to start implementing the RSA encryption algorithm using C#.
Thanks and regards,
Amit Patel
|
|
|
|
|
|
I tried this this but this is not working.
Thanks and regards,
Amit Patel
|
|
|
|
|
Google can. There are loads of examples.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Dear All,
I would like to send emails to the clients in accordance with their choice (shopping), I would like it to be formatted, so I thought of HTML body however, it seems difficult to convert gridview datasource to HTML, Is there any easy way to reach the HTML source of a page and assign it to an HTML Text.
Thanks alot.
Below you may see a samle page to be sent.
<table style="margin-left:auto; margin-right:auto; position:relative;">
<tr>
<td>
<div id="centrallarge">
<h1 style="height:85px; width:900px;"><img src='http://www.salatabufesi.com/images/SalataPage.jpg' alt="Salata"/> </h1>
<h1 style="height:45px; width:900px;"><img src='http://www.salatabufesi.com/images/SalataBufesi.jpg' alt="Salata Büfesi"/> </h1>
</div>
</td>
</tr>
<tr>
<td>
<div id="central" style="height:400px; margin-top:30px;">
<table id="Tablo" style="margin-left:auto; margin-right:auto; position:relative;">
<tr id="Satir1" style="height:25px; vertical-align:top;">
<td width="901" id="Sutun1">
<span id="lblAciklama" style="color:Red;font-family:Tahoma;">Siparişiniz elimize ulaşmıştır</span> </td>
</tr>
<tr style="height:25px; vertical-align:top;">
<td>
<span id="lblOnMusteri" style="color:Red;font-family:Tahoma;">Sipariş Adresi: </span>
<span id="lblMusteri" style="font-family:Tahoma;">İstasyon Cad Nuriye Hnm Apt No:17/14 .</span>
</td>
</tr>
<tr style="height:25px; vertical-align:top;">
<td>
<span id="lblOnOdeme" style="color:Red;font-family:Tahoma;">Ödeme Şekli: </span>
<span id="lblOdeme" style="font-family:Tahoma;">Banka Kartı/Kredi Kartı.</span>
</td>
</tr>
<tr style="height:50px; vertical-align:top;">
<td>
<span id="lblEkAciklama" style="font-family:Tahoma;">Eğer görevli kişi ilgili POS makinesini getirmeyi unutmuşsa, lütfen geri gönderip, POS makinesini getirmesini talep ediniz.</span>
</td>
</tr>
<tr style="height:200px; vertical-align:top;">
<td>
<div id="UpdatePanel1">
<div>
<table width="897" border="1" cellpadding="3" cellspacing="2" rules="all" id="dgSiparisler" style="background-color:#DEBA84;border-color:#DEBA84;border-width:1px;border-style:None;font-family:Tahoma;font-size:11pt;">
<tr style="color:White;background-color:#A55129;font-weight:bold;">
<th width="67" align="left" scope="col">Adet</th>
<th width="683" align="left" scope="col">Salata Adı</th>
<th width="106" align="left" scope="col">Tutar</th>
</tr><tr valign="top" style="color:#8C4510;background-color:#FFF7E7;border-style:None;font-family:Tahoma;height:25px;">
<td>
<span id="dgSiparisler_ctl02_lblAdet">1</span>
</td><td>
<span id="dgSiparisler_ctl02_lblMenuAdi">Ton Balıklı</span>
</td><td>
<span id="dgSiparisler_ctl02_lblKullaniciAdi">8,00</span>
</td>
</tr><tr valign="top" style="color:#8C4510;background-color:#FFF7E7;border-style:None;font-family:Tahoma;height:25px;">
<td>
<span id="dgSiparisler_ctl03_lblAdet">1</span>
</td><td>
<span id="dgSiparisler_ctl03_lblMenuAdi">(Cherry Domates, Domates, Loloroso (Kırmızı Marul), Marul, Mısır, Renkli Biber, Salatalık, Salatalık Turşusu, Soya Filizi, Ton Balığı, Limon, Zeytin Yağı)</span>
</td><td>
<span id="dgSiparisler_ctl03_lblKullaniciAdi">8,00</span>
</td>
</tr><tr valign="top" style="color:#8C4510;background-color:#FFF7E7;border-style:None;font-family:Tahoma;height:25px;">
<td>
<span id="dgSiparisler_ctl04_lblAdet">1</span>
</td><td>
<span id="dgSiparisler_ctl04_lblMenuAdi">Coca Cola Light 33ml</span>
</td><td>
<span id="dgSiparisler_ctl04_lblKullaniciAdi">2,00</span>
</td>
</tr><tr valign="top" style="color:#8C4510;background-color:#FFF7E7;border-style:None;font-family:Tahoma;height:25px;">
<td>
<span id="dgSiparisler_ctl05_lblAdet">1</span>
</td><td>
<span id="dgSiparisler_ctl05_lblMenuAdi">Ayran</span>
</td><td>
<span id="dgSiparisler_ctl05_lblKullaniciAdi">2,00</span>
</td>
</tr><tr valign="top" style="color:#8C4510;background-color:#FFF7E7;border-style:None;font-family:Tahoma;height:25px;">
<td>
<span id="dgSiparisler_ctl06_lblAdet">1</span>
</td><td>
<span id="dgSiparisler_ctl06_lblMenuAdi">Fanta 33 ml</span>
</td><td>
<span id="dgSiparisler_ctl06_lblKullaniciAdi">2,00</span>
</td>
</tr>
</table>
</div>
</div>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
|
|
|
|
|
System.IO.StringWriter stringWrite = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
GridView1.RenderControl(htmlWrite);
This might help.
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
good answer it seems exactly what I need.
thanks
|
|
|
|
|
hello..I create project online exam with database sql server ...
For multiple question there are many answers for each one questions.
Example: question A have 5 answer
question B have 18 answer
I want to loop answers of question of A(id=1) to textBox: Ans1,Ans2,Ans3,...Ans10 according to number of answers..
Please help me..
thanks
|
|
|
|
|
Use a group by query to get your data and use them accordingly.
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|