Click here to Skip to main content
15,885,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am use a Fancy sliding form,

http://tympanus.net/Tutorials/FancySlidingForm/[^]

it is in html formet,

now i want to use it in asp.net web page,
but the problem is, it is not work properly with runat="server" tag
when i remove it(runat="server") into the form tag, the fancy slider work well,

but if i remove the runat="server" i am not able to use asp.net controls in website,

(problem:if i use run at server,
then
i am fill or left blank the first step, it always show right tik sign at bottom of slider)

so plz help me
Posted

Why would you need to use runat="server" for the Sliding Form itself? It is simply client side jquery functionality.
The runat="server" should only be attached to the asp.net controls used in the form.
 
Share this answer
 
Comments
Arun kumar Gauttam 3-Jan-13 23:59pm    
so plz explain me just one thing, that how i use this form in asp.net website, and how i insert all form data in data base after last button click,

in form all text box and button are in html,
and how i use that button or text box at code behind page,

codebehind page only support control which have runat=server tag,


then how i use like this:

string name=textboxName.text;
The answer above is correct, but I will take an extra 5 minutes to explain it to you.

when you code HTML on a web form, you can use regular HTML or you can use asp.net object.

This is a HTML Object <div><div>
You can also use the asp.net object panel which would be
<asp:panel id="div1" runat="server"></asp:panel>

technically they do the same thing, but, if you want to access that div or panel in code behind, you have to use the asp.net object panel.

You can't access HTML Objects with ease in code behind.

So your fancy slider box is probably uses a combination of both HTML and asp.net objects, or perhaps written for PHP and just uses HTML elements.

So it's jquery object, you will have trouble with the submit button and perhaps all the textboxes, you would have to convert them to asp.net objects to get to the next level with your work, or else you won't be able to read the values, and trigger a postback to the server to pick up the data.
 
Share this answer
 
Comments
Arun kumar Gauttam 3-Jan-13 23:59pm    
so plz explain me just one thing, that how i use this form in asp.net website, and how i insert all form data in data base after last button click,

in form all text box and button are in html,
and how i use that button or text box at code behind page,

codebehind page only support control which have runat=server tag,


then how i use like this:

string name=textboxName.text;
jkirkerx 4-Jan-13 0:26am    
You have to convert all the textboxes to runat server, and the submit button.

Then double click on the submit button, you may have to change the style of the last page to display block, so you can see the frame and click on the button. You will generate the button click event, in which you can code to.

So Dim name as string = txt_name.text.trim, etc

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900