|
hahii wrote: I have 25 menu items in a web form. I want to show 25 different gridviews
based on menuitem selected on the same page.
25 Differents gridview does not mean that you need 25 Diff Grid Control . You can simple do it using single grid view. Just one the menu changed, Changed the DataSource of GridControl. You can also generate Column and other stuff runtime.
|
|
|
|
|
Could you please give me some example how can I do that programatically.
thanks
|
|
|
|
|
I would create 1 GridView with AutoGenerateColumns=True. Make sure you can create the dataset with 1 stored procedure with an Int parameter which has the value of the menuItem.
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
I have created a usercontrol for fileupload server control.
I call the user control to perform the file upload operation.
Once uploaded, how do I get the "destination url" onto a textbox/label on the web page?
Q- Is there a way to access the webpage from the user control's event?
Q- Is there an event in the web page that can run immediately after the upload operation
Thanks,
NetQuestions
|
|
|
|
|
NetQuestions wrote: Q- Is there a way to access the webpage from the user control's event?
That depeneds when you are trying to access the control. Init and Upload Event of User Control fired before the Init event of Page. Its means Initilization of User Control done before the page, so if you want to acess control here you will not able to access. All other operation Event are Top To Bottom, means Page Event fired first then Event of UserControl.
NetQuestions wrote: Q- Is there an event in the web page that can run immediately after the upload operation
Which Event?
|
|
|
|
|
By using the fileupload control, any image can be uploaded and saved at a specific path.
However my concern is that every image is of different dimension.
Is there a utility or a property in the fileupload control that can be used to set a common dimension
for all uploaded images irrespective of the type of image.
Is there a way to dynamically create a thumbview of the image while uploading the image?
Thanks,
NetQuestions
|
|
|
|
|
NetQuestions wrote: Is there a way to dynamically create a thumbview of the image while uploading the image?
Yes. You can create dynamic thumbview of the image while uploading. Search in Codeproject itself, you will find a similar article on this.
Thanks
|
|
|
|
|
please can some body hepl me completing this programm
program 1
create a table in access Student_Information with 2 columns First Name,Last Name,Address
Enter 5 records in this table
Write a Console Application and do the following
a. Read the records from the table
b. write all the records one by one in a file in the following format
Name:First Name Last name,Address:Address
program 2
-create a table in access Student_Information with 2 columns First Name,Last Name,Address
-create a console application
-create a class with following properties Name,Address
-read each row from the table;create an object of Student class for each of the row.
-store the information of this row in the Student class
-Do the XML serialization of each of the object.Note that the file names for each of the serialized object should be generated
uniquely(using any convention)at runtime and should not be hard coded
|
|
|
|
|
sahil darwajkar wrote: Write a Console Application and do the following
This is the ASP forum. Console app question DO NOT belong here.
sahil darwajkar wrote: please can some body hepl me completing this programm
If you have a specific problem, please feel free to ask. We will NOT however do your homework for you.
sahil darwajkar wrote: create a table in access Student_Information with 2 columns First Name,Last Name,Address
That's 3 columns, not 2 ..
10110011001111101010101000001000001101001010001010100000100000101000001000111100010110001011001011
|
|
|
|
|
So you are here to doing you Home work by Us.
|
|
|
|
|
You're an idiot. You will fail your course, and that's all you deserve. You can't even work out the right place to ask this ? It doesn't matter, we don't do homework for people who don't try to do it themselves, no matter where you ask.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Hi,
I have Ajax Tabcontainer with in the TabPanel I used User Control.I have two <div> in each UserControl. Whenever the TabPanel Changed i wish to display the First <div> in the User Control with in that User Control.
But I don't Know how to do this? which Event Fire when the TabPanel is changed ? Please give Solution.
Thanks in Advance.
|
|
|
|
|
jai_101 wrote: I have Ajax Tabcontainer with in the TabPanel I used User Control.I have two in each UserControl. Whenever the TabPanel Changed i wish to display the First in the User Control with in that User Control.
You mean, whenever you change the TAB, only first Div will show ?
jai_101 wrote: But I don't Know how to do this? which Event Fire when the TabPanel is changed ?
Did you see the sample example from Ajax Web Sites site.
|
|
|
|
|
Hi,
Thank You for Your Reply.
Bye.
|
|
|
|
|
I'm trying out this Office Viewer component on my aspx page. After adding the provided sample html code to the page the designer displays the object correctly. At runtime the control works too. But I cannot see this object in the code behind. I'm trying to use the Register tag but I cannot get it to work. How can I reference this object in the code behind?
|
|
|
|
|
are you talking about the office viewer component on www.ocxt.com[^]
if so... unless they changed something since i used it last, it's a brower pluggin not a component, I beleve you can not access it using the codebehind.
look at there samples to learn how to use it.
|
|
|
|
|
hi,
i am very new to this .net world.
I like to get the values from the database into the textbox using
datareader.
I tried in this way :
sqlcommand com=new sqlcommand(query,connectionstring);
datareader rdr=com.executereader();
while(rdr.read())
{
textbox.text=rdr["fieldname"].getstring();
}
But i failed to get the values
plz help me....in getting the values into the textbox using datareader
plz post the codesnippet how to do it
Thanx in advance
|
|
|
|
|
There could be few issues that u need to resolve for this code.
Firstly if you are having multiple rows in your database and you are trying to fetch those values in a single text box using DataReader then only the last record would be visible to you as the TextBox will be set to the last value only..... Secondly for using DataReader and SqlCommand you need an open connection so you need to specify an sqlconnection object and put it like
SqlConnection con = new SqlConnection();
con.Open();
sqlcommand com=new sqlcommand(query,con);
DataReader dr=com.ExecuteReader();
while(rdr.read())
{
textbox.text=rdr["fieldname"].getstring();
}
con.Close();
As DataReader is readonly and forward only so only the last value is available to the TextBox control. To avoid that and to retrieve all the values try some listbox or combobox. Best of luck!!!
Try hard but don't get stubborn
|
|
|
|
|
As you are new in .Net World,I will suggest you to buy some Beginners Book and start reading yourself. Which will help you learn better.
Good Luck !
|
|
|
|
|
Hi, try this textbox1.text = rdr["fieldname"].tostring();
Hope this one can help.
Thanks
Hi, Please select Good Question if my answer are fit to your Question.
|
|
|
|
|
hi,
i am very new to this .net world
I like to get the values into the textbox using datareader.
I tried in this way :
sqlcommand com=new sqlcommand(query,connectionstring)
sqldatareader rdr=com.executereader();
while(rdr.read())
{
textbox.text=rdr["fieldname"].tostring();
}
but i am not getting the values into the textbox.
plz help me by posting the code.......
Thanx in advance
|
|
|
|
|
double the column name, check if you have value for that field in the database.
check if you are even getting any rows. Also check if you are even coming into the while loop function let's say for instance.
while(dr.Read()
{
textbox.Text="I am here";///so at least you know some rows are being returned.
}
|
|
|
|
|
Asking same question multiple times does not help you get better answer.
|
|
|
|
|
I find some funny behavour in VS 2005. When i type window. i get to see the focus method but when i do window.opener. i don't see the focus() method.
Although it works fine when i do window.opener.focus(); but my question is that how am i suppose to know if lets say focus() method is actually a real method and it's supported by the window.opener.
I am having real difficulties looking after what is supported and what's not.
Is there an Javascript API like how we have msdn2 for asp.net, C#.
I would be benefited from your insight.
Thanks
|
|
|
|
|
vs 2k5 isn't the best javascript writing tool.
vs 2k8 is better but still not that great.
learn the dom api instead of relying on intellisense you'll be glad you did.
|
|
|
|