|
Hi to All,
Since, I am not so familiar with all controls, Could anyone please help me out, in choosing the appropriate controls for the requirements.
I am planning to create an richUI site with good speed(data retrival)...more or less a Social Network site....
Now, before I go ahead, I need to decide what controls to use and what not, for the main design (say a master page)....
So, in order to put all the links on the left side, and whatever data will be changing (say, something like scrapbooks or msges in orkut.com) on the main page.....what controls i need to use....For the left side links, i can use the accordian control...But what about my main contents (scrapbook/mails/something else, which will be changing according to the links on the accordian control) on the side??...should I put those in a Update Panel or an Update panel inside an ContentPlaceHolder?....
What about dividing the whole page into a table?....put accordian into left side, panels into the contentplaceHolder...?....Problem may occur when i resize the page...
Please advice me for the same...
-----------------------------
I am a beginner
|
|
|
|
|
Use of lots of complex control means lots of javascript load and site becomes slow. Avoid using complex control. Tables render slow in client, you can also use ul /li to generate tables if they are used in fixed size.
Compress your output stream using GZip compression always.
|
|
|
|
|
Hi,
Is anyone using Open Flash Chart 2 in ASP.net
I am facing a problem that I wish to make the X axis lables vertical.
Please help. A demo or a source code would be very helpful.
Thanks in advance.
|
|
|
|
|
|
Not much of help, already visited the links but...
But thanks for help.
If you have anything more then plz post the link.
|
|
|
|
|
hi bros ,
I got an answer for my question "How to detect JRE in a client machine".I want to share it with you all.Here is the solution.
debugger;
//alert("versioncheck " + deployJava.versionCheck('1.6.0_10+'));
if (deployJava.versionCheck('1.6.0_10+') == false) {
userInput = confirm("You need the latest Java(TM) Runtime Environment. Would you like to install now?");
if (userInput == true) {
deployJava.returnPage = location.href;
deployJava.installLatestJRE();
}
}
It is working fine with IE, Mozilla nd opera.But failed with Safari!!!! .Is there any way to make it work on Safari ?.Also I tried to debug Javascript in Safari...But degugging is not working there.I tried it again by changing its setting , but still I can not debug it in Safari.Is there any way to debug and make the above script work in Safari..
With Warm Regards
|
|
|
|
|
wow.. nice to hear this from you. It was unknown to me. I have seen the script... and it seems they did some code to work with safari as well..
Can you specify what error you are getting for safari. I think it should be working on safari as well.
|
|
|
|
|
There is nothing like error bro. deployJava.versionCheck('1.6.0_10+') returns true in safari..thats the problem
|
|
|
|
|
Subin Mavunkal wrote: deployJava.versionCheck('1.6.0_10+') returns true in safari
And you dont have JRE 1.6.0 installed ?
|
|
|
|
|
Yes ,
I dont have JRE in my VPC.It must be false..
|
|
|
|
|
hi..
I m using following function for mailing functionality.
using System.Net.Mail; // for mailing functionalities
private void SendMailToUser()
{
/* Sending Email To Users About Registration Confirmation --START*/
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();
string toMail = txtEmail.Text.Trim();
message.To.Add(toMail);
message.Subject = "bla_bla - Registration Confirmation";
message.From = new System.Net.Mail.MailAddress("bla.admin@gmail.com");
string MainBody = "Dear " + txtFName.Text.ToString() + "," + "\r\n";
MainBody = MainBody + "Thank you for registering in bla.com " + "\r\n<br/>";
MainBody = MainBody + "http://www.bla.com" + "\r\n<br/><br/><br/>";
message.BodyEncoding = System.Text.Encoding.GetEncoding("utf-8");
System.Net.Mail.AlternateView plainView = System.Net.Mail.AlternateView.CreateAlternateViewFromString
(System.Text.RegularExpressions.Regex.Replace(MainBody, @"<(.|\n)*?>", string.Empty), null, "text/plain");
System.Net.Mail.AlternateView htmlView = System.Net.Mail.AlternateView.CreateAlternateViewFromString(MainBody, null, "text/html");
message.AlternateViews.Add(plainView);
message.AlternateViews.Add(htmlView);
System.Net.NetworkCredential cred = new System.Net.NetworkCredential("bla.admin@gmail.com", "admin1234");
System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("smtp.gmail.com");
smtp.UseDefaultCredentials = false;
smtp.EnableSsl = true;
smtp.Credentials = cred;
smtp.Port = 587;
message.Body = MainBody;
smtp.Send(message);
message.Priority = MailPriority.High;
/* Sending Email To Users About Confirmation --END*/
}
/////////////////////////////
Now this was ok when i m using gmail service for sending mail from my application,
But i want to use my domain's mail a/c for sending email, but it does not work, gives failure .
can u tell me what changes do i need to make... say my domain is bla.com.
And my email id is "customerservice@bla.com".
thanks
hemant
By:
Hemant Thaker
|
|
|
|
|
Hemant Thaker wrote: gives failure .
What is the error message?
Best wishes,
Navaneeth
|
|
|
|
|
Failure sending mail
By:
Hemant Thaker
|
|
|
|
|
more technical
System.Net.WebException: The remote name could not be resolved: 'smtp.blaaa.com' at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) at System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) at System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpClient.GetConnection() at System.Net.Mail.SmtpClient.Send(MailMessage message)
hemant
By:
Hemant Thaker
|
|
|
|
|
I think smtp.blaaa.com couldnt be reached by SMTP client.
|
|
|
|
|
Hi
I am using two HTML radio buttons
<td align="left" style="height:40px;vertical-align:middle " >
<input type="radio" id="rdoLeaveExcHoliday" value="1" name="rdoLeaveOption" onclick=" SelectLeaveType(this,'1');" />Leaves-excluding holidays and weekends
<input type="radio" id="rdoLeaveIncHoliday" value="2" name="rdoLeaveOption" onclick=" SelectLeaveType(this,'2');" />Leaves-including holidays and weekends
</td>
I want to make second radio button invisible if my dataset in code behing returns zero. I canot make them runat="server"
How to get it? Any help will be appreciated..
Thanks in advance
Inderjeet Kaur
Sr. Software Engg
|
|
|
|
|
Hi
There are two things you have to do.
(1) Edit the HTML code to include the attribute runat="server" in the
opening tag of the HTML control. For example for a table it might be:
<TABLE id="Table1" ...(other attributes) ... runat="server">
(2) Then you need to include the namespace "System.Web.UI.HtmlControls"
in the code behind (e.g. in VB the directive Imports
System.Web.UI.HtmlControls).
If you are using Visual Studio then you will find that it will become
available in auto-complete under the identifier (in the example above)
Table1.
With that you will be able to program it's behaviour in a very similar
manner to web Server controls.
Hope that helps!
Deepak Surana
|
|
|
|
|
hi im retrieving data using data reader from database.
ArrayList AlYear = new ArrayList();
int i;
for (i = 2002; i <= 2007; i++)
AlYear.Add(i);
DropDownList1.DataSource = AlYear;
DropDownList1.DataBind();
Session["startdate"] = dr["startdate"];
and the posting this value to other page...
DropDownList1.SelectedItem.Text = Session["startdate"].ToString();
everything worked till here.
but while updating
for ex: DropDownList1.SelectedItem.Text is 2002(retrieved from database)
the 1st list item is disappeared... and when i click to update it to other than 2002 that list item is also changed to 2002....
|
|
|
|
|
You may be binding the dropdown on page_load without checking Page.IsPostBack .
Best wishes,
Navaneeth
|
|
|
|
|
im binding by checking post back
if (!this.IsPostBack)
{
ArrayList AlYear = new ArrayList();
int i;
for (i = 2001; i <= 2007; i++)
AlYear.Add(i);
DropDownList1.DataSource = AlYear;
DropDownList1.DataBind();
|
|
|
|
|
I have noticed that when a column is set to invisible then its cell cannot be retrieved. Number of cells reduce
|
|
|
|
|
Dont set it to invisible at design time. let it show, but on RowDatabound Event set its visibility to false and you will be able to retrieve it.
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
|
hi u can just try this out
first create a session variable and assign it the value of id like on your signin button
Session["variable-name"]=id
if u having id in a text-box so u can wright like this
i am going to make an variable for id u can declare same like this
Session["id"]=textbox1.text
and on next page where u want to display information from this id
create a variable define its data-type wht u have in id and assign its to like this
i have chosen the data-type string
string id=Session["id"].ToString();
and pass this variable value to youre query
thats all
|
|
|
|
|
Can u tell me the solution of this problem?
I am using GridView control to display data from AccessDataSource.
Is it also possible to edit the data in GridView Control while running the application?
Can I insert, delete and update data in the databse using these 2 controls?
One more thing I want to ask is:
I want to add one column in which I want to show a checkbox. and I want to update it while running in database.
plz help me as I am a newbie.
thanks
modified on Tuesday, October 27, 2009 3:13 AM
|
|
|
|