|
Hi,
I'm using C# 2.0 and ASP.NET. I have an panel control on my page. I have dynamically created asp:textboxes. But now everything in beneath each other. All my styles have been defined. How do I dynamically add <br /> tages, or a <div> tag? I usually use <div class="VerticalSpacer10"></div> between 2 textboxes for spacing purposes. How do I add this beneath each textbox?
Regards.
ma se
|
|
|
|
|
you can do like this and add the lt where you want to add BR tag.
LiteralControl lt = new LiteralControl("< br >");
hope it will work
Nav.
|
|
|
|
|
hi
i'm sending a value using query string to another page.
in the redirecting Page i have a Dropdown Box which is bind by from a database.
the value which is i'm sending through query string is one of Dropdown value.
what i want is that whatever the value i will send....automatically that value from dropdown should be selected.
how can i do this.
plz guide me any one.
|
|
|
|
|
Hi,
I'm not sure what language you are using, but in C# I would do it like this:
string strCountryID = Request.Querystring["CountryID"];
cboCountry.Items.FindByValue(strCountryID).Selected = true;
I hope this helps. If I am wrong please let me know then I will go and investigate.
Regards,
Brendan
|
|
|
|
|
Hello Brendan
thank you very much.
i cann't explain ur single is how much helpful to me.
i have one more problem.
it is something little different.i'm using vb for my project.
i have to set RSS feed for my site or u can for every page.
when i try on google it didn't help me out.
plz if u can then help me.
thanx once again.
|
|
|
|
|
I'm sorry I have not yet worked with RSS feeds.
Good luck for your project, let me know when you have succeeded.
Regards,
B
|
|
|
|
|
Hi guys,
I'm kinda new to asp.net so I hope to learn something here. I'm now working on a web based video streaming system for a larger e-learning system. My systems goes like this. User A (Teacher) will login into my server through a web site and begin using his/her web cam and upload video files to my server. User B (student)will then login into my server and begin streaming the video from the server to his/her web browser. I've got a solution to the User Bs side, where I'll be embedding the Windows Media Player ActiveX control to stream live media from my server. My question here is, how do i capture video frames from User A and send them to the server?
Thanks a lot
|
|
|
|
|
hi
plz can someone send me javascript for yes,no option. i'm not suppose to use ok ,cancel only yes no.
smiles
sparkling star
|
|
|
|
|
You can't do that in Javascript by default. You can use div layers instead but in this case you no longer using the msg box object.
Moe Tarhini
Senior Software Engineer
http://profoundway.blogspot.com
|
|
|
|
|
Do you mean in a "MessageBox" similar to the alert() fn? If so, take a look at the confirm() function...
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hi ,
i wanted a messagebox or alert with yes ,no option and not ok,cancel
smiles
sparkling star
|
|
|
|
|
Hi all,
i wanna know about Encryption/decrption..
i do Googling.... and it return MD5 Encryption in .net but it is Encryption purpose only not for Decryption....
but i wanna both..
Any help !
thanx in advance
Sajjad
|
|
|
|
|
I have a datagrid with a delete function... my problem is that the table in the database have three keys... how do I set the datakey value in this regard to be able to delete?
Thanks alot,
commickey
|
|
|
|
|
1. Bind all three keys to the datagrid.
2. In ItemCommand event of datagrid , check for delete command
eg.. switch(e.CommandName)
{
case "Delete":
break;
}
3. In the case "Delete" Find the controls and fetch values from the three key columns if you use a Template column for them in datagrid.
eg. TextBox txt = new TextBox();
txt = (TextBox)e.Item.FindControl("txtKey1");
OR
IF these three key columns are BoundColumn in datagrid then get values using following
eg. e.Item.Cells[3]
4. Once you get all three key values you can delete this record by developing a sql query which will use these values to delete the record.
praveen.
|
|
|
|
|
Thanks Praveen....
Your solution looks right.... I will try it and let you know....
Greetings,
Commickey
|
|
|
|
|
Hello Praveen,
Where do I do the number 4? in the itemCommand or the datagrid_delete function?
Thanks alot,
Commickey
|
|
|
|
|
Praveen... thank... I worked around in the itemCommand it fires as I clicked on the delete button.... thanks alot.... it works now....
|
|
|
|
|
i'm having problems passing a value a label a added to header of a datalist, when i try pushing my strongly typed collection to its text propetry, i get an "object not set to instance of an object"., but if i do the same restricting it to items and alternating items i get no such errors
10.10
|
|
|
|
|
Hi,
Plz can some one help me disable the close button on the pop up box generated.
smiles
sparkling star
|
|
|
|
|
How to Disable and Enable postback in javascript
pavan
|
|
|
|
|
na wrote: How to Disable and Enable postback in javascript
wrong Forum!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
na wrote: How to Disable and Enable postback in javascript
And to think someone cycling on some mountains in france will have to read this
You know you're obsessed with computer graphics when you're outside and you look up at the trees and think, "Wow! That's spectacular resolution!"
|
|
|
|
|
Monty2 wrote: And to think someone cycling on some mountains in france will have to read this
Regards,
Nish
|
|
|
|
|
No, really. It makes checking email each morning and afternoon all the more worthwhile
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
From my experience in web development most developers keep the query string variables unsecured which will lead into lots of security risks.
I have created three functions that will cover the above issue and make sure all your query string variables are secured.Get Source Code
Moe Tarhini
Senior Software Engineer
http://profoundway.blogspot.com
|
|
|
|