freelanceprogrammers.org Forum Index » ASP

Convert asp to asp.net (csharp)


View user's profile Post To page top
karthick.kumar@... Posted: Wed Jun 01, 2005 3:18 pm


Joined: 01 Jun 2005

Posts: 1
Convert asp to asp.net (csharp)
Hi,

As I am convering some class asp to asp.net, wondering if somebody can convert
the following to asp.net (possibly in Csharp)

********************************************************************************
**********************************************************

arrRows = split(RootData, "*S*P*L*I*T*")

for i = 0 to ubound(arrRows)-1

arrRootData = split(arrRows(i), "#*#")
x = ubound(arrRootData)-1
probName = ""
do while x <> 0

probName = probName & arrRootData(x) & " - "
x = x - 1
loop

`get search string ID
arrSearch = split(arrRootData(x), "//")

********************************************************************************
**********************************************************

And does anybody know any tool that will convert asp to asp.net as in the whole
project or just a single file/page.

Many Thanks.

Regards,
Karthick
Reply with quote
Send private message
View user's profile Post To page top
imane_elfech... Posted: Wed Jun 01, 2005 10:59 pm


Joined: 04 Jan 2005

Posts: 5
Convert asp to asp.net (csharp)
Hello,

Can you please tell me how can I create a datalist dynamically

Thank you beforehand

Imane


---------------------------------
Discover Yahoo!
Use Yahoo! to plan a weekend, have fun online & more. Check it out!

[Non-text portions of this message have been removed]
Reply with quote
Send private message
View user's profile Post To page top
kindawords Posted: Thu Jun 02, 2005 6:54 pm


Joined: 11 Jan 2006

Posts: 46
Convert asp to asp.net (csharp)
Here`s a link to a migration tool,
http://msdn.microsoft.com/asp.net/migration/aspmig/aspmigasst/default.aspx

Not sure how well it works, but it`s worth a shot. It will not do
everything in any case.

As to your example, the Split method of the String class is what you
want. Will translate to something like this...

string[] arrRows = RootData.Split( "*S*P*L*I*T*");

string probName ="";
for(int i=0; i < arrRows.Length -i; i++)
{
string[] arrRootData = arrRows[i].Split("#*#");
probName = "";
for (x = arrRootData.Length-1; x >0; x--)
{
probName = probName + arrRootData[x] + " - ";
}




}




--
Dean Fiala
Very Practical Software, Inc
http://www.vpsw.com
Reply with quote
Send private message
View user's profile Post To page top
imane_elfech... Posted: Fri Jun 03, 2005 1:54 pm


Joined: 04 Jan 2005

Posts: 5
Convert asp to asp.net (csharp)
Hello,

can anyone help me in this:
I want to show and hide items in a datalist. The datalist is created in html and
I want to control the hiden elements from .cs
I am working in c#. net

Thank you

Imane

"Kumar, Karthick" <karthick.kumar@...> wrote:
Hi,

As I am convering some class asp to asp.net, wondering if somebody can convert
the following to asp.net (possibly in Csharp)

********************************************************************************
**********************************************************

arrRows = split(RootData, "*S*P*L*I*T*")

for i = 0 to ubound(arrRows)-1

arrRootData = split(arrRows(i), "#*#")
x = ubound(arrRootData)-1
probName = ""
do while x <> 0

probName = probName & arrRootData(x) & " - "
x = x - 1
loop

`get search string ID
arrSearch = split(arrRootData(x), "//")

********************************************************************************
**********************************************************

And does anybody know any tool that will convert asp to asp.net as in the whole
project or just a single file/page.

Many Thanks.

Regards,
Karthick


---------------------------------
Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

To unsubscribe from this group, send an email to:
AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



---------------------------------
Discover Yahoo!
Find restaurants, movies, travel & more fun for the weekend. Check it out!

[Non-text portions of this message have been removed]
Reply with quote
Send private message
View user's profile Post To page top
p_somani_2000 Posted: Fri Jun 03, 2005 2:00 pm


Joined: 03 Jun 2005

Posts: 1
Convert asp to asp.net (csharp)
try this for hidden elements
Declare your hidden elements as runat=server in aspx
and in .cs declare like this

System.Web.UI.HtmlControls.HtmlGenericControl hidden1.

Then try.

