|
|
In my Webpage, I hav added one check box.that value will be stored in the database as a bit.i have to retrieve the value as string.Is anybody know it pls post it
|
|
|
|
|
Dim ds as DataSet = SqlHelper.ExecuteDataSet(..........)
Dim str as String = CType(ds.Table(0).Rows(0)(1),String)
Note: ds.Table(0).Rows(0)(1) is the column (bit) of your table.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message. Thank you.
|
|
|
|
|
The answer that I posted previously is for converting the bit field of datacolumn to string..
I have no idea about "How to get the ceckbox value in to an Excel File"
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 there,
I want to pass an array as an hidden field of html that is created in php. i.e.
$moduleList[0] = "abc";
$moduleList[1] = "xyz";
$htmlString = "<input type='hidden' id = 'moduleListForComboProjectList' name='moduleListForHiddenComboProjectList' value=$moduleList>";
Now, I am sending this to HTML and in html I got following:
<input type='hidden' id = 'moduleListForComboProjectList' name='moduleListForHiddenComboProjectList' value=Array>
And now I am fetching value of that hidden field from javascript
moduleArray = document.getElementById("moduleListForComboProjectList").value;
alert ("array = " + moduleArray);
then I got "array = Array" but as I want fetch data by loop then it is not giving me proper result. It is taking Array as a string.
can you please tell me how can I get the passed values from php????
|
|
|
|
|
You cannot print an array to HTML. You could just turn it into a CSV format (by using the "foreach" function but that is it.
Brad
Australian
- Captain See Sharp on "Religion"
any half intelligent person can come to the conclusion that pink unicorns do not exist.
|
|
|
|
|
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>
|
|
|
|