Telerik Forums
Community Forums Forum
0 answers
111 views
Hello,
JavaScript is a powerful client-side scripting language used in many modern websites and Web applications. In the hands of a skilled Web developer, JavaScript can enhance the user’s experience of the website and provide rich interactive components and features. But even though syntactically simple in nature, JavaScript is often difficult to author because of the environment it runs in: the Web browser.

Read more at 50 excellent tools to help you achieve various tasks in JavaScript

Best regards,
Mostafa Anoosheh


Mostafa Anoosheh
Top achievements
Rank 1
 asked on 06 Jan 2010
0 answers
90 views
Hello,
This is a question that I get very frequently, and I always tried to dodged the bullet, but I get it so much that I feel that I have to provide an answer. Obviously, I am (not so) slightly biased toward NHibernate, so while you read it, please keep it in mind.
Read more at NHibernate vs. Entity Framework 4.0

Kind regards,
Mostafa Anoosheh


Mostafa Anoosheh
Top achievements
Rank 1
 asked on 06 Jan 2010
0 answers
99 views
 the problem is that when i clcik the link in the delete coloumn of gridview (which is a delete command)

Actually i have an update query changing the status field  for the delete command query so the row is not deleted but just the status field is changes when delete button is clicked.
it makes isinEditMode =false for the row below the one for which i clicked  instead of the row for which i clicked. Here is the code

for the gridview coloumn customer_notes

<asp:TemplateField HeaderText="Customer_Notes" SortExpression="Customer_Notes">

<ItemTemplate>
<asp:Label ID="labelco" Visible='<%# !(bool) IsInEditMode %>' runat="server" Text='<%# Bind("Customer_Notes") %>'></asp:Label>
<asp:TextBox ID="Customer_Notes" Visible='<%# IsInEditMode %>' TextMode="MultiLine" runat="server" Text='<%# Bind("Customer_Notes") %>'></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>

When the isineditmode = true it should be showing the textbox which then makes it editable....

everything works but  when when i click on the absent link it chanes to " undo absent"   then iseditmode should be false for that  row

but the row below it is getting the value iseditmode =false.  This the only thing stopping my project.....What is the reason

code for the rowdataboundevent

 

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{


if (e.Row.RowType == DataControlRowType.DataRow ||e.Row.RowType == DataControlRowType.EmptyDataRow)
{

LinkButton lnk = (LinkButton)e.Row.FindControl("LinkButton1");

DataRowView rowView = (DataRowView)e.Row.DataItem;
//Setup a boolean equal to the bitvalud of your DB field
int test = Convert.ToInt32(rowView["Status"]);

if (test == 0)
{

lnk.Text = "customer";
lnk.Font.Bold = true;
lnk.ForeColor = System.Drawing.Color.DarkOliveGreen ;
lnk.CommandName = "Delete";

isEditMode = true;




}
else if (test == 1)
{
lnk.Text = "NOT Customer";
lnk.Font.Bold = true;
lnk.ForeColor = System.Drawing.Color.DeepSkyBlue ;
lnk.CommandName = "Delete";


isEditMode = false;

}



//set datasource of GridView





}





}
 
akpaga akpaga
Top achievements
Rank 1
 asked on 31 Dec 2009
0 answers
134 views
Hello,
I want to share this
15 reasons why you should start using Model Driven Development

Kind regards,
Mostafa Anoosheh



Mostafa Anoosheh
Top achievements
Rank 1
 asked on 30 Dec 2009
0 answers
168 views
Hello,
UML lost the programmers. There is no doubt about it… in my mind. And when a software design technology loses the programmers it fades away no matter what the academia thinks. This happened because UML was pushed in a direction that most code writers don’t like: it started to look a lot like bureaucratic paper work. If we list what went wrong it starts to look a lot like the mishaps of other committee driven technologies like CORBA for example.
Read more at 13 reasons for UML’s descent into darkness

Best regards,
Mostafa Anoosheh


Mostafa Anoosheh
Top achievements
Rank 1
 asked on 30 Dec 2009
0 answers
83 views
Cufon is awesome.  You generate a font, then attach it and the Cufon.js to your site.

What you get is instant client-side text replacing.  If done properly you won't even see the text popping to your Cufon font.  Even better, it supports all but the oldest browsers (even works on IE6!)

I prefer Cufon over other flash based alternatives because (and obviously) we're not relying on a plugin to be installed...just javascript enabled.

Tips:
1) use Cufon.now() at the bottom of the page above your .js scripts (like google analytics)
2) Older browsers w/out a css selector engine need the jQuery library loaded before cufon
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 asked on 27 Dec 2009
1 answer
327 views
I'm more of a Designer/Front-End guy but trying hard to understand .NET and learn as much as I can. I had a developer help me with some of this, but I'm still stumped.

