|
Happy Birthday friend
|
|
|
|
|
But I'm not sure I'm looking for the easy way,
I'm looking for the best way for me so it will look like I want it to look.
When I'm building my own table I have complete control over every thing and that's the easy way to build the table exactly like I want it to be (all the rows and columns with divs inside them and pictures and so on).
It worked pretty good until now when I need to add an action button for each row that will get the row information and send it to a server side function.
Thanks.
|
|
|
|
|
polycom123 wrote: I'm looking for the best way for me so it will look like I want it to look.
Whatever I said would be the best and easy way.
polycom123 wrote: When I'm building my own table I have complete control over every thing and that's the easy way to build the table exactly like I want it to be (all the rows and columns with divs inside them and pictures and so on).
Well, if you need more control over the HTML generation, use repeater. You can use a template column here and put the required controls and design.
As CG mentioned, problem with manually created tables are ASP.NET won't maintain viewstate for it. So either you have to create your table before page_load or stay with the controls what I suggested. When you use controls like repeater or gridview, viewstate will be managed by ASP.NET and you don't have to add extra coding for that.
|
|
|
|
|
Hi,
O.K. , I understand from the answers that the way I wanted to do this is not recomanded.
It was the must easy way for me so switching to repeater is a lot of work now
I'll will try to learn the subject to see if its less work to change every thing I did until now or start learning how to work with the repeater to achive the same resualt.
Thanks for the replys (to every one).
I really appreciate this
|
|
|
|
|
Your basic issue is that you need to create the button before page_load if you want events, othewise viewstate is not restored.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Hi guyzz...
Im actually about 2 code a project actually the asp form has got a login wid user name and password and a login button the login process should takeplace by checking the login table in the sqldatabase which has a list of user name and password and if it matches it must direct the user 2 the gridveiw page...
can anyone plz help me out.......Im doing it in C#.net....
thanx in advance....
|
|
|
|
|
nofear5535 wrote: Im actually about 2 code a project
You should buy a good book and start reading. It will help you in long run and make your skills better.
The question you hace asked is one of the first thing you would learn in ADO.Net.
Here [^]is one of the example which explains you how to do this.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
every thing about .NET and microsoft :
http://allaboutmicrosoft.net/
|
|
|
|
|
Voted to remove your message as advertisements are not allowed here. If you want to advertise, contact CP team to get a quote.
|
|
|
|
|
No advertisements please.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hey Guys,
I'm actually programming a little asp.net Homepage in vb, which should work as a File-Management System. This site has a Variable called Path which should allways be the working path. The Path variable is initialized on the page_load event when postback=false. It is saved as new Session("path")=Request.Physicalapplicationpath. When someone changes the path value, the session("path") is going to be updated. This all happens in an AJAX UpdatePanel.
My problem is that somehow the Session("path") Object is deleted --> Session("path") is nothing.
Do I have to edit something at the web.config for this to work? Or is there something wrong with postbacks?
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Page.IsPostBack = True Then
Path = Session.Item("path")
Else
Path = Request.PhysicalApplicationPath & "PublicFiles\"
Session("path") = Path
CurrentDir.Text = Path
GetFiles()
GetDir()
End If
End Sub
|
|
|
|
|
The problem isn't your code but rather how Ajax handles session. Have a look at here, maybe it will help
ASP.NET AJAX: State or no State?[^]
only two letters away from being an asset
|
|
|
|
|
hi all
i have a XML and want to convert following xml to word
Code:
<XML>
<para>C<sub>2</sub>H<sub>2</sub></para>
</XML>the output is C2H2
2 is subscript
can any one suggest me code
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
How does it related to ASP.NET?
|
|
|
|
|
You can use the Word ML[^].
A very simple solution would be write a xsl using the word ml and transform your xml using that.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
thankx all for reply
can u give me an example manas ???
regards
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
how to save the webparts added by the users and how to show them again the webparts he selected in the before login.
|
|
|
|
|
lakshmichawala wrote: how to save the webparts added by the users and how to show them again the webparts he selected in the before login.
Ohh. You are talking about Web Parts personalization.
Here you go.
|
|
|
|
|
hi sir
i am using html link button in my gridview for expand/collapse of nested gridview depending upon some status like "S" and "A" and for remaining status the expand/collapse should not visible please tell me how i can do null that particular cell value for remaining status so that there are no any exapnd/collapse html button.
please send a demo if possible.
|
|
|
|
|
I have a grid view whose rows contain, a linkbutton and a textbox. The textbox is initially not visible.
If any linkbutton is clicked, then the text-box in the corresponding row has to be made visible.
I am able to do this with server-side event. But its introducing some delay which is very irritating to the user.
If a client-side script can do this, it will boost the site performance.
How this can be achieved with Java Scripts ?
Apurv
“Never trust a computer you can’t throw out a window.”
(Steve Wozniak)
“There are only two industries that refer to their customers as ‘users’.”
(Edward Tufte)
|
|
|
|
|
Instead of making the textbox invisible, set the CSS display to none.
You can do this like
TextBoxName.Style.Add("display", "none");
Call a javascript function on the OnClientClick of the linkbutton and set the display as visible of textbox here.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
i wrote it like this ...
<asp:LinkButton ID="lbkReply" runat="server" Text="Reply" OnClientClick="txtReply.Style.Add('display','none')" />
But, its not making the text box txtReply invisible ....
Apurv
“Never trust a computer you can’t throw out a window.”
(Steve Wozniak)
“There are only two industries that refer to their customers as ‘users’.”
(Edward Tufte)
|
|
|
|
|
txtReply is the name on the server, it will have a mangled name on the client. Use txtReply.ClientID in server side code to emit the ID you need to use on the client. Even then, I thought you need to use document.getElementById("txtReply").Style.Add...
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
I m devloping an online shopping website.........and in this i have to create menus in left side dynamically.....These menus will be created by the admin panel online....For e.g. First admin create Category then its sub-category and then product details and depending on these tree view menu will be created............i m totally confused which control to use create menu frm database and how to call information about specific product.........there can be n no. of categories and products..........shud i create a new page abt product everytime...........plz help me
Thank you
|
|
|
|
|
ankurdsharma wrote: .shud i create a new page abt product everytime.
No, that would be a mess. Create a single product page, which is passed an id and populates itself with a specific product from the DB, based on that id.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|