Web Forms :: Fetching Contents From Url?
Jun 12, 20101.) Reading all the contents of a page against a url.
2.) Convert all these contents into a pdf file.
1.) Reading all the contents of a page against a url.
2.) Convert all these contents into a pdf file.
i want to get the contents of a textbox and set them to a asp label for output, we can cause a postback to if that makes it easier, so far i did this and it comes up trumps
View 11 RepliesI have a pdf file, how can I extract the contents of the pdf file and show the contents in one of my web page
View 4 Repliesif I have this URL:
[URL]
How can I fetch the first two information from it into my aspx page? for example I want to read the first two timings.. Should I use xmlReader or what?
I'm having issues getting the selecteditems and value after Databinding a dropdown list. I have a button event with dropdownlist2.Selecteditem.text, but will always get the "-- Select --" as the SelectedItem.text ?
[Code]....
how to fetch items from an ItemArray? What I've got so far:
int h = tableDataSet.Tables["test_table"].Rows.Count;
for (int y = 1; y <= h; y++)
{
DataRow tr = tableDataSet.Tables["test_table"].Rows[y];
[Code]....
I keep on getting the following error: Input String was not in a corect format.
My web page has one radio button and three sub radio buttons. When I click on Main Radio button, I am enabling the sub radio button using Javascript, and user can select the options. Now the problem is, when I click on submit on this page, I am unable to get the selected radio button. i.e., Suppose if I select 1st sub radio button and click on submit. I am checking in the code for sub radio button selection, I am getting no radio buttons are selected. The above condition is for first time only. Now go to another page and traverse to the page again, I am successful, i.e., I am getting the selections properly.
View 8 Replies[Code]....
I have a List View lstViewAB , by the above code i m trying to find the text on the lblMobile for those which are checked (checkbox). But the problem is that the text of label lblMobile is fetched of 1,3,5 rows only and for 2,4,6 rows it shows text "".
am using master page in visual studio 2005. I want to fetch the drop down value which is there is the master page in my child page using the code below
DropdownList ddl=(DropdownList)Master.FindControl("ddlprofile");
The databinding to the dropdownlist is happening in the code behind of the masterpage.
But its showing null value in the child page. is there any way to fetch the values from the master page in the child page.
I have stored images in folder each images is more than 700kb so datalist binding process became slow.so it is possible that while loading record and corresponding images from folders Can I reduce the image size or compress images so that record fetching become faster.In database i m stroing image path and image is stored in directory.
View 1 Repliesin gridview i hv columns like
name | phno. | emp_name(in dropdown) | buttonfield
wen user comes on this page this grid comes filled but then I need to select 1 emp_name from dropdown and click button(in last column) corresponding to that row. then on clicking that row button it should fetch that toq Primary Key and dropdown corresponding id. how? Wen I m fetching its fetching row index as 0 though it is no.4 record as per database(coz my records are in desc.order). I mean its giving row index as per grid and not as per my actual table(primary key).
I am trying to update a row of the child gridview through a link button template field but how do I fetch the datakeys of the child gridview ?
View 1 RepliesI want to find a control in gridview using client id of the control as the id is changing dynamically. I am getting the client id but it is not getting assigned in a variable whether of string type or object type.
the code is as follows...................
Dim expdate As
String
expdate = e.Item.Cells(1).FindControl("txtExpenseDate1").ClientID
this is fetching client id but not assign it to expdate.............
ExpenseDate = Convert.ToString(CType(e.Item.FindControl("expdate"), TextBox).Text)
I have used [URL]....
above method to save and retreve files from sql server database. I have uploaded around 50-60 images as jpg. But it taking so much time to get display online. but it's working faster when accessing from local database.
There's the page where images are displaying [URL]....
Is the speed for images retreiving from sql database is slower as compared to retrieving images from folder..?
.vb code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
scroll = fillbannerpics()
End If
End Sub
[CODE]..
I am developing an application in C# and Sql Server.
View 3 Replies1)usign execute scalar i will get 1st col and 1st row value.
2)using dataset i will get whole table.. if my stored proc has 2 queries then i will get 2 tables within same dataset.. i can reference therese using ds.tables(0).rows(value).
3)suppose i use a datareader then i will get multiple-rows. i want to know how to get these each separate rows coloumn values into variables. below is the reader aspx.vb
reader = cmd.ExecuteReader();
while (reader.Read()) {
4)what is it mean by data reader is forward only method of getting data.
5)why do we do readeritem.tostring()
6) can you tell me the basic how is this reader,ds,scalar works.i mean i know to use but donot know basics esspecially the dataadpapter.why do we fill it when using dataset.
Lang-ASP.net using C# and Sql server 2005
i m trying to use the sql datareader to fetch a single row at a time i wanna know can we use it to fetch a single row at a time or not if yes i m unable to figure out what i m doing wrong here bcus its not returning any data
[Code]....
of course data is present in my table bcuz when i m using dataset i m able to the return the single row throuugh dataset
I want to fetch data from separate tables in sqlserver and display them together in GridView, Is that possible?
View 3 RepliesI have a Grid in which I am showing some records in each row. Here's how it is:
Now, my problem is that when I press the view button, I want to fetch the ID from the first column in a session variable so that I can display the same ID on the next page.
For the ItemTemplate of EditButton, I am using this code:
<ItemTemplate>
<asp:LinkButton ID="EditBtn" CssClass="btn green" CommandName="edit" ToolTip="Edit" Text="Edit" runat="server" />
</ItemTemplate>
what's the best and most likely way to fetch data from database...
View 5 RepliesIm facing problem in one of the reports while passing multivalue parameter from ssrs to SP.
please note that in cases suppose there are single word in multivalue paramtere then its works corretly,in that scenario i have made one function see below:-
[Code]....
and did changes in sp as follow :-
[Code]....
im using ssrs2005.
MySqlCommand cmd4 = new MySqlCommand("select emp_name from employee_details where emp_category='" + cat[j] + "' and no_ofcassigned=(select MIN(no_ofcassigned) from employee_details)", AL.con);
MySqlDataReader reader2 = cmd4.ExecuteReader();
string emp=null;
while (reader2.Read())
{
emp = reader2[0].ToString();
}
reader2.Close();
i am using the above code to fetch the employee name from the datatable according to the minimum value in the column 'no_ofcassigned' in specific category but here if i have more than 3 employees with the same no_ofcassigned is there then the query is not
Following error is thrown from the live application every now and then
[Code]....
now able to able to replicate the issue on test server. what could be the reason of the above error?
My application writes custom attributes to input controls using Helper classes. And also we are loading the UserControl dynamically so we need to use FormCollection to get the posted values. Is there a way that we can access attribute values from FormCollection object.
Example:
<input type="text" name="textBox1" value="harsha" customAttr1 = "MyValue" />
My question is how can i access the value of customAttr1 from the above eg from inside the controller.
Data can be fetched into an application through web service can it be possible to update data in web service from our application ..
View 2 Replies