|
R/s sir,
i have two pages default1.aspx and default2.aspx. there is a button in default1 page, i want to control transfer to another page, like when i click this butoon then some value has to changed in another page.
thanks in advance.................
yogesh
|
|
|
|
|
Hi Yogesh,
Sending Value and Sending Control is Total Diiferent Things.
yogesh_softworld123 wrote: i want to control transfer to another page,
If This is your Query can explain in details
yogesh_softworld123 wrote: when i click this butoon then some value has to changed in another page.
And if This is your query , u can easily do it using Session or Query String
e.g
private void Button1_Click()
{
Session["Myvalue"]=TextBox1.Text;
Response.Redirect("Default2.aspx");
}
and in Default2.aspx
Form_load()
{
Textbox2.Text=Session["MyValue"].ToString();
}
-------------
Did u get your answer ???? Then Vote it.
Happy Programming
-----------------
Abhijit Jana
Noida, India
|
|
|
|
|
R/s sir,
i want to do something like...... there is two pages first page has a button and i want to use click event method of this button in another page. so what can i do it, it is possible or not. this is very argent.
i will be heighly oblise u
thanks in advance
yogesh
yogesh
|
|
|
|
|
|
That is impossible to achive, because you dont have direct accses to diffrent page like application.
One way to achive this is to use session, and somehow you triger to refresh that page, and if session is there then trigger that event.
Also you coud use class, and that trigger woud be in static class, first page and second page woud refer to that function.
I can say one thing.
If there is a way to avoid such programing, Don't think the second time.
|
|
|
|
|
write this code on page load event
ButtonName.PostBackUrl = "default.aspx?value1=" & value1 & "&&" & "value2=" & value2 & "
Thanks
Sarfarj Ahmed
|
|
|
|
|
I want to create a new custom web control by extending the 1)HTMLInputFile control and 2)File Upload control
The purpose of extending the control is to add the following functionalities not provided by the controls:
a.Selection of Folders
b.Retrieval of the folder path
Can someone tell me the proper way of doing it,so that I can drag it from the toolbox and use it.
I shall be grateful for this help.
Thanks in advance for your time and effort.
Sunny74.
|
|
|
|
|
Those controls render as an input element with type="file". The functionalty that you want to change is part of how that element works, and can't be changed.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
|
How to main page from a popup window.
More Information
on main.aspx got a link button when you click the link button then it will open a popup window popup.aspx (i need it because i have to add information). when you close the popup.aspx then i need to refresh my main.aspx page automatically.
also is their any way without closing popup.aspx you cant use main.aspx
Waiting for your reply
Sarfarj Ahmed
|
|
|
|
|
You can use window.opener.location.reload(true); to refresh the parent window.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
Thanks A Lot
Could you please tell me how can I lock main.aspx when popup.aspx will open. If you close popup.aspx then main.aspx will be unlock
Sarfarj Ahmed
|
|
|
|
|
hi
In my one Page i have given two different validation group to different validator.i want on some condition one validation group control check or other on second condition .Those condition i want to check on one button .Is this possible .if Yes then give me some idea.
Jintal Patel
|
|
|
|
|
Jintal Patel wrote: Is this possible
I believe that Validation Group Control in ASP.NET 2.0 has been added to serve only this purpose. It is Possible.Each Validation control has a validationControl property. Use the Property to specify the validationGroup correctly.
Note : Button Control has a ValidationGroup Property to set the appropriate validation.
Regards - J O N -
|
|
|
|
|
how can i upload a file without html file field, like clicking a button,the path can get from a textbox.
Thks
|
|
|
|
|
ypki wrote: how can i upload a file without html file field, like clicking a button,the path can get from a textbox.
That's impossible.
If you don't want to use a file field, you have to use a component in the browser, that reads the file on the client computer and sends it to the server.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
I answered your question in the previous post of you about the same problem. You need to just add some fore functionality to it.
Intelligence is measured by common sense not by how many scholarly books you read.
|
|
|
|
|
|
A project I deployed is not comming up after uploading. It shows the following error once requesed:
CS0433: The type 'CARP.UI.Login' exists in both 'c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\carpscreens01\c790c604\5ed87183\assembly\dl3\bc6e1231\7c72fe77_a014c801\App_Web_vlg6el7-.DLL' and 'c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\carpscreens01\c790c604\5ed87183\assembly\dl3\5e7b4299\54227779_a014c801\App_Web_fhkq5o5e.DLL'
What could be the problem?
|
|
|
|
|
You delete the entire folder contents of c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\carpscreens01\ and retry.
If the sample problem occurs then check in your code whether any such class is defined again.
Intelligence is measured by common sense not by how many scholarly books you read.
|
|
|
|
|
Thankyou I got the problem fixed by ticking the option :Use fixed naming and single page assemblies while publishing
|
|
|
|
|
Hi,
Friends i need your help ..i have a problem with me like..in my project xslt file is stored in the database as byte array..and while at the time of reading i want to recreate that xslt file from the database value (byte array value)....is anybody help me give ur suggestions and idea's..
thanks
Alex.
|
|
|
|
|
Read the data from the database and save it as a file. It's really straight forward and no conversion needed.
Any specific problem with it?
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
hai all,
i had one grid view,in that grid view i have no.of columns,
i just want to decrese the distance between the columns.(eg,empno,ename,salary in three columns but the distance between the columns very large and it looks worst...i just wnat to decrease the distance between them)
Thanks & Regards
Subhash k
S/E
|
|
|
|
|
Hey why you people repeat the same question. I do not understand. I answered your /similar kind of question already. Just check/search for posts which are related to issue.
put GridView's CellPadding property to zero
else
provide fixed size for each column
<asp:boundfield templatefiled="" itemstyle-width="your value">
Intelligence is measured by common sense not by how many scholarly books you read.
|
|
|
|