|
Ok I figured it out. Thanks for getting me thinking straight.
I had to do it from a hyperlink field
I changed the DataTextField to my image column in the database and then I used the DataTextFormatString
|
|
|
|
|
I want to redesign my shopping cart to use XML. I know XML concepts and structure, but I've never implemented it in anything useful before. Are there any examples out there where they use it for shopping cart?
|
|
|
|
|
|
I tried google. I have yet to find any good results.
|
|
|
|
|
I'd ask why you feel you need to change ? Doesn't it work as it is ? Does XML offer you something specific that you'd like ? Or did you just decide that XML is 'cooler' ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
It has some bugs and rather than patching them I figured I could redesign it with some cool technology.
|
|
|
|
|
I don't understand the line of code below. I've done searches on CTYPE but did not find anything helpful. What is the word "String" in parenthesis, how is the following code used?
strGoodPassword = CType(objCommand.ExecuteScalar, String)
Thank you in advance for your help.
|
|
|
|
|
|
I'm wondering what the maximum value is for the 'Duration' attribute in the OutputCache Directive.
I have some aspx pages for the only reason that they have master pages to form a universal layout throughout the site, other then that they are completely static and i would like to cache them for as long as possible so they dont have to execute on each request.
Any idea?
Thanks in advanced
|
|
|
|
|
Hi Yona low
In the documentation givin by microsoft, Value for the Duration attribute in the outputcache directive is not limited, so you can use
any value.
|
|
|
|
|
|
Hi
How can I select and hyperlink the contents of a row in a gridview server control dynamically.I want the contents of the selected row to be transferred to the next page(using the hyerlink).
ANy onwe who can help me?
thanks
kidus
|
|
|
|
|
What do you mean, dynamically? At runtime on the client-side? Right some javascript to handle the mouseover event on the row.
Server-side? Use a template.
only two letters away from being an asset
|
|
|
|
|
hi
I mean at ruutime and on the server side.I wrote using mouseover on the client side but it doesn't hyperlink?
Can y show me on both?server side and client side scripting?
thanks
kidus
|
|
|
|
|
Server-side is easy, like I said you need to use a template. See the template columns section in this article.
http://www.codeproject.com/aspnet/datagriddemo.asp[^]
If you create a hyperlink using the above method there is no need to use client-side scripting.
kidus1 wrote: I wrote using mouseover on the client side but it doesn't hyperlink?
Explain what your tried. So some code.
only two letters away from being an asset
|
|
|
|
|
hi
I created a clickable gridview control but I can't hyperlink to other page.I am trying to do this using Javascripts.
Any help?
thanks
kidus
|
|
|
|
|
kidus12 wrote: Any help?
Show the code you are using, then maybe we can help. I don't understand how are you creating this "clickable gridview" in javascript?
only two letters away from being an asset
|
|
|
|
|
hi
here is the code for creating the clickable Row using Javascript
if (e.Row.DataItemIndex == -1)
return;
e.Row.Attributes.Add("onMouseOver",
"this.style.cursor='hand';");
e.Row.Attributes["onmouseover"] =
"javascript:setMouseOverColor(this);";
e.Row.Attributes["onmouseout"] =
"javascript:setMouseOutColor(this);";
e.Row.Attributes.Add("onclick",
this.GetPostBackClientEvent(GrdDynamic,
"Select$" + e.Row.RowIndex.ToString()));
and what I want to do is to hyperlink to other page when the row in the clickable gridview is clicked and passed the contents of the clicked row to the other page(using session).
thanks
kidus
|
|
|
|
|
You are trying to make it more difficult than it is. Use a template column or Hyperlink column to create the link, pass the id of the row to the next page and retrieve the row data from the datasource on that page.
only two letters away from being an asset
|
|
|
|
|
hi
pls ..... some small example
thanks
kidus
|
|
|
|
|
I already have. Figure it out. It isn't that difficult.
only two letters away from being an asset
|
|
|
|
|
Hi
You can Create a HyperLinkField column(s) for GridView.
Cheers
Chandu
|
|
|
|
|
I think I am missing something small, and I can't figure it out. Can anyone help? I am looping through a gridview pulling out a data field and putting it into an arraylist. Then putting that array list later into a string var. My code is as follows:
Dim emailaddresses = New ArrayList
Dim Key
For Each gvr As GridViewRow In GridView1.Rows
Key = GridView1.DataKeys(0)
emailaddresses.Add(Key.value.ToString())
Next gvr
'Trim Size
emailaddresses.TrimToSize()
Dim strMain As String ' Will be used to populate email address in message
Dim iList As Integer ' Var to count through the array
Dim iCount As Integer ' Count of recs in array
iList = 0 ' set iList to 0
'strMain = ""
iCount = emailaddresses.Count() ' get size of array
Do Until iList = iCount
'Populate string with array record
strMain = strMain & emailaddresses.Item(iList) & ","
emailaddresses.Remove(iList)
'Count up 1
iList = iList + 1
Loop
My problem that I am having is no matter how many records are in the array the first record populates all of the array. So if my grid has 5 unique values, it will display 5 items, but all are the first record from the gridview, not 5 different items. I think this has something to do with the way I am looping through the gridview. This is ASP.NET 2.0.
THANKS!
BJJONESEY
|
|
|
|
|
bjjonesey wrote: Do Until iList = iCount
'Populate string with array record
strMain = strMain & emailaddresses.Item(iList) & ","
emailaddresses.Remove(iList)
'Count up 1
iList = iList + 1
Loop
Reverse the looping,
iList = iCount - 1<br />
Do Until iList < 0<br />
'Populate string with array record<br />
strMain = strMain & emailaddresses.Item(iList) & ","<br />
emailaddresses.Remove(iList)<br />
'Count up 1<br />
iList = iList - 1<br />
Loop
|
|
|
|
|
Thanks for the response. That works!
Ben Jones
|
|
|
|