Ask a Question related to ASP.NET General, Design and Development.
-
k-re #1
Re: Datagrid and hyper link question?
Thank you Tim S. It was a help however i still couldn't figure out how to
fix it? thanx
"Tim S." <timstall@hotmail.com> wrote in message
news:017701c339ad$4d605470$a401280a@phx.gbl...> I understand you need something like:
> <a>href="[myPage]?IN=[in_value]&PON=[pon_Value]>[text]</a>
>
> where the [ ] are variables.
>
> Some ideas:
> 1). In the code behind, you could create a new column and
> programmtically concatenate the values to form that Html
> hyperlink. Then Bind this column to your datagrid.
>
> 2). You could use a template column, and concatenate the
> variables.
>
> 3). If the calculatations get very heavy, You could add a
> linkButton column that calls a function which takes the
> In,Pon, and other vars as inputs and redirects to a
> calculated url.
>
> Tim S.
>> and works fine. I> >-----Original Message-----
> >Hi, I have a xml which is ..
> ><Root>
> ><ProdIDQual>
> > <ON>111111</ON>
> > <PON>121212</PON>
> > <IN>1x1x1x</IN>
> ></ProdIDQual>
> ><ProdIDQual>
> > <ON>222222</ON>
> > <PON>131313</PON>
> > <IN>1z1z1z</IN>
> ></ProdIDQual>
> ></Root>
> >
> >---- I have displayed it on Datagrid with readxml method> page where I need to> >am trying to make a hyperlink in datagrid for another> onItemdatabound event to catch IN> >pass PON and IN from the upper XML. I user> to make a link from> >but couldn't get the other variable PON.. Is there a way> >about XML to pass IN and PON? something like <a
> >href="index.asp?IN=11111&PON=22222222>View</a>
> >
> >Thanks...
> >
> >KB
> >
> >
> >.
> >
k-re Guest
-
how to use hyper columns in datagrid
I have set the configuration as the attchment jpg file however,when i click the hyper link , it only show the url as below:... -
Remove the underline on hyper link and configure Submitbutton
Hello, DW always put underline on hyper link. Is there any way on DW that I can take out the underline and replace it with color change when... -
Hyper link a flash movie
Hi, Is there any possibility that we can put a hyperlink on a flash movie just as we put on any gif or jpg image? Thanks, -
Hyper Link Problem
Hi, I have a problem when creating hyper links. The problem is when I create a hyper link the link is splitting into 3 lines. I want the link... -
File Download Through Hyper Link?
I'd like to write to a log whenever a visitor to my site downloads a file. So, I'd like the link they click to be to a php 'page' that returns the... -
Tim S. #2
Re: Datagrid and hyper link question?
Hello,
Probably the simplest way is #2:The steps to do this:>> 2). You could use a template column, and concatenate the
>> variables.
1 - add a template column to your datagrid (if you haven't
used template columns before, just check the MSDN help,
they're really straight forward).
2 - the template column lets you create custom HTML for
each cell, so you could do something like:
<a>href="<%....%>?IN=<%....%>&PON=<%....%>><%....% ></a>
3 - I replaced each [var] with a databind expression,
something like <% ....%> where "..." is the syntax to
databind (look at databinding to a repeater or datagrid in
MSDN for the exact syntax, I don't remember it off the top
of my head).
That should do it.
Tim
figure out how to>-----Original Message-----
>Thank you Tim S. It was a help however i still couldn't</a>>fix it? thanx
>"Tim S." <timstall@hotmail.com> wrote in message
>news:017701c339ad$4d605470$a401280a@phx.gbl...>> I understand you need something like:
>> <a>href="[myPage]?IN=[in_value]&PON=[pon_Value]>[text]and>>
>> where the [ ] are variables.
>>
>> Some ideas:
>> 1). In the code behind, you could create a new columna>> programmtically concatenate the values to form that Html
>> hyperlink. Then Bind this column to your datagrid.
>>
>> 2). You could use a template column, and concatenate the
>> variables.
>>
>> 3). If the calculatations get very heavy, You could addmethod>> linkButton column that calls a function which takes the
>> In,Pon, and other vars as inputs and redirects to a
>> calculated url.
>>
>> Tim S.
>>>> >-----Original Message-----
>> >Hi, I have a xml which is ..
>> ><Root>
>> ><ProdIDQual>
>> > <ON>111111</ON>
>> > <PON>121212</PON>
>> > <IN>1x1x1x</IN>
>> ></ProdIDQual>
>> ><ProdIDQual>
>> > <ON>222222</ON>
>> > <PON>131313</PON>
>> > <IN>1z1z1z</IN>
>> ></ProdIDQual>
>> ></Root>
>> >
>> >---- I have displayed it on Datagrid with readxmlway>> and works fine. I>> page where I need to>> >am trying to make a hyperlink in datagrid for another>> onItemdatabound event to catch IN>> >pass PON and IN from the upper XML. I user>> >but couldn't get the other variable PON.. Is there a>>> to make a link from>> >about XML to pass IN and PON? something like <a
>> >href="index.asp?IN=11111&PON=22222222>View</a>
>> >
>> >Thanks...
>> >
>> >KB
>> >
>> >
>> >.
>> >
>
>.
>Tim S. Guest



Reply With Quote

