|
hi friends,
Am using gridview control and hyperlink control in asp.net 2.0.am using one table.totally 4 field(Location,state,name,status,apply) is there.hyperlink button is used in only apply field.
example :
Location state Name status apply
salem tn Moorthi open [click] Hyperlink1
covai tn Raju closed [click] Hyperlink2
Note :
If status field opened,apply field (hyperlink) enabled,oterwise if status field closed,apply field(hyperlink) disabled.
with regards,
Thirumurugan.D
|
|
|
|
|
Why the non existant subject line ?
If a hyperlink does not have a navigate URL, it renders as text, not a link.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi friends,
am using one table,there is 3 field(name,address,father name) is having.but inserted totally 5 records.In all column data first character small letter.
example :(Database)
Name Address Father Name
raja salem rajasekar
laxman chennai anbuselvan
bala bangalore muthu
senthil covai durai
arun hosur ganesh
Note :
Am using front end repeater control.I want display all column data starting letter in capital letter.help me very urgent
I want display the front end form is example :
Repeater control(FRONT END):
=============
Name Address Father Name
Raja Salem Rajasekar
Laxman Chennai Anbuselvan
Bala Bangalore Muthu
Senthil Covai Durai
Arun Hosur Ganesh
with Regards,
D.Thirumurugan.
With Regards,
D.Thirumurugan
|
|
|
|
|
in C# use:
System.Threading.Thread.CurrentThread.CurrentCulture.TextInfo.ToTitleCase(yourString);<br />
in VB:
use MIcrosoft.VisualBasic.StrConv()
-----
|
|
|
|
|
Why not fix the data in your database, instead of doing this every time.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
<iframe id="simpleEditor" runat="server"> </iframe> <br />
<br />
On Page_Load how can i set the default value of iframe. Do i need to call a javascript function to the set the value if so how can i call a javascript from the .cs file <br />
<br />
Thanks
|
|
|
|
|
what you mean by value? if you want to set the source from server side then here is the code for that:
simpleEditor.Attributes.Add("src",pageurl);
-----
|
|
|
|
|
I want to initialize the simpleEditor with some strings like "hello world" how could i do this from server side.
|
|
|
|
|
|
I have created a Windows user ctrl to print (RAWprint to the Printer) and exposed to COM.
I referred that Assembly in INTRANET webapp to print.. .
I am getting the security error while printing.
What should i do to overcome this in client.. It will be a Intanet site.. and under trusted zone...
The Windows User Control :
[assembly: System.Security.AllowPartiallyTrustedCallers]
namespace ClientPrint
{
[ComVisible(true)]
public partial class ClientPrintHandler : UserControl, IClientPrintHandler
.....
......
private void btnPrint_Click(object sender, EventArgs e)
{
try
{
if (printDialog1.ShowDialog() == DialogResult.OK)
{
RawPrinter.SendStringToPrinter(printDialog1.PrinterSettings.PrinterName, "Sample Text...");
}
}
catch (Exception ex)
{
....
}
}
---
ASPX:
<object id="myControl1" name="myControl1" classid="http:ClientPrint.dll#ClientPrint.ClientPrintHandler" height="72">
While Printing i am getting the security issue..
-------------------------------------------------
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Security.SecurityException: Request for the permission of type 'System.Drawing.Printing.PrintingPermission, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.
at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security.CodeAccessPermission.Demand()
at System.Drawing.Printing.PrinterSettings.get_PrinterName()
at ClientPrint.ClientPrintHandler.btnPrint_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
The action that failed was:
Demand
The type of the first permission that failed was:
System.Drawing.Printing.PrintingPermission
The Zone of the assembly that failed was:
Trusted
----------------------------------------------------------
What should i do to overcome this in client.. It will be a Intanet site..
-KARTHI
|
|
|
|
|
Good Everyone,
Am new to Webservice, but have managed to create one,now i have a Problem in the Configuirations of my Web server. i a Server, that has IIS installed. and i want a Place my web services in that Server. So i dont know where to Start Configuiring.
When ever i try to create a Web service in vb.net, i get an Error that the share is either not available or i have dont Permission on it.
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Hi Vuyiswa,
Are you facing the problem in configuring the existing webservice?
Are you able to create the new web service in Visual Studio 2005?
Are you able to run your webservice from Visual Studio?
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
I load data into Datagrid and I search on this. Result will reload into this DataGrid,after that i move mouse on link where result 's load and press.Information'll fill into Textbox.
Can you tell me ?
tyryttytrhghfghggf
|
|
|
|
|
namnguyenHN wrote: I load data into Datagrid and I search on this. Result will reload into this DataGrid,after that i move mouse on link where result 's load and press.Information'll fill into Textbox.
Can you tell me ?
can you be little more clear about your problem. so that we can help you.
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
I'm having a lot of problems with the gridview bind.
I have a dataset that represents a table of a database.
When I delete or insert a row in the gridview I have the data well inserted or deleted in the db but the gridview duplicates the rows when postbacks the page and i can't understand why. Can someone help me?
Code aspx.cs:
protected void Page_Load(object sender, EventArgs e)
{
dbHandler = new WalletManagerDBSqlSrvHandler(DB_SERVER);
shoptype_grid.DataSource = dbHandler.getShopTypes().Tables["ShopType"];
if (!Page.IsPostBack)
{
shoptype_grid.DataBind();
}
formatShopTypeGrid();
}
//eventhandler when a row is inserted
protected void onClickInsertShopType(object sender, EventArgs e)
{
DataTable dtable = dbHandler.getShopTypes().Tables["ShopType"];
DataRow dataRow = dtable.NewRow();
dataRow["ID"] = DateTime.UtcNow.Ticks; /*Generates the ID of the inserted item threw the date and time tick*/
dataRow["Type"] = shopType_txtbox.Text;
dtable.Rows.Add(dataRow);
dbHandler.updateShopType(DatabaseOperation.Insert);
shoptype_grid.DataBind();
}
//eventhandler when a row is deleted
protected void shoptype_grid_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
DataTable dtable = dbHandler.getShopTypes().Tables["ShopType"];
DataRow drow = dtable.Rows[e.RowIndex];
drow.Delete(); //row erased
dbHandler.updateShopType(DatabaseOperation.Delete);
shoptype_grid.DataBind();
}
I'm a Worm Bug
|
|
|
|
|
I think you should clear the view before updating.
|
|
|
|
|
inside ASPX
var childWin;
// the following funtion should be used to open the popup
function openWin()
{
childWin = window.open('default.aspx','anycontent','left=400, top=100, height=250, width= 250, status=n o, resizable= no, scrollbars= no, toolbar= no,location= no, menubar= no');
}
I have linkButton inside my page
What I want to is, when I click linkButton then it will call openWin()
thanks in advance
Sarfarj Ahmed
|
|
|
|
|
In Page_Load
linkButton1.Attributes.Add("onclick","return openWin()")
assuming you linkButton has an ID="linkButton1"
also, you should add a
return false;
to your openWin() function in order to stop the postback (unless you want ti to, of course, which case return true...)
NB you have a typo in your function#
status=n o
remove the space!
cheers
Fred
|
|
|
|
|
thanks
it does work
Sarfarj Ahmed
|
|
|
|
|
maybe... try this code from server-side
linkbutton1.Attribute.Add("onclick","openWin();");
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
Hi Guys,
I installed Visual Studio 2005 on windows 2003 server and I am missing the ASP.NET Item Templates for C# when I try to create a new project.
I have done the following so far but no joy:
1) Close VS 2005
2) Delete the content of folder <instaldirectory>/ Microsoft Visual Studio 8\Common7\IDE\ItemTemplatesCache
3) excute prompt command : devenev.exe /InstallVsTemplates
I also checked the following as well:
open iDE then go TOOLS -> OPTIONS -> Projects and Solutions -> General
in the 'visual studio user items templates location:' edit control add the path to the default installation item templates
(on my system its C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ItemTemplates\CSharp\1033
cos im using C# :¬)
But no joy.
I spent the whole day today to solve this but still pulling my hair.
Anyone's help will be much appreciated,
happy coding!
|
|
|
|
|
hi,
I want to collect user credentials and encrypt them and stored in sqlserver again when i want to fetch i hv to decrypt them.
I am using vb.net, is there any namespace,class or method that doing the same .
please send the solution
thanks and regards
bikash
|
|
|
|
|
|
Is there a parent-like control available on web? I want to create a custom control which holds two panels. The two panels are containers for objects dragged from the toolbox.
Thnx, Eduard
|
|
|
|
|
Try www.google.com
I'm a Worm Bug
|
|
|
|