|
Hey guys, I'm developing a website for which I want to create a control which holds two containers. The control must be placed in the toolbox, and dragged onto a webpage (or user control) from the toolbox. I was thinking to inherit from System.Web.UI.WebControls.CompositeControl.
I want the control to hold two containers (panels) which can be filled with the controls the developer wants. Is it possible to create a control which holds multiple controls? What's the correct approach?
I have declared two panels and exposed them via public read-only properties.
Thanks, Eduard
|
|
|
|
|
Hi..
Use Custom Control s and develop your won logic for the control u want
Aswini
|
|
|
|
|
Did you even read my question??
|
|
|
|
|
Hello frnd
I displayed my mark list table in data grid.if i click the roll number cell i want to display the corresponding value (like name ,class) in text box,i am using asp.net 1.1.i am MCA student,beginner in asp.net,so please any one give some code or link or idea plz urgent this.
|
|
|
|
|
use grid rowevent to get the value of that cell and display your desire result.
Devjit Das.
|
|
|
|
|
Put a button column in your DataGrid and write code in Itemcommand of DataGrid. Use the parameter e in that event to find the cell value and assign it to textbox.
|
|
|
|
|
hello....
this code 4 dispalying..
SqlConnection sqlConnection = new SqlConnection("server=....;User Id=sa; Password=...;Initial Catalog=.....");
SqlDataAdapter sqlDataAdapter = new SqlDataAdapter("select * from emp", sqlConnection);
DataSet dataSet = new DataSet();
sqlDataAdapter.Fill(dataSet);
GridView1.DataSource = dataSet;
GridView1.DataBind();
and u can dispaly in the text box 4 perticular nuber...details...
u can wrote with in clivk event.........
int id = Convert.ToInt32(GridView1.DataKeys[e.RowIndex].Value);
GridViewRow r = GridView1.Rows[e.RowIndex];
TextBox t1, t2;
t1 = (TextBox)r.FindControl("TextBox1");
t2 = (TextBox)r.FindControl("TextBox2");
SqlConnection sqlConnection = new SqlConnection("server=....;User Id=sa; Password=...;Initial Catalog=.....");
sqlConnection.Open();
cmd.ExecuteNonQuery();
sqlConnection.Close();
GridView1.EditIndex = -1;
Bind();
Naik M
|
|
|
|
|
Hello All!!
i am saving the logos of the companies in the a directory. the file name of the logo is kept as the id of the company in the db. my problem is that when i change the image(logo) the change is not reflected after the postback. i have to click refresh to see the change. I have clearing the cache at the same time redirecting to the same page also but it of no use.
any help
Regards
|
|
|
|
|
sabby2006 wrote: the change is not reflected after the postback. i have to click refresh to see the change
Cache?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Response.CacheControl = "no-cache";
Regards
|
|
|
|
|
sabby2006 wrote: any help
You can fool browser by adding some querystring to image URL, and browser thinks it's a new image and it will reload it. So your image URL will look like
companylogo.jpg?foolBrowser=fooled Change this querystring value each time with a random generated value. So browser will think it's a new image and will be forced to reload.
|
|
|
|
|
Thanks a lot it did the trick
Regards
|
|
|
|
|
Hi all,
Could you please let me know where to get an IIS log file from a server?
Thanks
|
|
|
|
|
Your Windows Folder/System32/Logfiles/W3Svc1?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Thanks for you reply.
The log file doesnot mention anything about the events that happen on the webserver.I am just trying to track down some errors generated on the webserver.
Is there any other log file i have to look?
Please advice
thanks
|
|
|
|
|
kibromg wrote: generated on the webserver.
Try Control Panel - > Administrative Tools - > Event Viewer
|
|
|
|
|
Its currect..
Go to Controle panel->AdminstratorTools->IIS
Naik M
|
|
|
|
|
Thank once again.
Under IIS where will you go to see the log file or any error related to a web Server.
Please advice.
Thanks
|
|
|
|
|
You may check the same by going to Properties and then clicking the Server Extensions Tab
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
Hello,
I am a ASP.NET developer.
I want the concept of how I can see the results of the table from different databases of different domains.
for eg:
I have three domains:
www.abc.com
www.xyz.com
www.pqr.com
I want to see the values of databases of abc.com and xyz.com at pqr.com
please tell me How can I write the code for it in ASP.NET to display results in 3rd website in GRIDVIEW.
Bharath
|
|
|
|
|
I have to display text present in the webpage in the language that the user selects from a dropdown list. This doesnot mean that i have u convert all the GUI text. I would require that the text that is picked from the database be displayed in the grid in a particular language its intended for.
|
|
|
|
|
hi..
Refer to this.. u can get an idea...
http://people.w3.org/rishida/scripts/uniview/conversion.php
Aswini
|
|
|
|
|
Hi
In asp.net VbCrLf means a new line but what is the use of
Vbcr in asp.net.
Thanks.
People Laugh on me Because i am
Different but i Laugh on them
Because they all are same.
|
|
|
|
|
Hi
In a Word doc, a paragraph mark is vbCR. If however you open a text
file (*.txt) into Word the lines are often terminated with vbCRLF and
sometimes with vbLF - this is the main use I've found for using one of
these instead of vbCR. There is also vbNewLine which is
platform-specific.
Naik M
|
|
|
|
|
Naik A2Ze wrote: There is also vbNewLine which is
platform-specific.
Check out Environment.NewLine .
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|