|
The first rule of the "project" is that you dont talk about the "project".
|
|
|
|
|
i have found MSN messenger library but i have not found yahoo messenger library developed in c#, which i can use in my developed e-buddy.com web site. if any one has, provide me.
Thanx in advance........
|
|
|
|
|
try oleview.exe
if you cant find then your answer is no
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
i have problem that how to redirect a page and transfer info or data from one page to another page. if any one knows provide me the help.
and what is difference between onInit and onLoad methods,
because when i clicked a button both onInit and onLoad methods call again.
|
|
|
|
|
Response.Redirect to another form with this URL
Following code snippet shows how it works:
Source Web Form
private void Button1_Click
(object sender, System.EventArgs e)
{
string url;
url="anotherwebform.aspx?name=" +
TextBox1.Text + "&email=" +
TextBox2.Text;
Response.Redirect(url);
}
Destination Web Form
private void Page_Load
(object sender, System.EventArgs e)
{
Label1.Text=Request.QueryString["name"];
Label2.Text=Request.QueryString["email"];
}
Using Session variables
This is yet another way to pass values across pages. The typical sequence of steps will be as follows:
§ Create the web form with controls
§ Provide some button or link button that posts the form back
§ In the click event of the button add session variables and set them to control values
§ Response.Redirect to another form
§ In that form access Session variables and remove them if necessary
Following code shows this in action:
Source Web Form
private void Button1_Click
(object sender, System.EventArgs e)
{
//textbox1 and textbox2 are webform
//controls
Session["name"]=TextBox1.Text;
Session["email"]=TextBox2.Text;
Server.Transfer("anotherwebform.aspx");
}
Destination Web Form
private void Page_Load
(object sender, System.EventArgs e)
{
Label1.Text=Session["name"].ToString();
Label2.Text=Session["email"].ToString();
Session.Remove("name");
Session.Remove("email");
}
Using Server.Transfer
This is somewhat complex but sophisticated method of passing values across pages.
The entire process works as follows:
§ Create the web form with controls
§ Create property Get procedures that will return control values
§ Provide some button or link button that posts the form back
§ In the button click event handler call Server.Transfer method that will transfer execution to the specified form
§ In the second form you can get a reference to the first form instance by using Context.Handler property. Then you will use the get properties we created to access the control values.
The code to accomplish this is somewhat complex and is shown below:
Source Web Form
Add following properties to the web form:
public string Name
{
get
{
return TextBox1.Text;
}
}
public string EMail
{
get
{
return TextBox2.Text;
}
}
Now, call Server.Transfer.
private void Button1_Click
(object sender, System.EventArgs e)
{
Server.Transfer("anotherwebform.aspx");
}
Destination Web Form
private void Page_Load
(object sender, System.EventArgs e)
{
//create instance of source web form
WebForm1 wf1;
//get reference to current handler instance
wf1=(WebForm1)Context.Handler;
Label1.Text=wf1.Name;
Label2.Text=wf1.EMail;
}
Vipin
|
|
|
|
|
i am developing e-buddy in ASP.NET but i dont know how the pop-up windows can appear in bottom-right corner as a alert for signed-in or signed-out.
plz if anybody know, give me help
|
|
|
|
|
in codebehind:
protected void btnDisplayPopUp_Click(object sender, EventArgs e)
{
Page.RegisterStartupScript("MyPopUpScript", @"<script type='text/javascript'>window.open('http://server_name/app_name/pop_up_window_page.html');</script>");
}
in aspx page:
<aspx:Button runat="server" id="btnDisplayPopUp" OnClick="btnDisplayPopUp_Click" Text"Open pop up window"/>
You can alter javascript window.open() method as you need:
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/open_0.asp
Pilo
-- modified at 7:44 Wednesday 26th July, 2006
|
|
|
|
|
hi all
i am using datalist,in the data list using panel
i want panel visible true on mouseover hyperlink,
wht mistake on this code,
hyperLink.Attributes.Add("onMouseOver", "document.getElementById('" & panel.ClientID & "').visible=true;return true;")
paz help me
thanks
|
|
|
|
|
hi...
try....
hyperLink.Attributes.Add("onMouseOver", "document.getElementById('" & panel.ClientID & "').style.visibility='visible';return true;")
|
|
|
|
|
hi,
it's not coming
thanks
|
|
|
|
|
hi...
not coming?....mhhhh
check if your panel have the "style" attribute visibility ?!...
|
|
|
|
|
hi,
i am using inside datalist,
thats is the problem,
not using css
thnaks
|
|
|
|
|
|
Hi All,
I am developing ecommerce site using asp.net1.1 .In this site I need to integrate Paypal controls for secure payment transactions.
I have installed paypal webcontrol's setup now paypal controls are available in my toolbox.
But I don't know how to write code for ADD TO CART or BUYNOW I can only drag and drop controls on form but i can write any code to use them.
Can anybody tell me how to use them.Should I code something or any webservice I can use directly to use this paypal controls.
I hope somebody help me.
Thanks,
Nagraj
|
|
|
|
|
Use your object browser to find the method you need on the control
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
i want to check some validation before Page is closed ( for any reason like ALT+F4 and...) how can i do it ? is there any event occur before window is closed ?
MHF
|
|
|
|
|
you can use page unload event
Nav.
|
|
|
|
|
Remember, due to environment conditions the unload event will not always occur. So dont rely on it
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
Hello friends
I am chaitanya
I would like to create Offline Messenger in ASP.NET
Is it Possible? If yes then plz help.
|
|
|
|
|
What's an offline messenger? E-mail?
|
|
|
|
|
Hi everyone,
Each row in gridview binds to datasource row. Is it possible to create rowspan for multiple rows?
For example; This query produces 5 records. It record has 3 columns, "projectname" "projecttype" "owner"
[projectname] [projecttype] [ownerid ]
FlightPlan Aero 1
FlightPlan Aero 2
FlightPlan Aero 3
FlightPlan Aero 4
FlightPlan Aero 5
Can gridview layout show this type of rowspan
_______________________________________
Projectname projecttype ownerid
_______________________________________
| | 1
| | 2
FlightPlan | Aero | 3
| | 4
| | 5
________________________________________
Thanks
silverfox_1188
|
|
|
|
|
Sorry, here is a better view. * are imaginary white spaces...
_______________________________________
Projectname***Projecttype***ownerid
_______________________________________
***********|**************|*****1
***********|**************|*****2
FlightPlan |***Aero*******|*****3
***********|**************|*****4
***********|**************|*****5
________________________________________
Thanks
silverfox_1188
|
|
|
|
|
Does someone have any insights??
silverfox_1188
|
|
|
|
|
Friends,
In my application, I am using i am displaying list of directories in specific folder. When click any one among the list it displays the contents of that directory. But when Click some directories it gives error as Directory Not Found Exception. Especially this happends only when Name of the Directory is more then one word and any special characters occurs. Eg. MNA_International is directory name. But when we click this that passes the Value to Request.Params as (root Name)\MNA only. Please tell me how to solve this problem. Please Its Urgent.
Thanks & Regards,
Prya
|
|
|
|
|
you need to use relative names and it has to be acessible by an url
I had this problem once
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|