News:

Tekforums.net - The improved home of Tekforums! :D

Main Menu

CMS stuff

Started by Pete, April 30, 2008, 20:06:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

M3ta7h3ad

Thats exactly what you do do.

Just run the query against the database.

To put stuff in its  "insert" or "update" depending on what youre doing.

Pete

Its messy, but I think this works now :)

               DataSourceID="SqlDataSource1"
           EmptyDataText="There is no spoon.">
           
                               SortExpression="NAME" />
                              SortExpression="TEXT" />
                              SortExpression="DATE" />
           

         

                     ConnectionString="<%$ ConnectionStrings:ConnectionString1 %>"
           ProviderName="<%$ ConnectionStrings:ConnectionString1.ProviderName %>"

           SelectCommand="SELECT [Name], [UID], [TEXT], [FLAG], [DATE] FROM [TEST] WHERE ([FLAG] = 1)">
             
                                                                                                                     
I know sh*ts bad right now with all that starving bullsh*t and the dust storms and we are running out of french fries and burrito coverings.

Pete

Im really stuck now and I cant find a good tutorial.

My db is on localhost\sqlexpress
my table I wanna update is called DATA
The fields I wanna update are [name] [title] [text] and I want to do it through this form (nameTextBox, titleTextbox, textTextbox): -


<%@ Page Language="VB" %>


 
    FORM TEST
   
       
 



All done!




   


       

        DATA COMES IN - empties are declined.
       

        Your Name:        

       
                    ControlToValidate="nameTextBox" ErrorMessage="Your name is required">*
       

       

        Title:

       
                    ControlToValidate="titleTextBox" ErrorMessage="Title cannot be empty">*
       

       

        Paste stuff here:

       
                    ControlToValidate="textTextBox"
            ErrorMessage="The article cannot contain nothing">*

       

       CHECKBOX.
       

                    Text="Click here" />
 
       

       
       

       

               

   


            HeaderText="Please correct the following items:" />
   


       
             
   


   

   
   

   




Also I cant work out how to make a checkbox a requiredfieldvalidator.
I know sh*ts bad right now with all that starving bullsh*t and the dust storms and we are running out of french fries and burrito coverings.

M3ta7h3ad

Youre using ASP not php... out of my league to be honest mate. I dont use that stuff unless its for VBScript.

Pete

No worries, I did look at php but this .net crap makes a little more sense to me. Im now armed with a copy of Visual Web Developer For Dummies so hopefully Ill get it sorted eventually,

Cheers :)
I know sh*ts bad right now with all that starving bullsh*t and the dust storms and we are running out of french fries and burrito coverings.

Pete

Just posting an update cos this asp.net crap is actually pretty cool.

Ive finished VWD for Dummies, it went all mad on the SQL section but Ive learnt loads. Im on chapter 3 of ASP.Net for Dummies and its looking more promising - its a lot more indepth and hopefully the stuff I need to know is buried somewhere within.
I know sh*ts bad right now with all that starving bullsh*t and the dust storms and we are running out of french fries and burrito coverings.