I'm confused as to how I can get my form to validate using the validation controls.

Whenever I call the onClick="send_Click" it bypasses the validation and runs the form string and redirects to my thankyou.aspx.

When I replace it with the onClientClick it validates but fails to run the code in the aspx.cs file.

Here is a snippet of what is on the form page aka howtoget.aspx.

<div class="formboxit2">
        <div class="contactlabelist2"><span style="color:#246FF5">*</span><label>Email</label></div>
        <div class="contactinputist">
            <telerik:RadTextBox ID="Email" runat="server" Height="19px" Width="200px" BorderColor="White" BorderStyle="Solid" BorderWidth="2px" CssClass="radPad" Skin="Office2007" Font-Bold="True" Font-Names="Arial" Font-Size="12px" LabelCssClass="">
                <FocusedStyle BorderColor="#246FF5" BorderStyle="Solid" BorderWidth="2px" />
                <HoveredStyle BorderColor="#246FF5" BorderStyle="Solid" BorderWidth="2px" />
            </telerik:RadTextBox>
            
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Display="Dynamic"
            ControlToValidate="Email" ErrorMessage="The textbox can not be empty!" EnableClientScript="False" />
        </div>
</div>
<div class="formboxitM">
    <div class="contactlabelist"><label>Message</label></div>
    <div class="contactinputist">
        <telerik:RadTextBox ID="Message" runat="server" Height="114px" TextMode="MultiLine" Width="634px" BorderColor="White" BorderStyle="Solid" BorderWidth="2px" Skin="Office2007" Font-Bold="True" Font-Names="Arial" Font-Size="12px" LabelCssClass="">
            <FocusedStyle BorderColor="#246FF5" BorderStyle="Solid" BorderWidth="2px" />
            <HoveredStyle BorderColor="#246FF5" BorderStyle="Solid" BorderWidth="2px" />
        </telerik:RadTextBox>
    </div>
</div>
<div class="contactinputistSub"><asp:button runat="server" ID="send" onClick="send_Click" BorderStyle="None" BorderWidth="0px" CssClass="swerps" /></div>
<div class="inquiry">*Your information will only be used for this inquiry.</div>   


and here is what I have on the aspx.cs

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Net.Mail;
using Telerik.Web.UI;

namespace domain.com
{
    public partial class howtoget : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
       }

        protected void send_Click(object sender, EventArgs e)
        {
            try
            {
                string firstname = this.FirstName.Text;
                string lastname = this.LastName.Text;
                string phone = this.Phone.Text;
                string email = this.Email.Text;
                string messageoftext = this.Message.Text;
                string bodyoftext = firstname + " " + lastname + " " + "has requested to be contacted. " + firstname +
                    "'s email address is: " + email + " . You may contact this person at: " + phone + " . " + firstname+ " has left message: " + messageoftext;
                MailMessage message = new MailMessage("info@domain.com", "info@domain.com", "Customer Request", bodyoftext);
                SmtpClient emailClient = new SmtpClient("relay-hosting.secureserver.net ");
                message.IsBodyHtml = true;
                emailClient.Send(message);
                Response.Redirect("thankyou.aspx");
            }
            catch (Exception mailex)
            {
                Response.Write(mailex.ToString());
            }
 
        }
    }
}


sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 27 Dec 2009
1 answer
233 views
How Do I Get Notifications of Updates?  I'd like an e-mail when new updates to Telerik products are released.  I'm apparently on some kind of e-mailing list, I'm a fan of Telerik's Facebook Page and I was interacting with Telerik staff almost daily.  Yet somehow I was never informed of WinForms Q3 2009 SP1 being released.  It looks like you normally post new release news in the Forum but it looks like noone posted about the WinForms Q3 2009 SP1.  Even if someone did, I don't want to have to check the Forum (even as an RSS Feed) or my Facebook Wall.  I'd like update notifications via e-mail.  Thanks.
Vassil Petev
Telerik team
 answered on 23 Dec 2009
1 answer
112 views
Hello,
If you want t o find some good icons please look at Icon Finder.
Please let me know If you find some other nice tools.

Best regards,
Mostafa Anoosheh
Mostafa Anoosheh
Top achievements
Rank 1
 answered on 23 Dec 2009
0 answers
80 views
Hello,
I want to share this: 50 of the Best Free Icon Sets of 2009

Best regards,
Mostafa Anoosheh
Mostafa Anoosheh
Top achievements
Rank 1
 asked on 23 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?