|
I want to remove defaultvalue that dropdownlist captures when I bound the control to sqldatasource. So that user selects from list.
Secondly,
How to dropdown the list when it got focus.
Regards
Asif Rehman
|
|
|
|
|
Asif Rehman wrote: I want to remove defaultvalue that dropdownlist captures when I bound the control to sqldatasource. So that user selects from list.
Try this,
myDropDownList.Items.RemoveAt(0)
Asif Rehman wrote: Secondly,
How to dropdown the list when it got focus.
Didn't get your question
|
|
|
|
|
Abhijit Jana wrote: Didn't get your question
Actually I'm basically a windows developer in which on gotfocus event I can dropdown list which makes user easy to select and type.
Is there any way when I dropdownlist gets focus it automatically opens(drop down).
Hope you understand what I'm trying to say.
Regards
Asif Rehman
|
|
|
|
|
|
سلام
من مي خوام يه كدي بنويسم كه مشخصات سخت افزاري سيستم رو با اگوريتم
aes
رمز كنه و به وب سايت كه طراحي كردم بفرستم
ميشه راهنمايي كنيد
مرسي
lf8898@yahoo.com
|
|
|
|
|
gghhmmll wrote: لاممن مي خوام يه كدي بنويسم كه مشخصات سخت افزاري سيستم رو با اگوريتم aesرمز كنه و به وب سايت كه طراحي كردم بفرستمميشه راهنمايي كنيدمرسيlf8898@yahoo.com
It means?!
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
Blue_Boy wrote: gghhmmll wrote:
لاممن مي خوام يه كدي بنويسم كه مشخصات سخت افزاري سيستم رو با اگوريتم aesرمز كنه و به وب سايت كه طراحي كردم بفرستمميشه راهنمايي كنيدمرسيlf8898@yahoo.com
It means?!
Did you try to get it using language translator ?
|
|
|
|
|
Yes, but translation wasn't helpful to understand his/her question.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
Yes. I also did a try. But no luck ! Leave it, he need help, he has to express in english.
|
|
|
|
|
yeap...
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
gghhmmll wrote: سلام
من مي خوام يه كدي بنويسم كه مشخصات سخت افزاري سيستم رو با اگوريتم
aes
رمز كنه و به وب سايت كه طراحي كردم بفرستم
ميشه راهنمايي كنيد
مرسي
lf8898@yahoo.com
If it's a question, please ask it in English !
|
|
|
|
|
Questions in the forum should be asked in English.
|
|
|
|
|
hi
i want to learn XML,Xhtml. please provide me the help.
why we use XML,Xhtml?
|
|
|
|
|
|
|
|
XML: It provides a common medium through which people/organizations can exchange data regardless of their own data format. The data format can vary from one to another and XML resolves this problem.
I have no idea about Xhtml. You can learn more if you visit the links given above.
|
|
|
|
|
HI, I write the following code to connect to my database
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using System.Data.ProviderBase;
using System.Configuration;
namespace Hostel.Models.DataAccessLayer
{
public class PersonDataSet
{
DataSet DS = new DataSet();
SqlConnection Conn = new SqlConnection(ConfigurationManager.ConnectionStrings["HostelConnectionString"].ToString());
SqlDataAdapter PersonDataAdapter = new
SqlDataAdapter(new SqlCommand("SELECT * FROM Person_prs", Conn));
}
}
but after running get this error:
<br />
Error 1 A field initializer cannot reference the non-static field, method, or property 'Hostel.Models.DataAccessLayer.PersonDataSet.Conn'<br />
does any one has any idea?
|
|
|
|
|
Initialize the constructor. Also didn't contain any methods. Try like this
public class PersonDataSet
{
SqlConnection Conn = new SqlConnection();
public PersonDataSet
{
Conn = new SqlConnection(ConfigurationManager.ConnectionStrings["HostelConnectionString"].ToString());
}
public MethodPersonDataSet
{
DataSet DS = new DataSet();
SqlDataAdapter PersonDataAdapter = new
SqlDataAdapter(new SqlCommand("SELECT * FROM Person_prs", Conn));
}
}
|
|
|
|
|
Hi every one,
I am new programmer and need a good example of MVC. in MVC I Model part I wanna use Dataset. Could you please give me an example or link regarding how to use Dataset in MVC model. I just need to insert data.
to be honest, I went trough internet by couldn't get good example.
I would please if some one help me.
|
|
|
|
|
|
I'm looking for a template for a webpage that customers would use to check their account transaction history and summary.
Have an Idea of how to do it, but don't want to reinvent the wheel.
Thanks
- Life is a fountain
|
|
|
|
|
using (apReportDataContext context = new apReportDataContext())
{
var appointments = (
from app in context.t_msts
join li in context.Lead_In
on app.apm_LeadID equals li.iLeadID into app_li
from li in app_li.DefaultIfEmpty()
join cs in context.custContactInfos on li.iLeadID equals cs.id into li_cs
from cs in li_cs.DefaultIfEmpty()
join apm in context.atm_appointment_type_masts on app.apm_type_id equals apm.atm_id into cs_apm
from apm in cs_apm.DefaultIfEmpty()
select new
{
app.apm_id,
app.apm_name,
app.apm_desc,
app.apm_start_time,
cs.CustomerName,
apm.atm_type_name,
});
grv.DataSource = appointments.Distinct();
grv.DataBind();
}
this is generating me result as expected now i need to pass paameters to this when generate report button is clicked, i have a drop down and if drop down value !=0 then i have to pass the value of it and if another text box field is filled then i have to pass that also as a parameter
how can i do this?
|
|
|
|
|
You need to use where keyword here. It behaves same as the where clause in the SQL statements. Something like this:
from element in someIEnumerable
where element.property == someValue
select element
|
|
|
|
|
thanks for your reply
yes what you said is working but if suppose user not entering value of text box then the value will be empty, this will give error, i need to check as this for 5 input controls, and if a control value is not empty then i have to pass that one as a parameter. how to do this.
|
|
|
|