|
|
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.
|
|
|
|
|
I have a web page. This page contains a PlaceHolder and this placeholder brings or holds some links created by the admin at runtime. Not when we design the page i mean there is no exact no. of the links to be created by the admin. Let an admin create Four links like Jan,Feb,Mar,Apr.....
Now i want as the client clicks on Jan link then a panel or imageButton should display the image of month Jan and if he/she clicks on Feb link then image of Feb month should display
|
|
|
|
|
Write a common event handler like private void linkmonth_Click(object sender, EventArgs e)..
Now attach this eventhandler to the created links at runtime...
link1.Click += new EventHandler(linkmonth_Click);
link2.Click += new EventHandler(linkmonth_Click);
link3.Click += new EventHandler(linkmonth_Click);
......and so on...
Now in the event handler linkmonth_click, based on the sender object load the appropriate image and display...
Here at runtime the admin should add linkbutton instead of Html tag...
-- modified at 7:38 Monday 22nd October, 2007
Koushik
|
|
|
|
|
First of All Thnx for ur solution but still i have a problem actually i'm having only one linkbutton for the all the links being created. Now problem is How it would be understood which link being clicked
private void linkmonth_Click(object sender, EventArgs e)
{
Wht code i should write here when a link is clicked to display it's corresponding image
}
==================
Here below i'm putting my code plz try to understand
on Page Load call createTable1() function
public void createTable1()
{
Table table=new Table();
TableRow trRow;
TableCell tcCell1=null;
DataUtility dUT=new DataUtility();
string strsql="Select LinkName From AnmolTable Where Active=1";
DataTable dt=dUT.getDataTable(strsql);
int total=Convert.ToInt32(dt.Rows.Count);
for(int i=0;i<1;i++)
{
trRow=new TableRow();
//rowno=i+1;
for(int j=0;j
|
|
|
|