Possibly It`ll work

<Parag Somani>


imane elfechtani <imane_elfechtani@...> wrote:
Hello,

can anyone help me in this:
I want to show and hide items in a datalist. The datalist is created in html and
I want to control the hiden elements from .cs
I am working in c#. net

Thank you

Imane

"Kumar, Karthick" <karthick.kumar@...> wrote:
Hi,

As I am convering some class asp to asp.net, wondering if somebody can convert
the following to asp.net (possibly in Csharp)

********************************************************************************
**********************************************************

arrRows = split(RootData, "*S*P*L*I*T*")

for i = 0 to ubound(arrRows)-1

arrRootData = split(arrRows(i), "#*#")
x = ubound(arrRootData)-1
probName = ""
do while x <> 0

probName = probName & arrRootData(x) & " - "
x = x - 1
loop

`get search string ID
arrSearch = split(arrRootData(x), "//")

********************************************************************************
**********************************************************

And does anybody know any tool that will convert asp to asp.net as in the whole
project or just a single file/page.

Many Thanks.

Regards,
Karthick


---------------------------------
Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

To unsubscribe from this group, send an email to:
AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



---------------------------------
Discover Yahoo!
Find restaurants, movies, travel & more fun for the weekend. Check it out!

[Non-text portions of this message have been removed]



---------------------------------
Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

To unsubscribe from this group, send an email to:
AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

[Non-text portions of this message have been removed]
Reply with quote
Send private message
View user's profile Post To page top
aspemail Posted: Mon Jun 06, 2005 1:33 am


Joined: 06 Jun 2005

Posts: 4
Convert asp to asp.net (csharp)
Hi All

I`m facing this strange problem in Javascript +
ASP.NET, can somebody please tell me why the RESET is
not working using Javascript.

Here is the function (2 versions) which I call from
javascript; I wanted the code to delete all the items
from the list-box "lbAmenitiesSelected", but it does
nothing, neither does it report any error.

Code-1
======
function ResetDropDowns_EstateInfo()
{
document.frmEstateInfo.lbAmenitiesSelected.Items.Clear();

}


Code-2
======
function ResetDropDowns_EstateInfo()
{
for (h =
document.frmEstateInfo.lbAmenitiesSelected.Items.Count-1;
h >= 0; h--)
{

//document.frmEstateInfo.lbAmenitiesSelected.Items.RemoveAt(h);

//document.frmEstateInfo.lbAmenitiesSelected.Items.removeItemAt(h);

//document.frmEstateInfo.lbAmenitiesSelected.Items.removeItemFromSelection
(h);

document.frmEstateInfo.lbAmenitiesSelected.deleteItem(h);
}
}


Thanks in advance
PP



__________________________________
Discover Yahoo!
Get on-the-go sports scores, stock quotes, news and more. Check it out!
http://discover.yahoo.com/mobile.html
Reply with quote
Send private message
View user's profile Post To page top
kindawords Posted: Mon Jun 06, 2005 7:11 pm


Joined: 11 Jan 2006

Posts: 46
Convert asp to asp.net (csharp)
You`re using .NET properties and methods. Need to use the javascript
equivalents.

This works in IE and Mozilla

function ClearBox(){
lb = document.getElementById("ListBox1");
for(var i=lb.length-1; i >=0; i--)
lb.remove(i);
}

Highly recommend the Javascript Bible, invaluable tool for getting
through the idioscyncrancies of all the *&%&$ javascript DOMs...

http://www.amazon.com/exec/obidos/tg/detail/-/0764557432/qid=1118067061/sr=8-1/r
ef=pd_csp_1/102-1892347-9296165?v=glance&s=books&n=507846



