|
If Facebook is an OpenID provider then there are some frameworks to do that - And at the same time you get the benefit of allowing people to log in to your application that don't care for Facebook.
|
|
|
|
|
hi all,
how can i link js file to css file?
to do this
//cssfile
font
{
font-size:expression(setFontags(this.currentStyle.fontSize));
}
// js file containing the function setFontags
function setFontags(x){
var y={1:10,2:13,3:16,4:18,5:24,6:32,7:48};
return y[x]+'px';
thx.
|
|
|
|
|
Hi,
In your css file write
.font
{
font-size:expression(Test());
}
In your external Js file write
function Test()
{
return "10 px";
}
In head section f your page write
<link rel="Stylesheet" href ="StyleSheet.css" type="text/css">;
<script type="text/javascript" language="javascript" src="JScript.js">
himanshu
|
|
|
|
|
Thx for u r replay!
but.
i walked throw this method to overcome modifying too many files , what i need is changing the font size from points to pix without modifing all aspx pages, because of that m trying to find a way to link css file to external javascript file.
---css file ----
<script type="text/javascript" language="javascript" src="JScript.js">
/* to be able to call */
expression(Test());
|
|
|
|
|
Hi,
In my application,the user have to upload a particular document.
I have to check the database and if the document has been already uploaded by the user.If so,then i have to get the consent of the user to overwrite.
If he says ok,then the updation should happen.
This should be done in the middle of btnUpload_click() event.
Since confirm(msg) is a javascript function,how to call it from aspx.cs page?.
It seems that a javascript function can be called only at some events(Buttonclick etc.) and <body onload()....
How to call the confirm(msg) without any event firing?.Any ideas?.
Thanks in advance
Yazhini
|
|
|
|
|
write a javascript function
function check
{
return confirm('your msg');
}
and in form load add attribute
btn.Attributes.Add('onclick','return check();');
|
|
|
|
|
Have you thought of changing your workflow?
Upload the file to a temporary area. Then makes the check for overwrite and inform the user if that is the case.
If there is no overwrite needed or the user permits the overwrite then move the data from the temporary area to the permanent area. If the user declines the overwrite then delete the data in the temporary area.
NOTE: By Temporary area I do NOT mean TempDB
|
|
|
|
|
Hi im actually working on a project. Actually its about storing and retrieving student details from the data base. I hav totally designed 3 webforms.
1st webform has a login form
2nd webform has 3 buttons in it
3rd webform has the grid view which displays the student records frm DB
Now heres the problem actually when i click button1 in my 2nd webform it must disable the edit and delete option of my grid view in the 3rd webform and wen i click button2 in 2nd webform it must enable the edit and delete option in my gridview in the 3rd webform. the edit and delete are link buttons.
Can anyone plzzz help me its bit urgent...
Thashif
modified on Thursday, June 18, 2009 7:08 AM
|
|
|
|
|
Are they websites or webforms??
himanshu
|
|
|
|
|
|
WEBSITES are u sure or they are like page1.aspx,page2.aspx,page3.aspx.
|
|
|
|
|
im sorry its actually de way u said page1.aspx,page2.aspx,page3.aspx
|
|
|
|
|
Man that are webforms not websites
himanshu
|
|
|
|
|
Im so sorry regarding dat... would u plzzzz help me
|
|
|
|
|
Can't you keep buttons and gridview on same form??
If not then do something like
Session["click"]="button1" // on the click on Button1
Session["click"]="button2" //on the click on Button2
In the page where you have gridview check..
If(Session["click"].Tostring()=="button1")
//Disable your gridview link buttons
else
//Enable your gridview link buttons
himanshu
|
|
|
|
|
thanx... wel got another code too whch worked out... check dis out...
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("http://Gridview.aspx?ctl=1");
}
protected void Button2_Click(object sender, EventArgs e)
{
Response.Redirect("http://Gridview.aspx?ctl=2");
}
Now in de page wer de grid is present
Int32 str = Convert.ToInt32(Request.QueryString["Ctl"]);
if (str == 1)
{
//enable de edit button
}
else
{
//enable de delete button
}
Thanx a lot....
|
|
|
|
|
yup same thing.you can either use session or query string
himanshu
|
|
|
|
|
please help me
i want to find htmlhyperlink in gridview and set image url blank for this hyperlink on some condition.i have tried with following
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
string status = ((DataRowView)e.Row.DataItem)["Status"].ToString();
if (status == "No Change")
{
setimageurl(e.Row.Controls);
}
}
protected void setimageurl(ControlCollection cc)
{
foreach (Control co in cc)
{
if (co.HasControls())
{
setimageurl(co.Controls);
}
HyperLink Brand = co as HyperLink;
if (Brand == null)
{
Brand.ImageUrl = "";// but here i found Object reference not set to an instance of an object error
}
}
}
sir i am sorry but please make it clear i am unable to understand.
modified on Thursday, June 18, 2009 4:43 AM
|
|
|
|
|
You're not likely to 'find' them, you're better off parsing them on the way in, during data binding.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
hello there,
i am having a small problem, iam a bit new to ASP.net programming
i had some pages that i was working on, and added the master page, now i cant see the content of those pages when i go to the design view, as far as i know this is something normal, but what i dont know is how to be able to see the content again ??
thank you
|
|
|
|
|
You should never use the design view anyhow, it has always been rubbish.
Having said that, you should be able to see your pages in the design view, there's no reason why you would not.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
I agree.
Designing through design view means lots of unnecessary html styles which is just increases your page size.
|
|
|
|
|
hi...
In my application i created a generic handler an i called the generic handler in my page.. the code is given bellow
<asp:gridview id="GridView1" runat="server"
="" gridlines="Vertical" autogeneratecolumns="false">
<columns>
<asp:boundfield datafield="Video_Name" headertext="Name">
<asp:templatefield headertext="Video">
<itemtemplate>
<object id="player" classid="clsid:6BF52A52-394A11DB153-00C04F79FAA6" height="170" width="300">
<param name="url" value="<%# "HandlerAudioVideo.ashx?id=" + Eval("id")%>" />
<param name="showcontrols" value="true" />
<param name="autostart" value="true" />
but when i use this codes in mozilla and safari it does nt call the handler but when i use IE as my browser it gets called and the page is function as well...
Oopppzz!!!!!!!
modified on Thursday, June 18, 2009 3:54 AM
|
|
|
|
|
What handler ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
clsid can be accessed only through IE.
Use object tag for IE only...
For Mozilla or Safari use Embed Tags.
|
|
|
|