|
|
i want to display records in a table in two rows.Is it possible in asp.net.If it possible pls give that code
|
|
|
|
|
Yes, use a repeater to do this.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have created a usercontrol which has some images,Login button and logout button.This control i am using in all the pages.In one of the page there are some textboxes,OK button below it and the same usercontrol at top of the page.
when i press enter in textbox control,focus goes to Login button of a usercontrol and calls its event automatically without pressing it.This happens in every page where textbox is there.
coolsatty
|
|
|
|
|
add the following Java script to BODY tag, which will aviod the ENTER key Submit.
<br />
<body onkeydown="if (window.event.keyCode == 13) <br />
{<br />
event.returnValue=false; <br />
event.cancel = true;<br />
}"><br />
Manikandan.net
[Coding is life]
|
|
|
|
|
|
gubba wrote: can any one tell me how to generate a random number from an array of values.
Here is the VB Code to Generate An Array of Unique Random Nnmbers[^]. Check whether this helps.
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
Hi,
A company want me to desgin their home page in an atractive way.They want several flash movies on the page.Their position changeEach time the user open the page and also their contents.I need your advice in What kinf of asp.net 2 controls I should use?How to set it so it works as they want?.
I am too late but i will never give up
|
|
|
|
|
You need to put the dynamic content in an iframe, so that frame refreshes and the flash part stays the same.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi Everyone,
Can anyone help me out in sending mail in html format using mailto function using javascript
Regards,
Manowj
|
|
|
|
|
i hope this link may help u
http://javascript.internet.com/forms/auto-email-link.html
no knowledge in .net
|
|
|
|
|
hello frnds,
how can i use ViewState to pass one variable from one page to another in asp.net 2.0
please help...
thankx in advance
regares,
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
In .NET 2.0, you can do a cross page postback, otherwise, you need to use the Session instead.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
ViewState is used to persist the values in the same page during the page postback. You cannot use ViewState to pass values from one page to another. You can do Cross Page PostBack to access the values of server controls in the target page (as Christian said) or you can use Query String .
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
Does anyone has any experience in using Scrtip#, the C# to Javascript converter[^] , which is created by Nikhil[^], a software architect from Microsoft?
I was playing a lit bit with Script# and I have some thoughts that I wanna share you and I wanna hear about your thoughts too... (I'm not so sure whether I should post it in Lounge or ASP.NET forum so the admin feel free to move this thread to the appropriate forum. )
First of all, I wanna say "thank you" to Nikhilk for creating this (no matter whether I use it or not) because the Java developers have this kinda tool (GWT) that can convert the Java code to Javascript. Now, We, the C# developers, got the same thing now.
1. The advantage of using Script# is that it supports the compile-time checking, IntelliSense so that it's very easier for those who are not so familiar with Javascript.
2. Script# is able to convert the C# code to Javascript but it doesn't mean that it can convert all C# code. In order to convert the C# to Javascript via Script#, we have to write the Script#-specific code in C# then those codes will be converted to Javascript... (So, I think that Script# is NOT 100% C# to Javascript Converter. )
3. The GWT is developed by Google and Script# is not developed by Microsoft. It has too much differences. Even thought Nikhil is an architect from Microsoft, Script# is just his pet project.. So, he can't support his pet project all the time.. I have checked Script# discussion[^] and found that there is no active contribute (including Nikhil). The community is so small if we compare to GWT community.
4. Script# is not Opensource.
5. In order to use Script#, you have to understand about how Script# works (of course) and the syntax of Script#. It's not so similiar to the Javascript.
If you are alreadys fimiliar with Javascript, you won't be so happy with Script# because ~
5.1. All syntax that are available in Javascript might not be available in Script#. OR it is so hard to find the equivalent Script# .
For example: How to access 'document' of created DOMElement??[^]
In Javascript,
<br />
var iframe = document.createElement("iframe"); <br />
var doc = iframe.contentWindow.document; <br />
In Script#,
using System;<br />
using System.DHTML;<br />
using ScriptFX;<br />
using ScriptFX.UI;<br />
<br />
public class MyScriptlet {<br />
<br />
public static void Main(ScriptletArguments arguments) {<br />
DOMElement _iframe = Document.CreateElement("iframe");<br />
DOMElementExt contentWindowElement = (DOMElementExt)_iframe.GetAttribute("contentWindow");<br />
DOMElement doc = contentWindowElement.document;<br />
<br />
}<br />
}<br />
<br />
[IgnoreNamespace]<br />
[Imported]<br />
public class DOMElementExt : DOMElement {<br />
<br />
[IntrinsicProperty]<br />
public DOMElement document {<br />
get { return null; }<br />
}<br />
<br />
[IntrinsicProperty]<br />
public DOMElement body {<br />
get { return null; }<br />
}<br />
<br />
[IntrinsicProperty]<br />
public DOMElement src {<br />
get { return null; }<br />
}<br />
<br />
[IntrinsicProperty]<br />
public DOMElement firstChild {<br />
get { return null; }<br />
}<br />
}<br />
If you look at both examples, you will understand how hard to find the equivalent syntax in Script# (sometimes). I understand that it is kinda hard for Nikhil to add all Javascript equivalent systax to his framework..
6. Script# does support the compile-time validation but the problem is that you won't be able to debug the C# code that you wrote. Instead, you will have to debug the Javascript code that generate by Script#. I think that it is the big issue for web developer.
7. The most of Javascript libraries /framework (e.g. prototype, script.aculo.us, Yahoo.UI, ExtJS) are not written in Script#. So, If you wanna use those libraries in Script#-enabled project, you will have to create a wrapper that can take a lot of time...
8. Script# might be good for ASP.NET Ajax developers and Vista Gadget developers. As I'm not very familiar with those things, I'm not able to cover about this. I need your contributes for this fact.
That's all from my side.
As Dimitri said here,
"if you can't handle Javascript, you shouldn't be writing code for Web applications. HTML, CSS and Javascript are the three prerequisites for this ride."
I agreed with his answer..
Could you please share your thoughts about Script#?
-- modified at 2:45 Tuesday 27th November, 2007
I posted it with a few images in my blog.
http://michaelsync.net/2007/11/25/script-is-script-right-for-you
Note: Sorry if you think that my writing is so boring.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
Here are my thoughts: That's a really long post. No problem... usually after my stupid comments, someone out there takes a look at your post and replies with something useful, which makes me feel like I'm totally useless.
As for Script#, all I can say is that if it really can do what it's supposed to do, It would be really useful in porting a lot of applications(I only read the first few lines of your post ). However, my belief in script-based languages has yet to be incurred.
|
|
|
|
|
Thanks. sk8er_boy287
sk8er_boy287 wrote: I only read the first few lines of your post
Yeah. I understand.. My writing might be so boring or unclear for native English speaker..
Thanks a lot for your reply.
|
|
|
|
|
hi guys... I have the problem that when click the linkbutton it will disply dropdown box (within the same page) without redirect to another page
|
|
|
|
|
Take one Div and put dropdownlist in the div tag.
On click of Linkbutton , call javascript and make visible true or false div
please don't forget to vote on the post that helped you.
|
|
|
|
|
ya its working thank u 4 ur kind information
|
|
|
|
|
i want to transfer a some variable valus from one page to another what show i use..
if i use queeryString with Responce.Redirect() then the variable that are transfered are render in browser's address bar. should i use server.transfer
Can server.transfer use my server memory.
please help...
thankx in advnce
-koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
You can use the Session object or Cache object to store those values....
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
thankx for your advice..
if i use session object then can it use my server memory ??? what abt Viewstate?
regards,
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Yeah. You can use the Session object.
koolprasad2003 wrote: can it use my server memory
All variables use the memory. For example: int i = 0; If you declare the variable called i, it will take some amount (maybe. very little) of memory... Nothing on computer works without memory.
koolprasad2003 wrote: what abt Viewstate?
The ViewState is not for that purpose. Don't confuse.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
koolprasad2003 wrote: if i use queeryString with Responce.Redirect() then the variable that are transfered are render in browser's address bar.
You can Tamper[^] the Query String values and Pass to another page, use Response.Redirect()
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|