|
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
|
|
|
|
|
Are you using VS 2003 or 2005? Can you see the new assembly of the class library project in the bin folder of the web project when you build the solution?
|
|
|
|
|
im using VS2005 and yes i can see the assembly if i build solution! but still problem is still?
|
|
|
|
|
i remove the *.dll from BIN folder and the build solution ,its working now thanks a lot
|
|
|
|
|
Hi All,
Wonder if you can help me with this one?
I have a datalist with an EditItemTemplate defined. Within the EditItemTemplate I would like to have a radiobuttonlist that allows the user to specify the type of item. The radiobutton would autopostback and, depending on which radiobutton was clicked, different textboxes would become visible within the line item that is currently being edited.
I can't figure out where to put the code to capture the radio button that was selected and thus make the relevant text boxes visible in the edititemtemplate.
Any help would be greatly appreciated.
|
|
|
|
|
What you need to do is to create a handler for the SelectedIndexChanged of the RadioButtonList control and you can use the SelectedXXX properties of the control to access the selected item.
|
|
|
|
|
Hi minhpc_bk, Thanks for the reply.
The event handler gets called as you would expect when the radio button list is on the form in a "usual" position, but if I put it in the edititemtemplate the handler is not called. I added OnSelectedIndexChanged to the control and now the handler is called but the RadioButtonList1 object is Nothing.
I ended up having to get set up a datalistitem object using
datalist.item(datalist.EditItemIndex)
then using datalistitem.findcontrol to grab the radiobuttonlist.
But hey, it works now and you pointed me in the right direction, so thanks!
|
|
|
|
|
hi all
i want the page to display a message, i knw hw to do it by script, but hw to make the ASP code calls the script method as i wrire the code in the code behind page not in the HTML page
thank u
abdelhameed81
|
|
|
|
|
Hi,
you can use Page.RegisterClientScriptBlock() method to register client scripts.
|
|
|
|
|
thank u but i tried the following code
if (!Page.IsClientScriptBlockRegistered("mytest") )
Page.RegisterClientScriptBlock("myrest", "alert('Hello');");
but not work
abdelhameed81
|
|
|
|