|
HTML ignores newlines unless it is encompassed within a PRE tag. You may need to use BR tags to introduce line breaks.
|
|
|
|
|
You need to do something like:
....
string value = "......";
Label1.Text = vallue.Replace(Environment.NewLine, "<br/>");
...
|
|
|
|
|
i have problem with validation controls after deploying. page is posting back with out any client side validations. please give the solution for this problem
Pradeep Reddy
|
|
|
|
|
Hi
Put your Code In
if(Isvalid) then
End if
Then it will work fine
i hope this will help u..
Aavesh
|
|
|
|
|
yes i did what you told, but validations are working after postback.
Pradeep Reddy
|
|
|
|
|
I think it will work fine
Have u did like this
Private Sub addcity_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
If (IsValid) Then
Ur code...............
End If
End Sub
if so then it will work fine
Aavesh
|
|
|
|
|
Which version of ASP.NET are you using? 1.1 or 2.0? The validators of the old version 1.1 do not work on non-Microsoft browsers afaik.
|
|
|
|
|
Hi,
Please help me. I need to write code for drag and drop of Datagrid Items.
Please send me some links.
Thanks in advance.
Regards,
Libran
|
|
|
|
|
Hi,
These articles may help you for drag and drop of Datagrid Items.
MSDN[^]
Drag & Drop[^]
Regards,
Satips.
|
|
|
|
|
Thanks for ur reply.
I am not able to get the required solution.
Please help me.Send some code snippets.
Thanks,
Libran
|
|
|
|
|
hi all,i am in need of developing a web application which wil send and receive the sms and e-mail's to and from the mobile devices...using GPRS..i know this is possible ...but i dont know where to start and how to start... please give me some articles..or some guidance to develope my application....
ayyp
|
|
|
|
|
You may need liasion with your telco who may provide gateway services Or check out sites like SmsCountry at http://www.smscountry.com/[^]
|
|
|
|
|
Hello,everyone:
Now i have a datagrid, in which each cell may contain many words. it looks quite ugly because the datagrid automatically make the words vertical displayed. Therefore, i wonder if we could solve it through making all the cells have the same fixed heigh/width??and how could we fix the height/width? i have tried to set it in the property builder, however, it does not work
Looking forward to ur reply, thanks in advance!
|
|
|
|
|
Try to use PreRender in DataGrid:
Private Sub grd_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles grdDefinitionList.PreRender
grd.Columns(1).ItemStyle.Width = Unit.Pixel(24)
grd.Columns(2).ItemStyle.Width = Unit.Pixel(24)
grd.Columns(3).ItemStyle.Width = Unit.Pixel(24)
End Sub
=postmaster
http://www.programmingknowledge.com/[^]
|
|
|
|
|
I m using Datagrid with Autogenerated Columns.
I want to set width of Autogenerated Columns.
I used that Code told by you.
But it is giving me error:
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
So can u explain me more and sort out this Problem...
Any help will be greatly appreciated...........
|
|
|
|
|
hi
you can set the width of any column in datagrid in html itself as below:
<asp:BoundColumn DataField="Id" HeaderText="Id" ItemStyle-Width=20%></asp:BoundColumn>
Prabir
|
|
|
|
|
Howerver, the datagrid is AutoGenerateColumn , then what could i do ??
|
|
|
|
|
hi,
then u need to do server side code what postmaster@programmingknowledge.com suggested previously.
Thanks,
Prabir
|
|
|
|
|
Hi,
U can convert the columns to template column in property builder
then set following properties according to your requirement:
<asp:TemplateColumn ItemStyle-Width=25% ItemStyle-VerticalAlign=bottom>
<ItemTemplate >
<asp:Label id="Label2" runat="server" ></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="TextBox2" runat="server"></asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<ItemTemplate>
<asp:Label runat="server"></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox runat="server"></asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
Thanks,
Prabir
|
|
|
|
|
First of all,thank u all for the replies!
However, i am using databinding like this:
I am creating a DataGrid form a DataSet with autogeneratecolumns:
dg.DataSource = ds;
dg.DataBind();
all the columns are autogenerated, thus, we could not convert a specific column into template column. am i right? looking forward to ur reply;P
|
|
|
|
|
Hi,
My web application is hosted on windows2003 server (IIS 6.0).I am facing
one strange problem on client machine, i use response.redirect("url for
Office document like .doc,.xls") to open the any attacment with the records,
in some of the machine the attachement open properly but in some it's not(it
seems like client gets back the response and page appear for fraction on time
and gets dissapear.) even when i run the application on server itslef i
notice that attachment getting open when i use http://localhost in my url but
problem occurs when i use IP address or machine name. Is it something related
to IE setting or some setting of IIS.
but the things work perfectly on any machine if attachment is pdf file.
Any help will be appreciated.
Regards,
Ritesh
|
|
|
|
|
Do following steps.
1. Include "Microsoft Office 11.0 Object Library" on your project and get file content of your file using following steps
Word.ApplicationClass wordApp = null;
Word.Document doc doc = wordApp.Documents.Open(ref file,ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing,ref missing, ref missing, ref missing, ref missing, ref missing, ref missing,ref missing, ref missing, ref missing);
//Save the contents of File in database as
string str = doc.Content.Text;
//Save str to database
2. Open a temp page as follows.
Response.Write("");
Response.Write("window.open('temp.aspx');");
Response.Write("</"+"script>");
3. On this temp.aspx page load do following steps
//Retrieve File contents eighter form database wich we have saved in step1
byte [] FileContent = (byte[])row["FileContent"];
Response.Clear();
Response.AddHeader("Content-disposition", "inline;filename="+FileName);
Response.ContentType = "application/msword";
Response.BinaryWrite(FileContent);
Response.End();
//If this not works then do following
HttpContext.Current.Response.BinaryWrite(FileContent);
Response.End();
:->
<div class="ForumSig">
#Abhi#</div>
|
|
|
|
|
Hi Abhishek,
thanks you very much for you reply.currently i am doing same steps,i.e opening temp. page and doing response.redirect to target file,It was my mistake that i forgot to mention that my application is sort of document management system and it stores file with any extension on FTP server.As sugested by you in Step 3 is mainly deal with msword documents,but i am also facing same problem with autocad (.dwg) files. and in my temp page i am also doing further proecessing of file like converting it into pdf format and applying watermark onfly etc, so i guess converting files into binary format further slowdown the whole process (as size of files are in 10+MB). I am not sure but i guess it has something to do with mime setting as when i added *.* in the mime type list of my iis server it's work file (but only if i use localhost in my url).
If you can have any suggestion i would be very helpfull....
thanks,
Ritesh
|
|
|
|
|
Hi,
After some R&D i think i figured out the solution...........it all has do to with IE 6.0 's trusted site's security setting.I just set "Automatic Promting for file download" setting to enable and it works fine.
Regards,
Ritesh
|
|
|
|
|
I create solution contain 2 project first one for web pages and second one for class library
Now when I modify one class by changing parameter or adding new method to class
And then when make instance form this class in first class I can not see last modification
Notes : for the first project I add class library as reference project and I build solution but still I can not see my modification on class library when I call it form first project
Can any one explain and I appreciate
Thanks
|
|
|
|