|
What I am looking for is a way to give users the ability to design forms and save that layout to a database. For instance the user could place a textbox on the form, a checkbox, and a TextArea. I am looking for the best way to save that to a database so that when a user comes to a page and the form ID could be passed in the Querystring the form layout that is saved in the database would be displayed.
I was thinking something like a Forms table that would have the FormID in it an a table that would have the fields in it with the form ID they belong to and the layout of where they belong on the form and such. I see all kinds of Form Builders on the web with the ability to save that form somewhere. I am sure that is in a database somewhere? I just want users to be able to build forms dynamically and save them to a database so I don't have to keep building the forms for them.
|
|
|
|
|
OK. In that case its better to buy some 3rd party tool, because developing such a solution is a long and complex thing. and I have never used such product. so sorry for that...
|
|
|
|
|
|
Hi,
I need to set up a Repeater control that will display summary information on my Webform using C#. I have a stored procedure that selects the Tool_ID, Tool_Name, and Tool_Quantity based on the Category ID that is passed through the session. I need to show the returned information in columns as such:
Tool Id ToolId ToolId
Tool Name Tool Name Tool Name
Tool Quantity Tool Quantity Tool Quantity
Right now this is what I have in my .aspx file:
<asp:content id="Content1" runat="server" contentph="><br mode=" hold=" /><asp:UpdatePanel ID= " upd=" runat=" server="><br mode=" lblcategory="" xmlns:asp="#unknown">
<td>
<asp:repeater runat="server" id="rptToolInfo">
<headertemplate> Summary </headertemplate>
<itemtemplate>
<td>
Tool ID: <asp:label runat="server" id="lblid" text="<%# DataBinder.Eval(" tool_id=")%> /><br mode=" hold=" />Tool:<asp:Label runat=" server=" ID=" lblname=" Text="><![CDATA[<%# DataBinder.Eval("TOOL")%>]]> />
Tool Quantity:<asp:label runat="server" id="lblqty" text="<%# DataBinder.Eval(" tool_quantity=")%> /><br mode=" hold=" /></td><br mode="></asp:label></asp:label></td></itemtemplate></asp:repeater></td></asp:content>
|
|
|
|
|
I would suggest you need to use a pivot table, the best way to do this is to massage your data so it's in this format. If you can't do that, then a repeater is ideal, b/c what you can do is have the repeater creating columns in a table for each item of data.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I am using asp:ImageButton control .
I want to associate 3 images with it, for MouseOve, MouseOut and MouseClick events.
How can i achieve this ?
Right now, i m using
<asp:imagebutton id="btnAYes" runat="server" text="Yes" cssclass="btn" oncommand="YesA_Click" imageurl="~/Images/Yes1.png" width="50" xmlns:asp="#unknown" />
Apurv
A man is but the product of his thoughts. What he thinks, he becomes.
.......Mahatma Gandhi
Be the change you want to see in the world.
.......Mahatma Gandhi
|
|
|
|
|
You will need to write javascript to do this, I don't believe the control supports it directly.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
In Page_Load Add
btnAYes.Attributes.Add("onmouseover", "src = 'images/pic1.png'")
btnAYes.Attributes.Add("onmouseout", "src = 'images/pic2.png'")
btnAYes.Attributes.Add("onmouseclick", "src = 'images/pic3.png'")
|
|
|
|
|
why not just put it in the aspx ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Like this you mean:
<img name="img1" src="/images/whatever1.gif" onmouseover="document.images['img1'].src = '/images/whatever2.gif';" onmouseout="document.images['img1'].src = '/images/whatever1.gif';">
I never thought about that until you asked why not.
The other method has always done what I needed.
|
|
|
|
|
Yeah, both ways work, I guess the real question is, when you're maintaining the code, which is the place you're most likely to expect to see this set ? I'd expect that depends on the coder, you're used to looking in one place, I am used to looking in the other.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
For maintaining the code, it's definitely better in the aspx.
But I just remember why I used the other method, i didn't get it to work in the aspx.
And neither did I now.
But I'll have a look into that tomorrow. It's way to late for my brain now.
|
|
|
|
|
Well, I don't get it to work in the aspx. Asp:ImageButton doesn't support OnMouseOver or OnMouseOut natively.
But if you know how to do it in the aspx I'm definitely interested.
|
|
|
|
|
Thanks ..... it working ...
thank you very much ...
Apurv
A man is but the product of his thoughts. What he thinks, he becomes.
.......Mahatma Gandhi
Be the change you want to see in the world.
.......Mahatma Gandhi
|
|
|
|
|
|
but if it wroks form code-behind, y don't it work from aspx ?
Apurv
A man is but the product of his thoughts. What he thinks, he becomes.
.......Mahatma Gandhi
Be the change you want to see in the world.
.......Mahatma Gandhi
|
|
|
|
|
can anybody help me.
Whenever i clicked on dropdownlist ,the popup should display 10 items of dropdownlist while rest of 42 items could be viewed by scrolling it.
thanks in advance
|
|
|
|
|
I don't believe the drop down list supports this, you can create this UI with a floating DIV tho.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hello EveryOne!!
Can anybody knows how to lock or disable or
anything that will not allow user to navigate next or previous month of current months in <asp:calender > control
Thanks in advance
Dattatraya.
|
|
|
|
|
<asp:calendar id="Calendar1" runat="server" shownextprevmonth="False" xmlns:asp="#unknown">
Raju.M
|
|
|
|
|
|
i have designed crystal report with text orientation property to vertical now when i display it in my webpage using VS 2008 it combine all the text and show it horizontally does any one have idea how to resolve this issue
umerumerumer
|
|
|
|
|
Hi Guys,
I have the following block of html in a Content Page:
<div class="imageBoxOutside">
<div class="arrowLeft" onclick="prev('carousel_105');"></div>
<div id="carousel_105" onload="alert('carousel_105');">
<%#HtmlThumbsBlock1%></div>
<div class="arrowRight" onclick="next('carousel_105');"></div>
</div>
<div class="imageBoxOutside">
<div class="arrowLeft" onclick="prev('carousel_106');"></div>
<div id="carousel_106" onload="loadCarousel('carousel_106');">
<%#HtmlThumbsBlock2%></div>
<div class="arrowRight" onclick="next('carousel_106');"></div>
</div>
<div class="imageBoxOutside">
<div class="arrowLeft" onclick="prev('carousel_107');"></div>
<div id="carousel_107" onload="loadCarousel('carousel_107');">
<%#HtmlThumbsBlock3%></div>
<div class="arrowRight" onclick="next('carousel_107');"></div>
</div>
However, the onload method never gets called. The method is declared in the header of the same content page, NOT the master, and i can invoke it using onclick without any problems. The ThumbsBlock variables are the HTML for the internals of the carousel and work correctly onclick.
What's the deal? And how do i resolve it?
Regards
Tris
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
You can use tag just after the closing of the tag.
<div class="ForumSig">The miracle is this--the more we share, the more we have.</div>
|
|
|
|
|
Ok,
That appears to work and i can roll with it for now, but it's a horrible solution. Why isn't the onload function firing? Is there any alternative to this?
Cheers
Tris
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|