On 6/5/05, P P <aspemail@...> wrote:
> Hi All
>
> I`m facing this strange problem in Javascript +
> ASP.NET, can somebody please tell me why the RESET is
> not working using Javascript.
>
> Here is the function (2 versions) which I call from
> javascript; I wanted the code to delete all the items
> from the list-box "lbAmenitiesSelected", but it does
> nothing, neither does it report any error.
>
> Code-1
> ======
> function ResetDropDowns_EstateInfo()
> {
> document.frmEstateInfo.lbAmenitiesSelected.Items.Clear();
>
> }
>
>
> Code-2
> ======
> function ResetDropDowns_EstateInfo()
> {
> for (h =
> document.frmEstateInfo.lbAmenitiesSelected.Items.Count-1;
> h >= 0; h--)
> {
>
> //document.frmEstateInfo.lbAmenitiesSelected.Items.RemoveAt(h);
>
> //document.frmEstateInfo.lbAmenitiesSelected.Items.removeItemAt(h);
>
> //document.frmEstateInfo.lbAmenitiesSelected.Items.removeItemFromSelection
> (h);
>
> document.frmEstateInfo.lbAmenitiesSelected.deleteItem(h);
> }
> }
>
>
> Thanks in advance
> PP
>
>
>
> __________________________________
> Discover Yahoo!
> Get on-the-go sports scores, stock quotes, news and more. Check it out!
> http://discover.yahoo.com/mobile.html
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>


--
Dean Fiala
Very Practical Software, Inc
http://www.vpsw.com
Reply with quote
Send private message
View user's profile Post To page top
yingjin_us Posted: Mon Jun 06, 2005 8:39 pm


Joined: 25 Jun 2005

Posts: 3
Convert asp to asp.net (csharp)
Here is the JavaScript function that I tested working with your problem:
function ResetDropDowns_EstateInfo()
{
lb = document.getElementById("lbAmenitiesSelected").options;
for(var i=lb.length-1;i>=0; i--)
lb.remove(i);
}

Ying
--- In AspNetAnyQuestionIsOk@yahoogroups.com, P P <aspemail@y...> wrote:
> Hi All
>
> I`m facing this strange problem in Javascript +
> ASP.NET, can somebody please tell me why the RESET is
> not working using Javascript.
>
> Here is the function (2 versions) which I call from
> javascript; I wanted the code to delete all the items
> from the list-box "lbAmenitiesSelected", but it does
> nothing, neither does it report any error.
>
> Code-1
> ======
> function ResetDropDowns_EstateInfo()
> {
> document.frmEstateInfo.lbAmenitiesSelected.Items.Clear();
>
> }
>
>
> Code-2
> ======
> function ResetDropDowns_EstateInfo()
> {
> for (h =
> document.frmEstateInfo.lbAmenitiesSelected.Items.Count-1;
> h >= 0; h--)
> {
>
> //document.frmEstateInfo.lbAmenitiesSelected.Items.RemoveAt(h);
>
> //document.frmEstateInfo.lbAmenitiesSelected.Items.removeItemAt(h);
>
>
//document.frmEstateInfo.lbAmenitiesSelected.Items.removeItemFromSelection
> (h);
>
> document.frmEstateInfo.lbAmenitiesSelected.deleteItem(h);
> }
> }
>
>
> Thanks in advance
> PP
>
>
>
> __________________________________
> Discover Yahoo!
> Get on-the-go sports scores, stock quotes, news and more. Check it out!
> http://discover.yahoo.com/mobile.html
Reply with quote
Send private message
View user's profile Post To page top
yingjin_us Posted: Mon Jun 06, 2005 9:05 pm


Joined: 25 Jun 2005

