try giving class="top" to div...
needhi_p
Posts
-
how to apply css to my asp.net page [modified] -
Unable to connect to remote serverHi all... I am making a web request to a site & all is working fine. But today i found that the site url isnt working. Site is unavailable due to some reasons. So then in my code i am getting error of "Unable to connect to remote server". My code is as follows. private WebRequest _request; _request = WebRequest.Create(uri[j]); // uri[j] is an array containing site url _request.Method = "POST"; _request.ContentType = "application/x-www-form-urlencoded"; _request.ContentLength = buffer.Length; PostData = _request.GetRequestStream(); <---- gives error PostData.Write(buffer, 0, buffer.Length); How can i catch this exception? Is there some way to catch such exception??? Thnx in advance..
-
making http requests in parallelHi.. I want to send multiple http request (eg. to google.com, codeproject.com, yahoo.com,....) & recieve their responses. I want to minimize the time so want to send these requests in parallel. I am making ajax enabled web site. At present i m using async task to send multiple requests but they r nt executing in parallel. Is their ne other way to do this ...
-
using FindControl in inner gridviewThankyou... use of cells[i] wrkd...
-
using FindControl in inner gridviewI tried using RowDataBound of gridview & bind it only if not header row. But still my prob is same as i am finding child grid controls in child grids databound. In child grid's databound it says it cannot find child grid. Can u post me a sample of how to do this...
-
using FindControl in inner gridviewHi... I am having a child gridview in another master gridview. I am having 2 tbls that contains hyperlinks in child grid and have to bind them alternately. Now i want to find this hyperlinks in my code behind.. I tried finding this hyperlinks in child grid Databound. but it does nt even recognize child grid itself... To make u clear.. here's a part of my code protected void grdmaster_DataBound(object sender, EventArgs e) { for (int i = 0; i < grdmaster.Rows.Count; i++) { GridView grdchild = new GridView(); grdchild = (GridView)grdmaster.Rows[i].FindControl("grdchild "); grdchild .DataSource = dssubsubcat; (dssubsubcat is datatable) grdchild .DataBind(); } } protected void grdchild_DataBound(object sender, EventArgs e) { for (int i = 0, count = 0; i < dssubsubcat.Rows.Count; i++) { HyperLink hyplnksubsubcat1 = new HyperLink(); hyplnksubsubcat1 = (HyperLink)grdchild.Rows[i].FindControl("hyplnksubsubcat1"); hyplnksubsubcat1.Text = grdchild .Rows[i]["SubSubCategory_Name"].ToString(); } } But here it says cannot find grdchild... Someone plz help...
-
Loading records as they come from datasetHi.. I am making a comparison site. I am crawling a site & getting 1000 of records which i m displaying in grid. Bt as there r 1000 of records, it takes 2 long to load. I want that as soon as it gets few records from a site, it shld display them nd den continue searching further as in the following link "http://journeysasta.com/flights/flightSearch.htm?direction=RoundTrip&originCity=DEL&destCity=BOM&departDate=12%2F09%2F2008&returnDate=12%2F09%2F2008&cabinType=Economy&adultSelect=1&childSelect=0&infantSelect=0&Submit=&processCounter=0" How to do this? Can it b done using ajax or something else.. Plz suggest something...
-
Response object in class fileHi .. I want to use Response & Server object in my class file. Somewat like this .. String path = Server.MapPath(strRequest); Response.Clear(); Bt it says objects Response & Server does not exist in this context. How to use this objects in class file??
-
showing world mapHi.. I want to show world map in my web page. I have different users on my site coming from various locations. I want to mark the countries from where my users have come in this map... how can i do this...
-
getting finish time of flash fileHi I am showing swf file as under.. Now i want to enable a button wen this flash file finishes playing. How can i do this..
-
save file in javascript:) trying to hack nothing... Actually i m making an audio player. In dat i want dat wen shuffle button is clicked, i want to change the order of songs in my m3u file. So for dat, i need to open it & edit it accordingly & then save it again with same name. Bt i want to do this without postback. So i want to do it using javascript...
-
save file in javascriptHi... Sorry dat my question wasn't clear.... I don't mean to save file dat user has uploaded. I already have a file created, which i want to open in javascript, edit it and den again save it, without the user knowing wats happening. I tried using following , but this opens a save as dialog box. I dont want dat. function SaveFile() { var temp = "hi.. testing"; alert(temp); SaveFrame.document.open("text/html","create") SaveFrame.document.write(temp) SaveFrame.document.close() SaveFrame.focus() SaveFrame.document.execCommand('SaveAs',null,'testing.txt') } Here SaveFrame is an iframe. Hope i am clear now.. How to do this...
-
save file in javascriptHi all.. I want to save file from javascript without promoting to user. How to do this?
-
playing audio continuously without interruptionSomeone plz help... Atleast suggest something as i m totally blank ...
-
playing audio continuously without interruptionHi all.. I have used html object tag to play audio. It plays fine. Now I have a button of repeat & shuffle. I have applied logic for both. Bt wat happens is dat wen some song is playing & i click on repeat, den dat song stops playing & repeat logic is applied. Wat i want is dat it shld first finish playing that song & den apply repeat logic. Can anyone help me in this... Any sort of help is appreciable... Thnx in advance..
-
how to play all type of video files in my web applicationU can use html object tag for this.. for video it is something like this This is wat i have used in my application. U can modify it a little bit to play audio also.. Hope it helps u..
-
Downloading Filethnx everyone for helping.. have solved it
-
Downloading FileHi... I am making a website in asp.net using c#. I want to give functionality of downloading a file. For dat i tried using SaveFileDialog in codebehind as under. SaveFileDialog DialogSave = new SaveFileDialog(); if (DialogSave.ShowDialog() == DialogResult.OK) { } else { } Bt wen comparing if condition, it gives me following error. "Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. This exception is only raised if a debugger is attached to the process." Can someone tell me the way to use this SaveFileDialog or some other way to achieve this functionality.
-
playing mp3Hi.. I did dat. Got my playlist bt now how to get length of mp3 so dat i can play another song wen the 1st one ends??
-
playing mp3Hi.. I used embedded object to play video something like this.. Now can someone tell me how to use embedded object in a similar way to play mp3. Any help would be appreciated. Thankyou in advance.