|
I call it a draw between the two of you!!
I would prefer to use the listbox as the multi column dropdwonlist isnt a custom control
|
|
|
|
|
Can u tell me how i can show it with list box.
|
|
|
|
|
Yes you are right...
And There are 100s ways doing this.
Did you check the answer,That I've given?
|
|
|
|
|
What do you mean?
|
|
|
|
|
Thanks For replying me.
I did check it.
but my problem is not solved.
if possible tell me solution.
thanks
|
|
|
|
|
I suggest you to select multiple columns in t-sql statement and cast as single column,then bind dropdownlist with that query.
Example:
T-SQL Query
Select column1+' '+ Column2+' ' +column3 as MultipleColumns from TableName
Binding DropDownList
DropDownList1.DataValueField = "ColumnName";<br />
DropDownList1.DataTextField = "MultipleColumns ";
Hope this will give you an idea.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
|
|
|
|
|
hi everyone
i am using fileupload control in usercontrol but i am not able to save it when i am calling this to any page .
plz suggest me .
thanks inadvance
gaurav
|
|
|
|
|
How you are accessing the control in other pages.
Or what problem you are getting?
Did you try by creating a public property in the control, That return required information of the fileupload control?
|
|
|
|
|
thanks for the response
actually i have fileupload control in a usercontrol for retriveing the name of the file or image i am using property:
public string pic
{
get
{
return cchildpic.FileName;
}
}
and at code behind this code:
if (cchildpic.FileName != "")
{
cchildpic.PostedFile.SaveAs("C:/Upload1" + cchildpic.FileName);
}
and after that i am using this usercontrol at page2 by drag and drop the user control .
this is the small part of the app. if more require then i will give more explanation about app.
thanks...gaurav
|
|
|
|
|
HI
this problem have been shortedout .now images stored in a folder properly.but i am using session at page 2 to take the name of the picture at page 2 like that;
Session["p1"] = ctcchild1.pic;
it gives right value at page 2.
but at page i am using this:
Image1.ImageUrl = "C:\\image" + Session["p1"].ToString();
at this page session value did not give any value .
give blank value.
plz suggest me .
thanks.....gaurav
|
|
|
|
|
I have a little task that is triggered by a page field rendered in a Javascript block in the page, like this,
var isActuallyNew = <%=this.isActuallyNew %>; However, I'm temporarily 'forced' to declare isActuallyNew as a string, and store "true" in it, because a bool renders as "True", which the Javascript doesn't like. Is there a tidier way of doing this?
|
|
|
|
|
|
Hi friends,
I have a problem with NUnit while checking values with db.
I have created a sql plugin and added it to appropriate addin folder and i can view it under tools->addins->Registered Addins.
whenever i run the a test with the new sql attribute the test is passed
for eg:
[SqlServerDataSource(ConnectionString = "Data Source=DTP00B249\\SQLEXPRESS;Intial Catalouge=sample;Integrated Security=True", Query = "SELECT pword FROM login where uname='paul'")]
public void TestInput()
{
Assert.IsTrue(true);
}
But whenever i pass a value in my method like
public void TestInput(string uname)it throws the Test Not Run Method saying
Method Method name signature is not correct:it must not have parameters.
Please explain how to resolve the error.
thanks in Advance
Praveen
modified on Tuesday, July 29, 2008 9:00 AM
|
|
|
|
|
I am very confused about filestream and memorystream in asp.net
i want to know difference between filestream and memorystream
please try to solve it
|
|
|
|
|
http://www.google.co.uk/search?hl=en&q=filestream+and+memorystream+in+asp.net&btnG=Google+Search&meta=
|
|
|
|
|
How to make a SOAP Call from ASP.Net to a WebMethod platform.
Thanks & Regards
Anoop
|
|
|
|
|
i want to create a gridview programmatically
i want to add a template column and edit that template column and place a label in item template column
can i do it thru coding.....
thank u inadvance
vijay
|
|
|
|
|
|
hi,
I am designing Online Test Creation Using asp.net(C#). in that question display should be like this;
.....................Question..................... ........
O opt1
O opt2
O opt3
O opt3
prev next (buttons)
my questions and Options had saved in two Sql tables.
Question(idquestion,Qname,Answer,Qtype) idQuestion is primary key
Answer_Detail(idAnswerDetail,idquestion,options) idAnswerDetail is primary key and idquestion is Foreign Key
how can i display one question at a time randomly, if i have 100 questions in my database. on next button click i have to get another question and on previous button click i have to go back to previous button. which control i have to use for this one. i have to select one radio button among given following four options.
i used grid view,details view ..etc but i could not get the above format..
my requirement:
1)display one question at a time randomly, if i have 100 questions in my database. on next button click i have to get another question and on previous button click i have to go back to previous button.
2) the selected option should be saved to database table. because i have Previous Test page in which i have to show all the previous tests Taken, along with all the questions in that test with which option user was selected during test
3)i have to maintain a timer....
please give suggestion on coding...
|
|
|
|
|
iam having three user controls in say uc1,uc2,uc3.iam using this uc1 in ,uc2 and uc3 .where in uc1 iam having a gridview.now iam taking these controls in another web page.the problem is the grid is recognised in the uc2.but it is not recognising in the uc3 .it is genarting a script error .object is required, how this problem is solved.
|
|
|
|
|
So youve got a gridview which can be shown in two pages but not the ohter?
Im a bit confused as to what you are trying to do, please reword your question.
|
|
|
|
|
hi all
i dont know where to put this question but i think it would be here
i have the following SPQuery which it get its result from custom list inside sharepoint site
SPList splTerrorism = spsw.Lists[NaussLists.AttackedEntityName];
SPQuery spqTerrorismQuery = new SPQuery();
spqTerrorismQuery.Query = @"<Query><Where><And><And><And><And><And>";
spqTerrorismQuery.Query += "<And><And><And><And><Geq><FieldRef Name='DateOfAction' />";
spqTerrorismQuery.Query += "<Value Type='DateTime'>" + txtFrom.Text + "</Value>";
spqTerrorismQuery.Query += "</Geq><Leq><FieldRef Name='DateOfAction' />";
spqTerrorismQuery.Query += "<Value Type='DateTime'>" + txtTo.Text + "</Value></Leq></And>";
spqTerrorismQuery.Query += "<Contains><FieldRef Name='Country' /><Value Type='Lookup'>" + AllCountries + "</Value>";
spqTerrorismQuery.Query += "</Contains></And><Eq><FieldRef Name='City' /><Value Type='Lookup'>" + ddlCity.SelectedItem + "</Value>";
spqTerrorismQuery.Query += "</Eq></And><Contains><FieldRef Name='OperationName' /><Value Type='Text'>" + txtActionName.Text + "</Value>";
spqTerrorismQuery.Query += "</Contains></And><Contains><FieldRef Name='AttackingEntityName' />";
spqTerrorismQuery.Query += "<Value Type='Lookup'>" + AllAttackers + "</Value></Contains></And><Contains><FieldRef Name='AttackedEntityType' />";
spqTerrorismQuery.Query += "<Value Type='Lookup'>" + AllAttacked + "</Value></Contains></And><Contains><FieldRef Name='AttackedEntityName' />";
spqTerrorismQuery.Query += "<Value Type='Text'>" + ddlAttackedEntityName.SelectedItem + "</Value></Contains></And><Eq><FieldRef Name='WeaponType' /><Value Type='Lookup'>" + ddlWeaponType.SelectedItem + "</Value>";
spqTerrorismQuery.Query += "</Eq></And><Contains><FieldRef Name='ActionType' /><Value Type='Lookup'>" + AllActions + "</Value></Contains></And></Where></Query>";
SPListItemCollection splic = splTerrorism.GetItems(spqTerrorismQuery);
the problem is that all the list is displayed no matter what the value are even if there is no values at all
note : i made this CAML Query with U2U CAML Query Builder
Thank you
|
|
|
|
|
Hi my code not at all considering the if condition:
Plz whats wrong in that code tell me...,
foreach (DataRow drc in DS.Tables[DS.Tables.Count - 1].Rows)
{
int k = 0;
while (k < drc.Table.Rows.Count)
{
if (drc.Table.Rows[k][1].ToString() == Path.GetFileNameWithoutExtension(d.Name))
{
if (mbody.Length > 0)
{
mbody += ", ";
}
mbody += drc.Table.Rows[k][1].ToString();
}
k++;
}
}
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
modified on Monday, July 28, 2008 6:32 AM
|
|
|
|
|
this
if (drc.Table.Rows[k][1].ToString() == Path.GetFileNameWithoutExtension(d.Name)) is always false?
Or if (mbody.Length > 0) return always 0 (zero) length ?
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
|
|
|
|
|
hi sir
plz tell us why it will give false and 0 lenth always?
thanks....
gaurav
|
|
|
|