Posts: 3
Convert asp to asp.net (csharp)
The following JavaScript function works on both IE and Firefox:
function ResetDropDowns_EstateInfo()
{
lb = document.getElementById("lbAmenitiesSelected").options;
for(var i=lb.length-1;i>=0; i--)
//lb.remove(i);
lb[i]=null;
}
--- In AspNetAnyQuestionIsOk@yahoogroups.com, P P <aspemail@y...> wrote:
> Hi All
>
> I`m facing this strange problem in Javascript +
> ASP.NET, can somebody please tell me why the RESET is
> not working using Javascript.
>
> Here is the function (2 versions) which I call from
> javascript; I wanted the code to delete all the items
> from the list-box "lbAmenitiesSelected", but it does
> nothing, neither does it report any error.
>
> Code-1
> ======
> function ResetDropDowns_EstateInfo()
> {
> document.frmEstateInfo.lbAmenitiesSelected.Items.Clear();
>
> }
>
>
> Code-2
> ======
> function ResetDropDowns_EstateInfo()
> {
> for (h =
> document.frmEstateInfo.lbAmenitiesSelected.Items.Count-1;
> h >= 0; h--)
> {
>
> //document.frmEstateInfo.lbAmenitiesSelected.Items.RemoveAt(h);
>
> //document.frmEstateInfo.lbAmenitiesSelected.Items.removeItemAt(h);
>
>
//document.frmEstateInfo.lbAmenitiesSelected.Items.removeItemFromSelection
> (h);
>
> document.frmEstateInfo.lbAmenitiesSelected.deleteItem(h);
> }
> }
>
>
> Thanks in advance
> PP
>
>
>
> __________________________________
> Discover Yahoo!
> Get on-the-go sports scores, stock quotes, news and more. Check it out!
> http://discover.yahoo.com/mobile.html
Reply with quote
Send private message
View user's profile Post To page top
scaevola637 Posted: Wed Jun 15, 2005 11:57 pm


Joined: 09 Jan 2006

Posts: 27
Convert asp to asp.net (csharp)
Yingjin_us,
this works great for listboxes. Do you have anything for removing
checkboxlists?






--- In AspNetAnyQuestionIsOk@yahoogroups.com, "yingjin_us"
<yingjin_us@y...> wrote:
> Here is the JavaScript function that I tested working with your problem:
> function ResetDropDowns_EstateInfo()
> {
> lb = document.getElementById("lbAmenitiesSelected").options;
> for(var i=lb.length-1;i>=0; i--)
> lb.remove(i);
> }
>
> Ying
> --- In AspNetAnyQuestionIsOk@yahoogroups.com, P P <aspemail@y...> wrote:
> > Hi All
> >
> > I`m facing this strange problem in Javascript +
> > ASP.NET, can somebody please tell me why the RESET is
> > not working using Javascript.
> >
> > Here is the function (2 versions) which I call from
> > javascript; I wanted the code to delete all the items
> > from the list-box "lbAmenitiesSelected", but it does
> > nothing, neither does it report any error.
> >
> > Code-1
> > ======
> > function ResetDropDowns_EstateInfo()
> > {
> > document.frmEstateInfo.lbAmenitiesSelected.Items.Clear();
> >
> > }
> >
> >
> > Code-2
> > ======
> > function ResetDropDowns_EstateInfo()
> > {
> > for (h =
> > document.frmEstateInfo.lbAmenitiesSelected.Items.Count-1;
> > h >= 0; h--)
> > {
> >
> > //document.frmEstateInfo.lbAmenitiesSelected.Items.RemoveAt(h);
> >
> > //document.frmEstateInfo.lbAmenitiesSelected.Items.removeItemAt(h);
> >
> >
>
//document.frmEstateInfo.lbAmenitiesSelected.Items.removeItemFromSelection
> > (h);
> >
> > document.frmEstateInfo.lbAmenitiesSelected.deleteItem(h);
> > }
> > }
> >
> >
> > Thanks in advance
> > PP
> >
> >
> >
> > __________________________________
> > Discover Yahoo!
> > Get on-the-go sports scores, stock quotes, news and more. Check it
out!
> > http://discover.yahoo.com/mobile.html
Reply with quote
Send private message
View user's profile Post To page top
peter_brunone Posted: Thu Jun 16, 2005 1:58 am


Joined: 11 Jan 2006

Posts: 38
Convert asp to asp.net (csharp)
Why don`t you give us a sample of your checkboxlist HTML (from
the browser)? That way those of us who never play with checkboxlists
can see how the name/id attributes are set up.

Also, you might do well to ask this on AspNetClient.

Peter

-----Original Message-----
From: AspNetAnyQuestionIsOk@yahoogroups.com On Behalf Of scaevola637

Yingjin_us,
this works great for listboxes. Do you have anything for removing
checkboxlists?

--- In AspNetAnyQuestionIsOk@yahoogroups.com, "yingjin_us"
<yingjin_us@y...> wrote:
> Here is the JavaScript function that I tested working with your
problem:
> function ResetDropDowns_EstateInfo()
> {
> lb = document.getElementById("lbAmenitiesSelected").options;
> for(var i=lb.length-1;i>=0; i--)
> lb.remove(i);
> }
>
> Ying
> --- In AspNetAnyQuestionIsOk@yahoogroups.com, P P <aspemail@y...>
> wrote:
> > Hi All
> >
> > I`m facing this strange problem in Javascript +
> > ASP.NET, can somebody please tell me why the RESET is
> > not working using Javascript.
> >
> > Here is the function (2 versions) which I call from javascript; I
> > wanted the code to delete all the items from the list-box
> > "lbAmenitiesSelected", but it does nothing, neither does it report
> > any error.
> >
> > Code-1
> > ======
> > function ResetDropDowns_EstateInfo()
> > {
> > document.frmEstateInfo.lbAmenitiesSelected.Items.Clear();
> >
> > }
> >
> >
> > Code-2
> > ======
> > function ResetDropDowns_EstateInfo()
> > {
> > for (h =
document.frmEstateInfo.lbAmenitiesSelected.Items.Count-1;
> > h >= 0; h--)
> > {
> >
> > //document.frmEstateInfo.lbAmenitiesSelected.Items.RemoveAt(h);
> >
> > //document.frmEstateInfo.lbAmenitiesSelected.Items.removeItemAt(h);
> >
> >
>
//document.frmEstateInfo.lbAmenitiesSelected.Items.removeItemFromSelecti
on
> > (h);
> >
> > document.frmEstateInfo.lbAmenitiesSelected.deleteItem(h);
> > }
> > }
> >
> >
> > Thanks in advance
> > PP
Reply with quote
Send private message
View user's profile Post To page top
scaevola637 Posted: Thu Jun 16, 2005 8:50 pm


