|
Anees Mitha wrote: but after the postback that value will not be available to me during page initialisation.
Can't you access this variable some where other than init event ? Have you tried Request.Form[""] ?
|
|
|
|
|
It is not a form submit event, it is a postback event. The value i need is after the postback in the page initialisation stage.
Thanks!
|
|
|
|
|
Anyone please reply, i am really confused as to how to move ahead with this problem.
Thanks!
|
|
|
|
|
Hi everybody
This Sree
I have login page in my web App and Login Control in it.
Here i want to prefill the login control with username and password in next login if that user once has logged in by checking 'Remeber Me Next Time' check box.
i wanna avoid bypassing user to the authorised pages instead of prompting login credentials .
thank u all
sree
cnu
|
|
|
|
|
Hi friends
i need the code in datagrid paging
Page: 1 of 7
like this
regards
saravanan
|
|
|
|
|
hi frnd,
it is easy, make pagging property true and for more info
check it
http://p2p.wrox.com/topic.asp?TOPIC_ID=23623[^]
regards,
koolprasad2003
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
|
Hello Everyone,
Can anybody suggest me the way for running the videos
Actually i have to run some videos in my project ............
for it
1.) Should i include it my projects but at that point i need a player to
run these videos.
Or
2.) Should i upload these videos in YouTube,Googel or Yahoo and fetch these
videos at run time as the visitor desire.........
But there is a problem actually whenever i fetch or bring these videos
from YouTube,Google or Yahoo videos run perfectly but the client dont
as the name appear in the video player like YouTube
He wants something like this .........
Can you suggest me how it is done
http://www.gurumaa.com/online-video-discourses.php
Thnx in advance
|
|
|
|
|
i have address class. i have to store this class object in session object until when application is not closed. how to do it?please provide some guidance
|
|
|
|
|
Hi deepali as per i know about session, any thing carry by session remain until the application alive, respective of session time alloted to it.
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
Session is a dictionary where you can add object based on key/value pair. When you want to add something, you give a key that you should use later to retrieve the object. So, supposing that your class is called Address , you would save it in session like this:
Address myAddress = new Address();
Session["address"] = myAddress;
To retrieve it, you would do this:
Address mySessionAddress = (Address)Session["address"];
I put "address" as an example for a key, but you can use any string. Just be sure to use the same string to put in session and retrieve from session.
Hope this helps
Talal
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
deepalititi wrote: i have to store this class object in session object until when application is not closed.
Application is not closed means ? Do you mean browser ? If yes Talal's solutions is the best. Else you need to go with application variables.
|
|
|
|
|
Hi,
I am created a web application such a type that user can upload the image by drag image from window explorer and drop in web page. Obviously drop image should be on one animation control only. user can see dropped thumbnail images over web page. and then by single click user can upload the images.
Means in single line Drag and Drop and Upload.
Note:Image path retriving from listbox.These path generated when user is dropped the image.
Here we have not using any html inputFile control.
So my problem is,I can not uploading images on server from client machine.But it is working fine on Local PC.
Can any one give me solution for this?
Thanks in Advance!!!!
|
|
|
|
|
FileUpload has SaveAs method to save file on server.
But as per ur requirement u have to download image from server and save to server
are every images on server?
If yes try this code
MemoryStream stream = new MemoryStream();<br />
System.Net.WebClient wc = new System.Net.WebClient();<br />
byte[] image;<br />
string path="ImagePath";<br />
image = wc.DownloadData(path);<br />
int indx = path.LastIndexOf("/");<br />
path = path.Substring(indx + 1);<br />
stream.Write(image, 0, image.Length);<br />
Bitmap bmp = new Bitmap(stream);<br />
bmp.Save(Server.MapPath(path));
Hope this will be helpful
Best Regard
pathan
---------------------------------------------------
|
|
|
|
|
tulsulkar wrote: I can not uploading images on server from client machine.But it is working fine on Local PC.
Because in Local PC your ASP.NET account will have Read/Write permissions. But in your client machine, it don't have permissions.
Is your application working on Intranet ? Then you can permit ASP.NET account to access files contained in the specified folder.But if it is working internet, I think that you need to get HTTPPostedFile class object to perform uploading. But getting this from ListBox seems to be impossible.
|
|
|
|
|
Hi,
On the close event of the window, I want to call a button click event which is present on the server side. so in the body tag in the onload() i am calling the button click event as follows:
<body bottomMargin="0" onunload="formclose();">
function formclose()
{
var res
res = confirm("Do you want to draft this mail, attachments will not be saved.")
if(res == false){
window.opener = self;
window.close();
}
if(res == true)
{
alert(res);
document.getElementById('btnsavclose').click();
}
}
But only the confirmation meassage is fired and not the button click event.
plz suggest me a solution.
riz
Riz
|
|
|
|
|
Do u want to call javascript on button click event?
If yes , use btn.Attribute.Add in code behind page to call javascript
Best regard
Pathan
---------------------------------------------------
|
|
|
|
|
No..... I dont want to call a javascript. In my javascript i am calling the button click event in the server code. But the button click event does nt get fired.
Plz help me out.
Riz
|
|
|
|
|
check out ur button object found or not alert(document.getElementById('btnsavclose'));
Best Regard
pathan
---------------------------------------------------
|
|
|
|
|
button object is found. But it does not go to the server side code of the button click.
Riz
|
|
|
|
|
try this
if(res == true)<br />
{<br />
<br />
document.getElementById('btnsavclose').click();<br />
return true;<br />
}
Best regard
Pathan
---------------------------------------------------
|
|
|
|
|
I suspect the form is closing before your method call can do anything. A click involves a postback. A postback involves the page reloading. The page can't close, and reload.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
helooo...
im binding a datagrid in webpage.in that one column is a linkcolumn ;
In that column some datas are with singlequotes;like "abc'" if im clicking dat perticular data i couldnt able to pass dat value to nextpage;plase gv a solution...
|
|
|
|
|
Please post ur code also then we help u
Best Regard
pathan
---------------------------------------------------
|
|
|
|
|
You need to Encode the url. Use Server.URLEncode
|
|
|
|