Click here to Skip to main content
16,007,443 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionASP TextBox selection event. Pin
Steve Holdorf11-Jun-08 6:08
Steve Holdorf11-Jun-08 6:08 
AnswerRe: ASP TextBox selection event. [modified] Pin
Parwej Ahamad11-Jun-08 6:20
professionalParwej Ahamad11-Jun-08 6:20 
AnswerRe: ASP TextBox selection event. Pin
Christian Graus11-Jun-08 6:29
protectorChristian Graus11-Jun-08 6:29 
GeneralRe: ASP TextBox selection event. Pin
Steve Holdorf11-Jun-08 8:34
Steve Holdorf11-Jun-08 8:34 
GeneralRe: ASP TextBox selection event. Pin
Christian Graus11-Jun-08 8:47
protectorChristian Graus11-Jun-08 8:47 
QuestionProblem loading a user control dynamically into a gridview and the controls events not triggering Pin
DanChin11-Jun-08 3:25
DanChin11-Jun-08 3:25 
AnswerRe: Problem loading a user control dynamically into a gridview and the controls events not triggering Pin
Christian Graus11-Jun-08 5:24
protectorChristian Graus11-Jun-08 5:24 
QuestionProblem consuming a web service in C# :nullable object must have a value Pin
highjo11-Jun-08 3:10
highjo11-Jun-08 3:10 
hello!
i'm trying to consume a web service writing by a friend in a networking environment.The web service is on the server (main) i tested it there and it is working.
the web reference was done withtout a single problem.
my code takes data from the request either post or get.
to make sure it's working i pass the data that is supposed to be collected by the request object and that one is working to.i also display the value of the querystring passed in my codewith the response.write and is all fine there too.but each time i'm passing the value to the function i see the error Nullable object must have a value.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Nullable object must have a value.

Source Error:

Line 49:                    // responsemessage = "Dear Customer, bla bla bla";
Line 50:                     //sendResponse(number, responsemessage);
Line 51:                     decimal resp = (decimal)serv.getBalance(num, pin);
Line 52:                     Response.Write(resp);
Line 53:                     Response.Write(pin);

i debug it i they are not null and have the expected value.
i'm a lilte bit lost.and have this thing done before night. So i'll to have your opinion.
what do you think guys?

this are the codes

<br />
 protected void Page_Load(object sender, EventArgs e)<br />
    {<br />
        <br />
        string text = Request["text"];<br />
        string number = Request["number"];<br />
        //string responsemessage = "";<br />
       <br />
        string[] t;<br />
        //decimal resp =0;<br />
   <br />
        t = text.Split(new Char[] { ' ',',' });<br />
        dreamserve.iWalletMobileBasic serv = new dreamserve.iWalletMobileBasic();<br />
        if (t[0].Trim() != "")<br />
        {<br />
            if(t[0].ToLower() == "foo")<br />
            {<br />
                if(t[1].Trim() !="" && number.Trim()!="")<br />
                {<br />
                    string num = number.Trim();<br />
                    string pin = t[1].Trim();<br />
                    //Response.Write(serv.getBalance(num,pin));<br />
                   // responsemessage = "Dear Customer,bla bla bla";<br />
                    decimal resp = (decimal)serv.getBalance(num, pin);<br />
                    Response.Write(resp);<br />
                   <br />
                }<br />
            <br />
            }<br />
        }<br />
    }<br />


even if i use number and t[1] directly itsthe same i tough it's due to empty space,casting that why i created pin and num.i really don't know what is wrong Cry | :((
please if it's possible get to me as quick as possible.Thanks guys!

eager to learn

AnswerRe: Problem consuming a web service in C# :nullable object must have a value Pin
Christian Graus11-Jun-08 5:26
protectorChristian Graus11-Jun-08 5:26 
Questionhow to host dropdown list in gridview? Pin
Denver Thomas11-Jun-08 2:57
Denver Thomas11-Jun-08 2:57 
AnswerRe: how to host dropdown list in gridview? Pin
eyeseetee11-Jun-08 3:55
eyeseetee11-Jun-08 3:55 
Questioncall a function from aspx in vs2008 Pin
thedom211-Jun-08 2:47
thedom211-Jun-08 2:47 
AnswerRe: call a function from aspx in vs2008 Pin
Christian Graus11-Jun-08 5:27
protectorChristian Graus11-Jun-08 5:27 
GeneralRe: call a function from aspx in vs2008 Pin
thedom211-Jun-08 12:58
thedom211-Jun-08 12:58 
QuestionDoes images will be compressed while storing in database Pin
rubobby11-Jun-08 2:47
rubobby11-Jun-08 2:47 
AnswerRe: Does images will be compressed while storing in database Pin
eyeseetee11-Jun-08 3:53
eyeseetee11-Jun-08 3:53 
GeneralRe: Does images will be compressed while storing in database Pin
Ashfield11-Jun-08 4:58
Ashfield11-Jun-08 4:58 
AnswerRe: Does images will be compressed while storing in database Pin
SteveNY11-Jun-08 5:44
SteveNY11-Jun-08 5:44 
AnswerRe: Does images will be compressed while storing in database Pin
Guffa11-Jun-08 8:35
Guffa11-Jun-08 8:35 
QuestionSend mail with System.Net.Mail Pin
Phrone11-Jun-08 2:44
Phrone11-Jun-08 2:44 
AnswerRe: Send mail with System.Net.Mail Pin
eyeseetee11-Jun-08 3:52
eyeseetee11-Jun-08 3:52 
GeneralRe: Send mail with System.Net.Mail Pin
Phrone11-Jun-08 7:57
Phrone11-Jun-08 7:57 
QuestionMultiple Columns in ASP.Net Drop Down List ? Pin
manish.singhal11-Jun-08 2:36
manish.singhal11-Jun-08 2:36 
AnswerRe: Multiple Columns in ASP.Net Drop Down List ? Pin
eyeseetee11-Jun-08 3:50
eyeseetee11-Jun-08 3:50 
GeneralRe: Multiple Columns in ASP.Net Drop Down List ? Pin
manish.singhal11-Jun-08 23:18
manish.singhal11-Jun-08 23:18 

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.