|
Hi Bradml,
How are you?? ,
I don't want to print the array, I just want to create options of a combo at runtime. Can you please How I can I follow your suggession?? "You could just turn it into a CSV format (by using the "foreach" function but that is it" Can you give me some exampl??
|
|
|
|
|
I'll just give you a little piece of code I think would be useful to this example so that you can see what I am talking about:
public function list_of_numbers($from, $to, $selected=null, $aslist=false){
$list='';
while ($from <= $to) {
$list .=$from . "\n";
$from++;
}
if ($aslist) {
return $list;
}else{
$arrayofages = array_diff(explode("\n",$list), array(""));
$newlist = null;
foreach ($arrayofages as $key=>$age){
$string = '';
$string = "<option value=\"$age\"";
if ($age == $selected) {
$string.=' selected="selected"';
}
$string .= '>'. $age."</option>\n";
$newlist .= $string;
}
return $newlist;
}
}
Brad
Australian
- Captain See Sharp on "Religion"
any half intelligent person can come to the conclusion that pink unicorns do not exist.
|
|
|
|
|
I believe what you should use a cicle for to make the hidde fields and assign the values, where each field have a value from php array, sure, each hidde field have a name moduleListForComboProjectList + consecutive and the value property must contained the array value, then when you call this field should show this property.
Cuando salga el sol, no estare aqui...
|
|
|
|
|
Hi thank you for your reply first,
I am passing multiple array at single time from php and also generating multiple hidden fields with different name at runtime. I have to take those values to add options in select combo. So I can not do such a thing that I generate multiple hidden fields for a single array.
So please if you have any othe way then tell me.
|
|
|
|
|
Hi all,
I have to apply css to file Upload control of ASP.NET 2.0.
I need apply css to textbox and the button.
Please tell me how to do this.
Thanks in advance.
|
|
|
|
|
|
Firstly its not the ASP.NET file upload control that your applying styles to - its the resulting HTML <input type="file" /> element thats getting styled. (and hence the question is actually quite appropriate for this forum)
This is in fact very tricky - its one of the few elements that doesn't support a lot of common CSS styling methods. Heres one solution: http://www.quirksmode.org/dom/inputfile.html or a google search on "styling file input" turned up quite a few examples.
|
|
|
|
|
Hi all,
can we develop some webpages using C# and some using VB.Net in one project??
thaks,
Rahi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
>>can we develop some webpages using C# and some using VB.Net in one project??
NO.. (AFAIK)
but you can use different languages for different layers.(eg: Business Object, Entity, Data Layer and etc.)
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message. Thank you.
|
|
|
|
|
thanks Michael. if i developed one webservice using C#, want to consume that in VB.Net web page.....how can we do taht?? i mean is it the same way, adding web reference & creating proxy...etc.,??
i am newbie to this .net technology......still in the learning stage
i appreciate ur response.
Thanks,
Rahi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
if i developed one webservice using C#, want to consume that in VB.Net web page.....how can we do taht?? i mean is it the same way, adding web reference & creating proxy...etc.,??
It's the same way. You can do either adding webreference or generating proxy class and add it to your project.
If you are using different languages for web project and web service, it's better if you put those in different solution file.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
hi Michael,
definitely wants to convey my thanks by voting ur message!!
but i don't know how to vote for the message. i need some help for voting the messages!
Thanks,
Rahi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
>>but i don't know how to vote for the message. i need some help for voting the >>messages!
u see "Rate this message: 1 2 3 4 5"? ya. this is where you can vote my message by clicking one of those numbers. (maybe 5)
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message. Thank you.
|
|
|
|
|
Yes, you can now mix two diffent languages like C# and VB.NET in the same project but only in .NET 2005 and per file, class or page basis.
for example.
You've created a C# web project in .NET 2005.
By default all pages are C# but now in .net 2005
you can add a vb.net web form.
Another sample how to mix two languages
http://pietschsoft.com/Blog/Post.aspx?PostID=1287[^
Try it and you will amaze!!!
Regards,
Mark
|
|
|
|
|
Thanks Mark. Excellent info. really amazing!!
i will try this by implementing practically in my project.
thanks once again,
Rahithi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hey! I have searched around and especially on this site but seem to have hit a dead end.
I am into web development to develop for the PSP. And one of my latest ideas is to integrate a Java keyboard of some sort to be able to type into the Mobile eBuddy chatting messages.
If you are confused, head to http://mob.ebuddy.com
Click on one of your online contacts, then click on write.
My aim is to have a keyboard at this stage to enter into this textarea.
Please help me out because this is going to be a new milestone for me.
Please rest assured that all of your help and works would not go un-acknowledged.
Thank you and please help.
|
|
|
|
|
What exactly is your question?
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Thanks for taking the time to read my post and sorry about the no question thing...
My question is:
1) Is it possible to have an onscreen keyboard coded with javascript to type into the Mobile eBuddy send message window? and
2)a If not why? or
2)b If possible, can you please suggest any methods.
Thank you in advance
|
|
|
|
|
I am having some issues that I don't understand with VML in IE 6 (also in
IE7). I've searched the net for problems between VML and strict mode but
haven't been able to come up with anything. The page, listed below, has a div
element set to be 800px wide with a border so you can see it and a height of
auto. The page SHOULD render a blue Diamond in roughly the center of the div .
When the page is rendered in quirks mode (Just add an html comment above the
doctype) it works as I expect. When the page is rendered in strict mode
(remove any comments from before the doctype), the div collapses and the
shape disappears. In some cases of me playing around with the numbers, the
shape would fall to 0,0 px and be outside of both the div and group container
objects. What am I doing wrong or does VML not work properly in strict mode?
The page (as is it will render in quirks mode, delete the html comment
before the DOCTYPE to render it in strict mode):
<!-- This comment forces Quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns ="urn:schemas-microsoft-com:office:office"
xmlns="http://www.w3.org/tr/rec-html40">
<head><title>
Untitled Page
</title>
<!--[if !mso]>
<style>
v\:* { behavior: url(#default#VML); }
</style>
<![endif]-->
</head>
<body>
<div style="width: 800px; height: auto; border: solid 1px black;">
<v:group class="eventGroup" style="background-color: yellow; height:
70px; width: 100%;" coordorigin="0,0" coordsize="350,175">
<v:shape title="Test event occuring on 3/31/2007" style="position:
absolute; top: 10px;left: 175px; width: 40px; height: 80px;" fillcolor="blue"
stroked="true" strokecolor="black" strokeweight="1pt" coordorign="0,0"
coordsize="50,50" path="m 25,0 l 40,15, 25,30, 10,15 x e" href=""
target="_blank"><v:fill opacity="100%"/><v:stroke opacity="100%"/></v:shape>
</v:group>
</div>
<div style="width: 200px; border: solid 5px black; padding: 0 10px 0
10px; background-color: Green;"></div>
<div style="width: 200px; background-color: Green;"></div>
</body>
</html>
|
|
|
|
|
Hi,
Could Some one help me tell me how I would go with editing a datagrid using a ListBox? I mean whe at the prssing of edit a textBox comes and the user can insert new records.
Thank you.
|
|
|
|
|
I'm not very sure what you meant by "editing a datagrid using a ListBox".
Can you give us more details about what you wanna do with Listbox for editing a datagrid?
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message. Thank you.
|
|
|
|
|
Hi micheal,
This is actually what I ment. I want the user to be adding data into Sql database using a datagrid. So I'm using a ListBox to do this and edit update and delete. I placed listbox in EditItemTemplate and label in ItemTemplate. but when I try now to edit it does not bring the lisbox but i can read the grid with the sql content. my code actually looks like this:
public void Edit_dgid(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
dgid.EditItemIndex = e.Item.ItemIndex;
BindDataGrid();
}
public void Cancel_dgid(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
dgid.EditItemIndex = -1;
BindDataGrid();
}
public void Update_dgid(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
System.Web.UI.WebControls.ListBox st=new System.Web.UI.WebControls.ListBox();
st=(System.Web.UI.WebControls.ListBox)e.Item.Cells[5].FindControl("lbachobj");
System.Web.UI.WebControls.ListBox st1=new System.Web.UI.WebControls.ListBox();
st=(System.Web.UI.WebControls.ListBox)e.Item.Cells[4].FindControl("lbobj");
SqlCommand myCommand=new SqlCommand();
myCommand.Connection=con;
myCommand.CommandText="insert into Object,AchievedObject where @Object,@AchievedObject";
myCommand.Parameters.Add(new SqlParameter("@AchievedObject",SqlDbType.Text));
myCommand.Parameters["@AchievedObject"].Value=st.SelectedValue;
myCommand.Parameters.Add(new SqlParameter("@Object",SqlDbType.Text));
myCommand.Parameters["@Object"].Value=st1.SelectedValue;
con.Open();
myCommand.ExecuteNonQuery();
con.Close();
dgid.EditItemIndex=-1;
BindDataGrid();
}
Thanks.
|
|
|
|
|
Hi there,
I am creating a website first time. I want to upload it but for that I have to create an index.html file. Can you please tell me that what should I do? or how can I call my php file while index.html is load?
Please reply if you know.
Thank You in advance.
|
|
|
|
|
That is a server default, if you are using something other than regular HTML you must have the correct server running on the host machine in order to interperet the requests etc...
Cleako
|
|
|
|
|
To make this job simpler, I recommend that you get Dreamweaver 8.
This program is fabulous and easily aids in the development of web pages.
About the index.html thing, it is necessary to have it as that for the server to display that page when someone accesses your domain.
|
|
|
|