Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
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 3-Jan-13 3:18am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
Arun1990 at 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;
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  
Comments
Arun1990 at 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 at 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)

  Print Answers RSS
0 Mika Wendelius 261
1 Abhinav S 155
2 Peter Leow 140
3 Sergey Alexandrovich Kryukov 125
4 Kornfeld Eliyahu Peter 115
0 Sergey Alexandrovich Kryukov 8,593
1 OriginalGriff 6,536
2 Peter Leow 3,727
3 Zoltán Zörgő 3,456
4 Richard MacCutchan 2,417


Advertise | Privacy | Mobile
Web04 | 2.8.150123.1 | Last Updated 3 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100