|
Hi All,
I am deploying a .net framework 1.1 based web site, which is configured under a parent site(using 2.0 framework).
here problem is that my site(child one) is inheriting all web.config thing in parent site, out of which some of the config keys, i do not want to get inherited.
for this i am using <remove> tag with key names(of parent config file) to remove them in my site but it's not working for me as key is still being inherited.
My code is like this:
<configSections>
<remove name="nametoremove"/>
<section name="abc"......something/>
<configSections/>
So in summary i want to know is <remove> tag supported in .net framework 1.1? if not then does any one of you have any idea what is equivalent tag/keyword for 1.1.
modified on Wednesday, October 7, 2009 8:08 AM
|
|
|
|
|
You didn't check 'do not interpret html', so we can't see what you posted.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I have modified to display code, could any one please comment now?
modified on Wednesday, October 7, 2009 4:23 AM
|
|
|
|
|
hi i have submitted a barcode image in a sql table in xml format.
can anybody tell me how can i retrieve that image....
|
|
|
|
|
mylogics wrote: i have submitted a barcode image in a sql table in xml format
How did you store that ?
|
|
|
|
|
i have written this codde on button click....
BarcodeProfessional1.Code=txtbarcode.Text;
DataSet ds = new DataSet("MyDataSet");
DataTable dt = new DataTable("MyTable");
ds.Tables.Add(dt);
DataColumn dc = new DataColumn("BarcodeImage", typeof(byte[]));
dt.Columns.Add(dc);
DataRow dr = dt.NewRow();
dr["BarcodeImage"] = BarcodeProfessional1.GetBarcodeImage(System.Drawing.Imaging.ImageFormat.Gif);
dt.Rows.Add(dr);
string s = Server.HtmlDecode(ds.GetXml());
Literal1.Text = Server.HtmlDecode(ds.GetXml());
SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["Barcode"].ConnectionString);
string str = "Insert Into Product(ProductName,ProductDescrip,ProductQty,ProductPrice,Barcode)Values('" + txtname.Text + "','" + txtdescrip.Text + "','" + TxtQty.Text + "','" + txtPrice.Text + "','" + s + "')";
SqlCommand cmd = new SqlCommand(str, conn);
conn.Open();
cmd.ExecuteNonQuery();
conn.Close();
|
|
|
|
|
mylogics wrote: string str = "Insert Into Product(ProductName,ProductDescrip,ProductQty,ProductPrice,Barcode)Values('" + txtname.Text + "','" + txtdescrip.Text + "','" + TxtQty.Text + "','" + txtPrice.Text + "','" + s + "')";
This is utterly ridiculous. Where did you find this code, because it's plain you have no idea what you're doing.
You've stored some XML, from the look of it. So you need to look at that XML and try to work out if it's remotely possible to get your image back. OR you can ditch this crap and write proper code to store your barcode as an image, if that's what you want. This is a disaster.
Also, your code is just plain terrible. SQL in the middle of no-where ? String building for SQL ? I can erase your database, just by accessing the form that enters barcodes.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hello Everybody,
In my parent page i am displaying one popup message ,when ever i got the pop-up message that parent page is blank, how to enable controls in parent page after getting the pop-up message.
in parent page textbox textchanged event is there through this event i am enabling the pop-up message.
to display pop-up message i am using javascript in code-behind.
str = "<script>alert('" + stdName.ToString() + " : Available students is only " & AvailbStd.ToString() & "')</script>"
Page.RegisterStartupScript("msg", str)
if anybody knows please let me know
Regards
Rama
samrama
|
|
|
|
|
How to add a form of Visual Inheritance to your ASPX site
|
|
|
|
|
pkj wrote: How to add a form of Visual Inheritance to your ASPX site
I didn't get your point. Please explain in details !
Thanks !
|
|
|
|
|
Abhijit Jana wrote: I didn't get your point. Please explain in details !
Visual Inheritance is used in windows applications. It allows forms to derive from other forms. This is helpful when there are common areas which all forms share.
I don't think it is used extensively as other alternative methods are much better.
|
|
|
|
|
I have created one page(aspx) in that page there is textbox,label,button.,i want that control(textbox,..,..)on another page(like inheritd from one page(aspx) to another page(aspx))
|
|
|
|
|
Visual inheritance is not supported in web forms. In web forms, create master pages or user controls and include them in the pages.
|
|
|
|
|
hi All
My requirement is when the user copy some html content and past in the editor it should copy the image as well as in the editor.
i tried using tiny editor and other editor but image is not coping.
please guide me with this..
Thanks in advance
Ramkumar
|
|
|
|
|
ramkumarishere wrote: i tried using tiny editor and other editor but image is not coping.
Then you should asked the question to appropriate forum from where you are your using your Editor.
It is quite difficult to tell in this way !
|
|
|
|
|
ramkumarishere wrote: My requirement is when the user copy some html content and past in the editor it should copy the image as well as in the editor.
You can't copy the image. HTML content will have link to image and image will not be copied. All you can do is to find the image URL from the HTML content, download that image from the URL and update the HTML content with valid path to the downloaded image.
Take a look at the methods offered by WebClient class.
|
|
|
|
|
Hi I want to derive aspx page from another aspx page i.e inheritance of aspx page.
I want to inherit one aspx page i.e basic.aspx and its conrol in another aspx page like city master. basic page contain label (serial no.,Id, name), Textbox(serial no.,Id, name)and Bttons (btnadd ,btndelete,btnsave) . this conrol I want to inherit in citymaster.aspx.
modified on Wednesday, October 7, 2009 2:18 AM
|
|
|
|
|
Create a Class inside App_Code like:
public abstract class MyWebPage : System.Web.UI.Page
{
}
Now inherit this call for all your pages where you need the common functionality.
public partial class WebPages_MyTestPAge : MyWebPage
{
}
|
|
|
|
|
I have created one page(aspx) in that page there is textbox,label,button.,i want that control(textbox,..,..)on another page(like inheritd from one page(aspx) to another page(aspx))
|
|
|
|
|
I am facing a peculiar problem in Gridview. Details I mentioned here.
I found out that the issue is because if I set the below code in RowDataBound event.
e.Row.Cells[0].Visible = false;
When I commented this, paging is coming properly. Now the issue is that, first column is visible which is an ID column, which shouldn't show to the user. I couldn't understand how this will affect the paging of Gridview.
Anybody please suggest any way to hide the column without affecting the paging?
Thanks
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
What if you create a way of storing the value inside each row without it having a column dedicated to it ? What if it's not column 0 you hide, might it work OK then ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
That will work. But how will I store the Id value without a column in a row? The datatable returns 5 columns out of which 1 is Id column.
Is it possible to store the value inside each row without a dedicated column?
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Instead of using standard columns, write your own column definitions. You could then have a control in one column that renders the data you want to see, and has an id which contains the id of the row. That sort of thing.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Exactly!!
That's what I done now and it's working. I made column defintions and then made the first column as DataKey column (for another purpose). The column also made as visible = false. The paging also working properly.
Thanks a lot Christian.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Hi,
I was wondering if retrieving the input in MVC is always string based?
Like requesting.form a "select multiple" (aka listbox)..
Is any other method than retrieving the values in a comma-separated string? Like "043,015,091"
Or for example a checkbox.. is it possible to retrieve a bool instead of parsing a string?
Because everything must be retrieved by using Request.Form
Please notice that i'm talking about ASP.NET MVC: That means i'm retrieving the values from a controller (POST) and not in the SomeButton_Click or something. In a NOT MVC way it would be all object oriented by using asp controls and etc.
|
|
|
|