|
I dont know I am trying to add the reference Microsoft.Office.Interop.Outlook.dll but I am not able to add that.
Please tell me u know..
|
|
|
|
|
try this
http://www.codeproject.com/cs/internet/popapp.asp
|
|
|
|
|
Hi friends,,
am developeing a website to conduct certification exam for the buddys who are interested..some thing like a MCP,MCSD exam. to do this i have to design a webportal...where i have to expose a single qestion and answer each time...(let us say first time a exposed the first question)while clicking the next button i have to update the first question answer and expose the second one....to do this i did some manupulation like
in page_load()
{
if (!IsPostBack==true)
{
da.Fill(ds, "dept");
p = 0;
getrecord(p);
}
public void getrecord(int x)
{
//filling question and answers in the controls..
Label1.Text = ds.Tables["dept"].Rows[x].ItemArray[0].ToString();
RadioButton1.Text = ds.Tables["dept"].Rows[x].ItemArray[1].ToString();
RadioButton2.Text = ds.Tables["dept"].Rows[x].ItemArray[2].ToString();
RadioButton3.Text = ds.Tables["dept"].Rows[x].ItemArray[3].ToString();
RadioButton4.Text = ds.Tables["dept"].Rows[x].ItemArray[4].ToString();
}
Nextbutton_click()
{
p++;
getrecord(p);
if (p == ds.Tables["dept"].Rows.Count - 1)
{
//some conformation
}
}
But problem is while am working in windows application with thi code(omit !ispostback=true),it's working fine...while web application it's not.....i know every time the variable(p) is initializeing to position zero(0) though i used !ispostback(skipping page_load)event........!
plz let me know the proper way to proceed ....or give some articles relateing to this scenario...thanqs in advance...
|
|
|
|
|
yuvachandra wrote: .i know every time the variable(p) is initializeing to position zero(0) though i used !ispostback(skipping page_load)event.
It's not correct. Because not ispostback will execute only one time. But the variable p will reinitialize each time when postback occurs. That is not because you have assigned 0 for p inside not ispostback.
yuvachandra wrote: plz let me know the proper way to proceed
Have you ever heard about viewstates ? viewstates can help you on this problem. Viewstate is mechanism in ASP.NET which will add hidden fields in the page. So use like this..
in next button use
p = viewstate["p"];
p++
viewstate["p"] = p;
Will raise null reference exception if viewstate is not initialized before. So initialize it in ispostback method.
|
|
|
|
|
thanks for ur kind response..!, i do tried wih the code snippt u have given to me ....but it's raiseing some error like---Cannot implicitly convert type 'object' to 'int'. An explicit conversion exists (are you missing a cast?)...
i did the same with session variables like...
Nextbutton_click()
{
Session["abc"] = Session["abc"] + 1;
p = int.Parse(Session["abc"]);
getrecords(p);
//i have declared session["abc"] =1 in the global.aspx aswell.
}
this time also i got the same error....PLz help me out...
and
|
|
|
|
|
p=int.parse(session["abc"].ToString());
or
p=convert.ToInt32(session["abc"].ToString());
Best Regards
Pathan
GOD HELP THOSE WHO HELP THEMSELF
|
|
|
|
|
thanqs imran,,it's worked fine
thanqs once again
|
|
|
|
|
Hi,
I have to take snapshot of my site for that i has used webbrowser control drawtoBitmap property .It is working fine for some sites and for some sites it is returning blank image.Is their any other way in .net to get snapshot of web page.
|
|
|
|
|
|
Its probably because some websites take too long to respond and so it times out. Try increasing the timeout property of the webbrowser object.
|
|
|
|
|
what is caching API.
Difference between caching and caching API.
thanks in advance
|
|
|
|
|
ashishnagar1 wrote: Different between catching and catching API.
Did you mean caching ?
|
|
|
|
|
Caching is a way of saving dynamic information for future requests, the caching API is an application programming interface to allow the user (as in the developer - us) to implement caching.
|
|
|
|
|
Hi, i want to make menu but on asp.net , i can t find anything about making menu(But windows application .net has got tab menu and main menu component).How to i make menu ?
Please help me...
Thanks...
|
|
|
|
|
eey56 wrote: How to i make menu ?
Try for DHTML menu builder. Or ASP.NET 2.0 having some menu builder controls
|
|
|
|
|
hi
u can use the MultiView and View tools in Asp.Net2005
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
thanks for your help.
Do you have any solution on .net 2003?
|
|
|
|
|
I want to use .swf file on my project but i can't.How i do this ???
Please help me.
Thanks...
|
|
|
|
|
use object tag
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"<br />
width="670" height="370" id="URLVariablesDynamic" align="middle"><br />
< param name="allowScriptAccess" value="sameDomain" /><br />
< param name="movie" value="snapshot.swf" /><br />
< param name="quality" value="high" /><br />
< param name="bgcolor" value="#ffffff" /><br />
<embed src="snapshot.swf" quality="high" bgcolor="#ffffff"<br />
name="URLVariablesDynamic" align="middle" allowscriptaccess="sameDomain"<br />
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /><br />
</object>
|
|
|
|
|
where can i write this text ?And in this text, do i set image location on web page?
|
|
|
|
|
|
Hi Serkan thanks for your help, but yours dll is for .net 2005 but i use .net 2003 so do you have any solution except this.
|
|
|
|
|
Hi,
I created the main thread of my application that loads a datagrid, now I want the background thread to display the datagrid on the interface. How can I invoke the datagrid to be displayed on the User Interface??
thnx in advance
|
|
|
|
|
I am not sure that you can show user interface in background thread. Try using background worker class
|
|
|
|
|
Is this supposed to be ASP.NET?
|
|
|
|