Click here to Skip to main content
15,884,537 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: video converter Pin
nithydurai11-Jul-08 1:55
nithydurai11-Jul-08 1:55 
GeneralRe: video converter Pin
Ashfield11-Jul-08 9:38
Ashfield11-Jul-08 9:38 
QuestionTwo Dimensional Array into Dataset or datatable Pin
Bharani_Ram11-Jul-08 1:05
Bharani_Ram11-Jul-08 1:05 
AnswerRe: Two Dimensional Array into Dataset or datatable Pin
Ashfield11-Jul-08 1:32
Ashfield11-Jul-08 1:32 
AnswerRe: Two Dimensional Array into Dataset or datatable Pin
NeverHeardOfMe11-Jul-08 3:37
NeverHeardOfMe11-Jul-08 3:37 
Questionpicture in datalist Pin
strawberrysh11-Jul-08 0:53
strawberrysh11-Jul-08 0:53 
AnswerRe: picture in datalist Pin
eyeseetee11-Jul-08 1:25
eyeseetee11-Jul-08 1:25 
QuestionNeed Solution for a so simple XML Data binding!though can figure out [modified] Pin
highjo11-Jul-08 0:48
highjo11-Jul-08 0:48 
hi! guys this is terrible since a while now i've trying to do a very basic data binding, but i'm failing somewhere.let say in my webpage i have a dropdownlist and a textbox(textArea).so the logic is when a user select a text on the dropdownlist(ddCustom by id) its value should be displayed in the textbox.that it.what i've achieved so far is having the dropdownlist text bound but the value is not loading into the textbox field.
here are my codes
<code>
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack)
{
string result = this.validateAll(txtEmail.Text, txtNumbers.Text, txtMessage.Text, txtName.Text, 100);
int resultlen = result.Length;
lblError.Text = resultlen.ToString();
}
else
{
DataSet DsTemplate = new DataSet();
DsTemplate.ReadXml(MapPath(@"~\misc\MessageTemplate.xml"));
ddCustom.DataSource = DsTemplate;
ddCustom.DataTextField = "name";
ddCustom.DataValueField = "text";
ddCustom.DataBind();

}
}

protected void ddCustom_SelectedIndexChanged(object sender, EventArgs e)
{
//txtMessage is the id of the textbox
txtMessage.Text = ddCustom.SelectedItem.value;
}

</code>

sample of the xml file
<?xml version="1.0" encoding="utf-8" ?>
<templates>
<template>
<name>Custom</name>
<text></text>
</template>
<template>
<name>Please call</name>
<text> i'm having a Problem Please call me back at</text>
</template>
<template>
<name>Meeting</name>
<text> the meeting is reported</text>
</template>
<template>
<name>BitrhDay</name>
<text> Happy birth Day</text>
</template>


</templates>


simple isn't it? but don't know.
I'm from php backgroung.i would do that by an ajax stuff or with jquery.But here i'm surely forgetting something or thinking that asp.net would do everything for me.i search on google, w3school and my codes seems to be ok.need help on this.please let me know as soon as you have time to check this.Thank you!
PS:i'm so frustrated i can't do anything else<code></code>

eager to learn

<div class="ForumMod">modified on Friday, July 11, 2008 7:39 AM</div>
AnswerRe: Need Solution for a so simple XML Data binding!though can figure out Pin
highjo11-Jul-08 2:25
highjo11-Jul-08 2:25 
AnswerRe: Need Solution for a so simple XML Data binding!though can figure out Pin
leoinfo11-Jul-08 2:30
leoinfo11-Jul-08 2:30 
GeneralRe: Need Solution for a so simple XML Data binding!though can figure out Pin
highjo11-Jul-08 2:49
highjo11-Jul-08 2:49 
GeneralRe: Need Solution for a so simple XML Data binding!though can figure out Pin
leoinfo11-Jul-08 2:55
leoinfo11-Jul-08 2:55 
GeneralRe: Need Solution for a so simple XML Data binding!though can figure out Pin
highjo11-Jul-08 3:15
highjo11-Jul-08 3:15 
AnswerRe: Need Solution for a so simple XML Data binding!though can figure out Pin
Arindam Tewary11-Jul-08 3:04
professionalArindam Tewary11-Jul-08 3:04 
GeneralRe: Need Solution for a so simple XML Data binding!though can figure out Pin
highjo11-Jul-08 5:01
highjo11-Jul-08 5:01 
QuestionHow to Upload a file of size 10-15GB in .net Web Application. Pin
ArunangshuSarkar11-Jul-08 0:46
ArunangshuSarkar11-Jul-08 0:46 
AnswerRe: How to Upload a file of size 10-15GB in .net Web Application. Pin
Sam Xavier11-Jul-08 1:03
Sam Xavier11-Jul-08 1:03 
GeneralRe: How to Upload a file of size 10-15GB in .net Web Application. Pin
ArunangshuSarkar11-Jul-08 1:39
ArunangshuSarkar11-Jul-08 1:39 
AnswerRe: How to Upload a file of size 10-15GB in .net Web Application. Pin
Mark Churchill11-Jul-08 1:14
Mark Churchill11-Jul-08 1:14 
GeneralRe: How to Upload a file of size 10-15GB in .net Web Application. Pin
ArunangshuSarkar11-Jul-08 1:41
ArunangshuSarkar11-Jul-08 1:41 
AnswerRe: How to Upload a file of size 10-15GB in .net Web Application. Pin
NeverHeardOfMe11-Jul-08 3:00
NeverHeardOfMe11-Jul-08 3:00 
AnswerRe: How to Upload a file of size 10-15GB in .net Web Application. Pin
leoinfo11-Jul-08 3:02
leoinfo11-Jul-08 3:02 
AnswerRe: How to Upload a file of size 10-15GB in .net Web Application. Pin
Paul Conrad11-Jul-08 10:06
professionalPaul Conrad11-Jul-08 10:06 
QuestionHow to display url in status bar instead of address bar Pin
BalasubramanianK11-Jul-08 0:27
BalasubramanianK11-Jul-08 0:27 
AnswerRe: How to display url in status bar instead of address bar Pin
Anurag Gandhi11-Jul-08 0:57
professionalAnurag Gandhi11-Jul-08 0:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.