This is EXACTLY what I was looking for!!! ;) I was searching after that eval-thing but this would be working fine Thx a lot gideon respect 2B respected
beastyboy
Posts
-
eval ?!? -
eval ?!?Hello, Suppose I have 3 textboxes named: txtBox1, txtBox2 and txtBox3 Now for some reason I want to fill the boxes depending on their number: I mean something like this: txtBox(i).Text = "something" I know this is ridiculous but I hope you guys see what I mean. (something like the javascript eval function) Can I do something like that in VB-code?? Thanks for the comments respect 2B respected
-
check radiobutton value in inner datagrid problemI tried to put the RowSelectorColumn control in the inner datagrid of two datagrids, but it doesn't work !!! Code says that I didn't select any item which is certainly not true! I believe it's a problem with embedding one datagrid into another. Another thing is that if I use 'ctrl+spacebar' in vb code, I see my main datagrid, but I don't see the inner datagrid in the list!! So I have to get it via FindControls("innerGrid") or something like that! It's a pity that it doesn't work.. it would be a great solution for my situation here. Damn respect 2B respected
-
check radiobutton value in inner datagrid problemThx for your the reply Gideon, I ám using a custom radiobutton and I'm also using it in a simple datagrid. When it's in one datagrid, it works fine... I can get the value of each radiobutton. The problem seems to be the fact that I have placed my 'custom' radiobutton in a datagrid that itself is embedded into another datagrid. I think I cannot retrieve values from an inner datagrid this way! But maybe somebody DOES know a way to fix this problem?! Still going to read the articles in your post!! Thx a lot! deef respect 2B respected
-
check radiobutton value in inner datagrid problemHello people, I'm dealing with something I can't figure out: I have embedded a datagrid into another one. The first column of the inner datagrid contains a custom radiobutton! <%# Container.DataItem("Question") %>
In the OnItemBound procedure of gridQuestions I built the gridAnswers further up. So far so good. At this moment, when I run the project, the two datagrids are filled with the right data and a user can click the answers for every question. Next, there's a button on the page 'finish exam'. When I click this button, the result of the answers should be calculated. I have the following code: Dim intCorrect As Integer Dim gridQuestionsItem As DataGridItem Dim gridAnsw As DataGrid Dim gridAnswItem As DataGridItem Dim intCount As Integer = 0 Dim intPtn As Integer = 0 For Each gridQuestionsItem In gridQuestions.Items -
<%#Container.DataItem(" ")%> problemHey, thank you all for your posts.. I found a solution in this: ImageUrl='<%# "~\images\" + CStr(DataBinder.Eval(Container.DataItem,"AntwFig")) %>' /> respect 2B respected
-
<%#Container.DataItem(" ")%> problemHi all, in my html-code I have the following line: This line works fine, BUT than I have to put my images in the root of my project. In my situation all the images are in the /images-directory How do I have to modify my ImageUrl-tag to get this right? I already tried:
')" />
but he didn't find the image, I only got a box with the red cross does anybody can help me? Thank you very much respect 2B respected -
select from DataTableHi all, I create a DataTable as follows:
objUrlTable = New System.Data.DataTable("urlGrid") 'add column Url to urlGrid objUrlTable.Columns.Add("Url", GetType(String)) 'put datatable into Session Session("urlGrid") = objUrlTable
Then I add a row dynamicallyobjUrlRow = objUrlTable.NewRow objUrlRow("Url") = UploadFile() objUrlTable.Rows.Add(objUrlRow) 'add image-url 'put datatable in Session Session("urlGrid") = objUrlTable
Suppose that after adding a few lines, I want to select the second "url" from the table and put it into a String. How can I do this? Hope anyone can help me out! Thank you already respect 2B respected