Click here to Skip to main content
15,925,895 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: retrieve an image from sql Pin
y_mmohd12-Jun-09 1:37
y_mmohd12-Jun-09 1:37 
QuestionGoogle local search with asp.net (read the data returned by google local earch) Pin
rahul.net1111-Jun-09 19:24
rahul.net1111-Jun-09 19:24 
QuestionMouseover briefnews using ajax control Pin
Member 387988111-Jun-09 18:34
Member 387988111-Jun-09 18:34 
Questionscroll through images Pin
toprogramminguy11-Jun-09 15:37
toprogramminguy11-Jun-09 15:37 
AnswerRe: scroll through images Pin
N a v a n e e t h11-Jun-09 15:47
N a v a n e e t h11-Jun-09 15:47 
GeneralRe: scroll through images Pin
toprogramminguy11-Jun-09 16:10
toprogramminguy11-Jun-09 16:10 
GeneralRe: scroll through images Pin
N a v a n e e t h11-Jun-09 16:21
N a v a n e e t h11-Jun-09 16:21 
GeneralRe: scroll through images Pin
toprogramminguy11-Jun-09 16:42
toprogramminguy11-Jun-09 16:42 
Ok now I've added this:
protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            currentComics = 6;
            setConnectionString();
            UpdatePanel1.ContentTemplateContainer.Controls.Add(thumbnails);
            accessDatatables();
        }
        else currentComics = (int)ViewState["currentcomics"];
    }

and this:
protected void right_Click(object sender, ImageClickEventArgs e)
    {
        currentComics += 6;

        ViewState["currentcomics"] = currentComics;

        thumbnails.Controls.Clear();//clears previous images

        accessDatatables();//gets and displays the images

        updatejavascript();
    }


but when it gets to here(in the first code block):
else currentComics = (int)ViewState["currentcomics"];

then it says: Object reference not set to an instance of an object.
Am i using the viewstate wrong?
GeneralRe: scroll through images Pin
N a v a n e e t h11-Jun-09 17:11
N a v a n e e t h11-Jun-09 17:11 
GeneralRe: scroll through images Pin
toprogramminguy11-Jun-09 17:21
toprogramminguy11-Jun-09 17:21 
GeneralRe: scroll through images Pin
N a v a n e e t h11-Jun-09 17:31
N a v a n e e t h11-Jun-09 17:31 
GeneralRe: scroll through images Pin
toprogramminguy11-Jun-09 17:41
toprogramminguy11-Jun-09 17:41 
QuestionHelp to Test a web app Pin
AlexeiXX311-Jun-09 14:56
AlexeiXX311-Jun-09 14:56 
QuestionTextbox Focus with ajax timer Pin
Mohammed Elkholy11-Jun-09 8:44
Mohammed Elkholy11-Jun-09 8:44 
AnswerRe: Textbox Focus with ajax timer Pin
Christian Graus11-Jun-09 14:14
protectorChristian Graus11-Jun-09 14:14 
GeneralRe: Textbox Focus with ajax timer Pin
Mohammed Elkholy11-Jun-09 17:09
Mohammed Elkholy11-Jun-09 17:09 
QuestionRe: Textbox Focus with ajax timer Pin
N a v a n e e t h11-Jun-09 17:14
N a v a n e e t h11-Jun-09 17:14 
AnswerRe: Textbox Focus with ajax timer Pin
Mohammed Elkholy12-Jun-09 5:20
Mohammed Elkholy12-Jun-09 5:20 
QuestionHow to buid a forum site in asp.net Pin
Mohammad Rakibul Hasan11-Jun-09 8:08
Mohammad Rakibul Hasan11-Jun-09 8:08 
AnswerRe: How to buid a forum site in asp.net Pin
Abhijit Jana11-Jun-09 8:23
professionalAbhijit Jana11-Jun-09 8:23 
AnswerRe: How to buid a forum site in asp.net Pin
Christian Graus11-Jun-09 14:15
protectorChristian Graus11-Jun-09 14:15 
Questionhow to add tamil or hindi font Pin
anbusenthil11-Jun-09 7:51
anbusenthil11-Jun-09 7:51 
AnswerRe: how to add tamil or hindi font Pin
Abhijit Jana11-Jun-09 8:47
professionalAbhijit Jana11-Jun-09 8:47 
AnswerRe: how to add tamil or hindi font Pin
Spirits Soft Tech Nology , Dharmapuri4-Aug-09 20:10
Spirits Soft Tech Nology , Dharmapuri4-Aug-09 20:10 
QuestionAsp.net assembly info [modified] Pin
mahichandu11-Jun-09 6:39
mahichandu11-Jun-09 6:39 

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.