Joined: 09 Jan 2006

Posts: 27
Convert asp to asp.net (csharp)
I found a good javascript to do this in the code project.



-- In AspNetAnyQuestionIsOk@yahoogroups.com, "Peter Brunone"
<peterlists@b...> wrote:
>
> Why don`t you give us a sample of your checkboxlist HTML (from
> the browser)? That way those of us who never play with checkboxlists
> can see how the name/id attributes are set up.
>
> Also, you might do well to ask this on AspNetClient.
>
> Peter
>
> -----Original Message-----
> From: AspNetAnyQuestionIsOk@yahoogroups.com On Behalf Of scaevola637
>
> Yingjin_us,
> this works great for listboxes. Do you have anything for removing
> checkboxlists?
>
> --- In AspNetAnyQuestionIsOk@yahoogroups.com, "yingjin_us"
> <yingjin_us@y...> wrote:
> > Here is the JavaScript function that I tested working with your
> problem:
> > function ResetDropDowns_EstateInfo()
> > {
> > lb = document.getElementById("lbAmenitiesSelected").options;
> > for(var i=lb.length-1;i>=0; i--)
> > lb.remove(i);
> > }
> >
> > Ying
> > --- In AspNetAnyQuestionIsOk@yahoogroups.com, P P <aspemail@y...>
> > wrote:
> > > Hi All
> > >
> > > I`m facing this strange problem in Javascript +
> > > ASP.NET, can somebody please tell me why the RESET is
> > > not working using Javascript.
> > >
> > > Here is the function (2 versions) which I call from javascript; I
> > > wanted the code to delete all the items from the list-box
> > > "lbAmenitiesSelected", but it does nothing, neither does it report
> > > any error.
> > >
> > > Code-1
> > > ======
> > > function ResetDropDowns_EstateInfo()
> > > {
> > > document.frmEstateInfo.lbAmenitiesSelected.Items.Clear();
> > >
> > > }
> > >
> > >
> > > Code-2
> > > ======
> > > function ResetDropDowns_EstateInfo()
> > > {
> > > for (h =
> document.frmEstateInfo.lbAmenitiesSelected.Items.Count-1;
> > > h >= 0; h--)
> > > {
> > >
> > > //document.frmEstateInfo.lbAmenitiesSelected.Items.RemoveAt(h);
> > >
> > > //document.frmEstateInfo.lbAmenitiesSelected.Items.removeItemAt(h);
> > >
> > >
> >
> //document.frmEstateInfo.lbAmenitiesSelected.Items.removeItemFromSelecti
> on
> > > (h);
> > >
> > > document.frmEstateInfo.lbAmenitiesSelected.deleteItem(h);
> > > }
> > > }
> > >
> > >
> > > Thanks in advance
> > > PP
Reply with quote
Send private message
View user's profile Post To page top
imane_elfech... Posted: Mon Jun 27, 2005 2:12 pm


Joined: 04 Jan 2005

Posts: 5
Convert asp to asp.net (csharp)
Hello everybody,

I have a problem deciding which is the best way to transfer certain client data.
I use some sessions and I transfer other elements in the URL, but I am at a
state that I do not know what to do because I am overusing sessions. And I have
read somewhere that it is not good to use lot of sessions and up to now I am
using about 20 or more.

Please if you know any method that will help me store the client information
while he is logged, and ensure the information of 2 difference clients won`t mix
then please advice me.

Thank you in advance

Imane


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

[Non-text portions of this message have been removed]
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help