|
Because you add the dynamic control to the Controls collection of the Page instance, so it is placed outside the form element which is a child of the parent Page. So like Mircea suggested, you simply place a container like PlaceHolder control onto the web page inside in the form element, and add the dynamic control to the container.
|
|
|
|
|
Sir,
The problem is
dim a as integer
a = 15
a = 15 / 10
Answer comes 2 because a = 1.5 and a is rounding off to 2.But I want 1 . Please solve the problem.
Thanks and regards
Amaneet Brar
|
|
|
|
|
Declare variable 'a' as double.
|
|
|
|
|
The / operator is a floating point operator, not an integer operator. What your code really is doing is this:
Dim a As Integer<br />
a = 15<br />
a = Convert.ToInt32(Convert.ToDouble(15) / Convert.ToDouble(10))
Use the \ integer operator instead:
a = 15 \ 10
If that doesn't help you need floating point operations after all. Use the Floor method:
a = Math.Floor(15 / 10)
---
b { font-weight: normal; }
|
|
|
|
|
Hi all,
iam currently developing a website. in the home page,client needs a option to view the site both in 'English' or 'tamil'. how to achoeve it. Should i have to develop separate pages for different languages? Plz help me out with some examples
Regards,
Boon
|
|
|
|
|
u can save language object text in database and to change language set one switch example dropdownlsit with languages then in selected index changed of dropdownlist u can load object's text in selected language in your dropdownlist.
|
|
|
|
|
|
hi all i want to know about how to create random images with a random 6 digit number in asp..have ever seen this on any page like yahoo new user .....
Please give me detail how to do this task in asp.
Thankyou
Life is not easy ,let's make it.
|
|
|
|
|
|
Sir,
I am dividing 10/2 , the remainder will be zero.I want to find the remainder progrmically.Please send the code
Thanks and Regards
Amaneet Brar
-- modified at 3:56 Saturday 10th June, 2006
|
|
|
|
|
Please don't cross post. Also, just a suggestion if you want your questions answered: Don't just ask for the code. Nobody will bother to write it for you, if you're just gonna copy paste in in your application, and not even care to understand how it works, or to understand the ideea behind it. It is unprofessional. Remember that the people who answer these forums are here because they want to help others when confrunting with problems. Not writting their code, knowing that the person will not even bother to think about it. That is a waste of their time.
Personally I don't answer any of the questions that ask just for the code.
regards,
Mircea
Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.
|
|
|
|
|
Hi Developer
Any one here who has succesfully integerated with Paypal Payment Pro using ASP.net.
Please let me know from where I can get help related this topic. I am very short of time please reply sooon.
Thanks in advance
Lets work it Out.........!
|
|
|
|
|
|
sir,
I have a string called "This is a string" .Now I want to select some portion of the string eg "this is" and remaining part will remian unselected.after then the string will be inserted into the label control where the selection will reflect on the "this is" string(I mean blue colour will be the background of the string).Like in search toolbar where the search keywords will be inserted in the textbox finally the search description comes withe selected searched keywords.I hope you are getting my question what I mean to say.Please send the code for that.
Thanks and regards
amaneet brar
|
|
|
|
|
Sir,
When i click on the particular row of the datagrig all the data of that row should display in the various textboxes.For that please send the code.
Please help me
Thanks and Regards
Amaneet Brar
|
|
|
|
|
Hi, I m trying to send an email HTML format.
When I use BodyFormat = Text works but if I chage it to BodyFormat = Text crash.
That problem dosen't occures on wondows application.
How can I send HTML format emails in asp.net?
Thank you!!!
La realidad no es más que impulsos eléctricos del cerebro - Morpheus
|
|
|
|
|
machocr wrote: if I chage it to BodyFormat = Text crash.
Do you mean you set it to Text, or Html ???
You can also look for email-specific answers from the site http://www.systemwebmail.com/[^]
|
|
|
|
|
Im writing a small news posting system for my site and I've run into a small snag. I want each post to have a unique id but im not sure how to keep it unique. Is there an easy to find out what the last postid entered into my table was? That way I can just add 1 to the number when I go to store a new post.
Also, is there another way to do this? Am I missing something?
-- modified at 15:34 Friday 9th June, 2006
|
|
|
|
|
Why not make the ID column an IDENTITY column, that was the database will automatically create an id for you.
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
*smacks head*
Thank you
|
|
|
|
|
I am storing small peices of HTML formatted text in an XML file like so:
<br />
<stuff><br />
<item><br />
<!CDATA[[ this is some <h3>text</h3>]]><br />
</item><br />
</stuff><br />
<code><br />
<br />
When I come to display them through the ASP.NET XML control the HTML tagging in the text is parsed into its non-tag form "& lt" and "& gt" (sans spaces) so as to show on the page as the actual less than and greater than symbols rather then providing HTML tagging.<br />
<br />
Is there a way to prevent this and allow the XML control to output valid HTML that the page will then handle ?<br />
<br />
Thanks.
|
|
|
|
|
Maybe calling Server.HtmlEncode(html) before storing and Server.HtmlDecode(html) after retrieving could help...
Pilo
|
|
|
|
|
Localization features are great but I have a question about them.
The Local resource file can be generated for every web form and can be used.
But if the webform changes do we need to update resource file and new contents in web form manually or is there a way to automatically update the same?
Please let me know
|
|
|
|
|
Hi,
As I have commented my code with xml tags. I need to run Ndoc in order to generate the help file. For NDoc I need dll and the generated xml file. In VS 2003 one can generate this file by enabling the xml documentation file option in Project properties->Configuration Properties->Build->Outputs
But I dont find this option in VS 2005. Any idea how can I generate this xml file?
Thanks in advance
|
|
|
|
|
In VS2005 option exists same place.
If you go to Project Properties->Build
You will find a check box named XML documentation file, enable the same and specify the output path.
Once this is done on compilation the XML file will be generated in the specified directory.
Hope it helps.
|
|
|
|