Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Multiple Events for GridView?Multiple Events for GridView?
Previous
 
Next
New Post
7/19/2007 2:00 PM
 

Carlos,

I am very familiar with .aspx cssclasses.
I guess what I am questioning is the classes within the .vb portion of the coding.
Most of the files I already am customizing seem to have just one class located just below namespace values.
EX:

 

NameSpace Modules.NameofModule
Partial Class ClassofModule

So, I am familiar with writting class assignments within .aspx, and then creating a .css file for the class values.
But with the .vb code, because I have always been using one class assignment, I am not using efficiently.
So what your saying is I can have multiple classes within only one .vb file and refer to each when needed?

I understand that the class can be named within .vb file with assignment values, and then within the .aspx I would refer to classID.
But becuase like I mentioned above, I am using one class for complete .vb file, the only location within .aspx where it refers to class
is within the first tags:

 

@ Control language="vb" Inherits="Modules.NameofModule.ClassofModule" CodeFile="FileName.ascx.vb" AutoEventWireup="false" Explicit="True" %>What I am wondering, is can I simply add class tags to .aspx content where needed, then go back to .vb and end class for first
section and begin a new class to link to? That would be the logical way to setup. Will test.




But in regards to one sub activating another sub?
Here is the code of one event:

Protected Sub Button_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Me.FormView.Visible = False
LinkButton.Text = "Click Here"
End Sub

But within another sub, it references another sub's name and communicates across the platform to tell sub to:
"")Problem is, when I try to add code to Protected Sub Button_Click:
 
Protected Sub Button_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Me.FormView.Visible = False
LinkButton.Text = "Click Here"
ShowData("")
End Sub

It just won't work! Hence the question: could I just
tell this sub to activate Button_Click  "as clicked" (whatever tag would be)
Maybe it's something small I am missing, because ShowData("") already works in another sub alone, why not here?



What do you recommend for getting grid below to update while clicking insert? ShowData("") works on PageLoad?
That is what I am trying to achieve, one click takes care of two concerns. Inserts & updates grid below.

And what is code for activating a sub while in another sub...like button_clicked  "is clicked"?


Thanks All,


-Machina12

 

 

 

 

 

 

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Multiple Events for GridView?Multiple Events for GridView?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out